pub struct CreateSpeechRequest {
pub model: CreateSpeechRequest_Model,
pub input: String,
pub instructions: Option<String>,
pub voice: VoiceIdsShared,
pub response_format: Option<String>,
pub speed: Option<f64>,
}
Fields§
§model: CreateSpeechRequest_Model
§input: String
The text to generate audio for.
instructions: Option<String>
Control the voice of your generated audio with additional instructions.
voice: VoiceIdsShared
The voice to use when generating the audio.
response_format: Option<String>
The format to audio in.
speed: Option<f64>
The speed of the generated audio.
Trait Implementations§
Source§impl Clone for CreateSpeechRequest
impl Clone for CreateSpeechRequest
Source§fn clone(&self) -> CreateSpeechRequest
fn clone(&self) -> CreateSpeechRequest
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for CreateSpeechRequest
impl RefUnwindSafe for CreateSpeechRequest
impl Send for CreateSpeechRequest
impl Sync for CreateSpeechRequest
impl Unpin for CreateSpeechRequest
impl UnwindSafe for CreateSpeechRequest
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