pub struct SpeechRequest {
pub text: String,
pub voice: VoiceIdentifier,
pub format: AudioFormat,
pub sample_rate: Option<u32>,
}Expand description
Speech generation request
Fields§
§text: String§voice: VoiceIdentifier§format: AudioFormat§sample_rate: Option<u32>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 moreAuto Trait Implementations§
impl Freeze for SpeechRequest
impl RefUnwindSafe for SpeechRequest
impl Send for SpeechRequest
impl Sync for SpeechRequest
impl Unpin 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