pub struct TtsRequest {
pub text: String,
pub voice: String,
pub language: Option<String>,
pub speed: f32,
pub pitch: Option<f32>,
pub emotion: Option<Emotion>,
pub output_format: AudioFormat,
}Available on crate feature
audio only.Expand description
Request parameters for TTS synthesis.
Fields§
§text: StringText to synthesize.
voice: StringVoice identifier.
language: Option<String>Optional BCP-47 language code.
speed: f32Speaking speed multiplier (0.5–2.0, default 1.0).
pitch: Option<f32>Optional pitch adjustment.
emotion: Option<Emotion>Optional emotion hint.
output_format: AudioFormatDesired output format (internal use; providers output PCM16).
Trait Implementations§
Source§impl Clone for TtsRequest
impl Clone for TtsRequest
Source§fn clone(&self) -> TtsRequest
fn clone(&self) -> TtsRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TtsRequest
impl Debug for TtsRequest
Source§impl Default for TtsRequest
impl Default for TtsRequest
Source§fn default() -> TtsRequest
fn default() -> TtsRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TtsRequest
impl RefUnwindSafe for TtsRequest
impl Send for TtsRequest
impl Sync for TtsRequest
impl Unpin for TtsRequest
impl UnsafeUnpin for TtsRequest
impl UnwindSafe for TtsRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more