pub struct Synthesis {
pub format: AudioFormat,
pub usage: SpeechUsage,
pub audio: ResponseStream,
}Expand description
One completed synthesis: the audio as a stream that can start reaching
the caller before the provider has finished. Debug shows the shape,
never the bytes.
Fields§
§format: AudioFormat§usage: SpeechUsage§audio: ResponseStreamImplementations§
Source§impl Synthesis
impl Synthesis
pub const fn new( format: AudioFormat, usage: SpeechUsage, audio: ResponseStream, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Synthesis
impl RefUnwindSafe for Synthesis
impl Send for Synthesis
impl Sync for Synthesis
impl Unpin for Synthesis
impl UnsafeUnpin for Synthesis
impl UnwindSafe for Synthesis
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