pub struct TextToSpeechRequest {
pub model: String,
pub text: String,
pub voice: Option<String>,
pub format: AudioFormat,
pub speed: Option<f64>,
pub options: Option<Value>,
}Expand description
Request structure for text-to-speech generation
Fields§
§model: StringModel name to use for speech synthesis (e.g., “tts-1”)
text: StringText to convert to speech
voice: Option<String>Voice selection (model-dependent)
format: AudioFormatOutput audio format
speed: Option<f64>Speech speed multiplier (1.0 = normal)
options: Option<Value>Additional synthesis options
Trait Implementations§
Source§impl Clone for TextToSpeechRequest
impl Clone for TextToSpeechRequest
Source§fn clone(&self) -> TextToSpeechRequest
fn clone(&self) -> TextToSpeechRequest
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 TextToSpeechRequest
impl Debug for TextToSpeechRequest
Source§impl<'de> Deserialize<'de> for TextToSpeechRequest
impl<'de> Deserialize<'de> for TextToSpeechRequest
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 TextToSpeechRequest
impl RefUnwindSafe for TextToSpeechRequest
impl Send for TextToSpeechRequest
impl Sync for TextToSpeechRequest
impl Unpin for TextToSpeechRequest
impl UnwindSafe for TextToSpeechRequest
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