pub struct SpeechResponse {
pub audio: Bytes,
pub content_type: Option<String>,
pub format: SpeechFormat,
}Expand description
Result of a TTS request: the raw audio bytes plus the upstream
Content-Type and the resolved format (echoes the requested format,
or PCM when none was requested).
Fields§
§audio: BytesRaw audio bytes returned by the provider.
content_type: Option<String>Upstream Content-Type header, when set.
format: SpeechFormatResolved output format (echoes the requested format, or PCM).
Trait Implementations§
Source§impl Clone for SpeechResponse
impl Clone for SpeechResponse
Source§fn clone(&self) -> SpeechResponse
fn clone(&self) -> SpeechResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SpeechResponse
impl RefUnwindSafe for SpeechResponse
impl Send for SpeechResponse
impl Sync for SpeechResponse
impl Unpin for SpeechResponse
impl UnsafeUnpin for SpeechResponse
impl UnwindSafe for SpeechResponse
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