pub struct TtsRequest {
pub model: String,
pub input: String,
pub voice: String,
pub response_format: AudioFormat,
}Expand description
Parameters for a text-to-speech request.
Fields§
§model: StringTTS model identifier (e.g., "tts-1").
input: StringText to synthesize into speech.
voice: StringVoice preset ID (e.g., "alloy", "echo").
response_format: AudioFormatDesired output audio format.
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