pub struct SpeechRequest {
pub input: String,
pub model: String,
pub voice: AudioVoice,
pub response_format: Option<SpeechResponseFormat>,
pub speed: Option<f64>,
}Expand description
Request body for POST /audio/speech.
Fields§
§input: StringText to convert to audio.
model: StringTTS model (e.g. “tts-1”, “tts-1-hd”).
voice: AudioVoiceVoice for audio output.
response_format: Option<SpeechResponseFormat>Audio format.
speed: Option<f64>Playback speed (0.25 to 4.0).
Implementations§
Source§impl SpeechRequest
impl SpeechRequest
Trait Implementations§
Source§impl Clone for SpeechRequest
impl Clone for SpeechRequest
Source§fn clone(&self) -> SpeechRequest
fn clone(&self) -> SpeechRequest
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 SpeechRequest
impl Debug for SpeechRequest
Auto Trait Implementations§
impl Freeze for SpeechRequest
impl RefUnwindSafe for SpeechRequest
impl Send for SpeechRequest
impl Sync for SpeechRequest
impl Unpin for SpeechRequest
impl UnsafeUnpin for SpeechRequest
impl UnwindSafe for SpeechRequest
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