pub struct SynthesizedAudio {
pub frames: u64,
pub prepared_token_count: usize,
pub pcm: Vec<f32>,
pub ttfa: Option<Duration>,
}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].
ttfa: Option<Duration>Time from synthesis start (prompt work + prefill + first frames) to the first decoded
packet of PCM existing. None when the run produced no audio. Time-to-first-audio and
real-time factor are different products (doctrine: report them separately); this is the
TTFA half, excluding model load, which the load stage event already bounds.
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).