pub struct TTSRequest {
pub voice_id: String,
pub text: String,
pub model: TTSModel,
pub language: Option<String>,
pub prompt: Option<TTSPrompt>,
pub output: Option<Output>,
pub seed: Option<i32>,
}Expand description
Text-to-Speech request parameters
Fields§
§voice_id: StringVoice ID in format ‘tc_’ followed by a unique identifier
text: StringText to convert to speech (max 2000 chars)
model: TTSModelTTS model to use
language: Option<String>Language code (ISO 639-3). Auto-detected if not provided
prompt: Option<TTSPrompt>Emotion and style settings
output: Option<Output>Audio output settings
seed: Option<i32>Random seed for reproducible results
Implementations§
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 · 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<'de> Deserialize<'de> for TTSRequest
impl<'de> Deserialize<'de> for TTSRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. 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