pub struct TTSRequestStream {
pub voice_id: String,
pub text: String,
pub model: TTSModel,
pub language: Option<String>,
pub prompt: Option<TTSPrompt>,
pub output: Option<OutputStream>,
pub seed: Option<i32>,
}Expand description
Streaming Text-to-Speech request parameters.
Mirrors TTSRequest but the output field uses OutputStream, which
excludes volume and target_lufs (not supported by the streaming endpoint).
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<OutputStream>Audio output settings (without volume/target_lufs)
seed: Option<i32>Random seed for reproducible results
Implementations§
Trait Implementations§
Source§impl Clone for TTSRequestStream
impl Clone for TTSRequestStream
Source§fn clone(&self) -> TTSRequestStream
fn clone(&self) -> TTSRequestStream
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 TTSRequestStream
impl Debug for TTSRequestStream
Source§impl<'de> Deserialize<'de> for TTSRequestStream
impl<'de> Deserialize<'de> for TTSRequestStream
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 TTSRequestStream
impl RefUnwindSafe for TTSRequestStream
impl Send for TTSRequestStream
impl Sync for TTSRequestStream
impl Unpin for TTSRequestStream
impl UnsafeUnpin for TTSRequestStream
impl UnwindSafe for TTSRequestStream
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