pub struct SynthesizedAudio {
pub frames: u64,
pub prepared_token_count: usize,
pub pcm: Vec<f32>,
}Expand description
A completed synthesis: the codes the talker produced and the audio they decode to.
Fields§
§frames: u64Codec frames generated before the stop.
prepared_token_count: usizeToken ids that entered the model path, including the assistant wrapper.
pcm: Vec<f32>Mono 24 kHz samples in [-1, 1].
Auto Trait Implementations§
impl Freeze for SynthesizedAudio
impl RefUnwindSafe for SynthesizedAudio
impl Send for SynthesizedAudio
impl Sync for SynthesizedAudio
impl Unpin for SynthesizedAudio
impl UnsafeUnpin for SynthesizedAudio
impl UnwindSafe for SynthesizedAudio
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).