pub struct TTSResponse {
pub audio_data: Vec<u8>,
pub duration: f64,
pub format: AudioFormat,
}Expand description
Text-to-Speech response
Fields§
§audio_data: Vec<u8>Generated audio data
duration: f64Audio duration in seconds
format: AudioFormatAudio format (wav or mp3)
Trait Implementations§
Source§impl Clone for TTSResponse
impl Clone for TTSResponse
Source§fn clone(&self) -> TTSResponse
fn clone(&self) -> TTSResponse
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 TTSResponse
impl RefUnwindSafe for TTSResponse
impl Send for TTSResponse
impl Sync for TTSResponse
impl Unpin for TTSResponse
impl UnsafeUnpin for TTSResponse
impl UnwindSafe for TTSResponse
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