pub struct TextToSpeechRequest {
pub model: String,
pub text: String,
pub voice: Option<String>,
pub output_format: Option<String>,
pub speed: Option<f64>,
}Expand description
Request body for text-to-speech.
Fields§
§model: StringTTS model (e.g. “tts-1”, “eleven_multilingual_v2”, “grok-3-tts”).
text: StringText to synthesise into speech.
voice: Option<String>Voice to use (e.g. “alloy”, “echo”, “nova”, “Rachel”).
output_format: Option<String>Audio format (e.g. “mp3”, “wav”, “opus”). Default: “mp3”.
speed: Option<f64>Speech rate (provider-dependent).
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 Default for TextToSpeechRequest
impl Default for TextToSpeechRequest
Source§fn default() -> TextToSpeechRequest
fn default() -> TextToSpeechRequest
Returns the “default value” for a type. 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 UnsafeUnpin 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