pub(crate) struct TakeRecord<'a> {
pub(crate) audio: &'a [f32],
pub(crate) windows: &'a [WindowRecord],
pub(crate) joined: &'a str,
pub(crate) text: &'a str,
pub(crate) stages: &'a Stages,
pub(crate) models: &'a TakeModels,
pub(crate) start_lag_ms: u64,
pub(crate) processing_ms: u64,
pub(crate) truncated: bool,
pub(crate) outcome: &'a str,
pub(crate) recognition_error: Option<(usize, String)>,
}Expand description
Everything one finished take contributes to the store.
Fields§
§audio: &'a [f32]§windows: &'a [WindowRecord]§joined: &'a strThe exact normalizer input.
text: &'a str§stages: &'a Stages§models: &'a TakeModelsThe models that made this take.
start_lag_ms: u64Engine accept to first window start: the queue, and for early
takes the tail of the model load. The felt lag the stages do
not carry; start_lag_ms + processing_ms spans accept to
reply.
processing_ms: u64§truncated: bool§outcome: &'a strtranscript, empty or recognition_error.
recognition_error: Option<(usize, String)>The window whose recognition failed and the error text, when the take ended in a recognition error.
Auto Trait Implementations§
impl<'a> Freeze for TakeRecord<'a>
impl<'a> RefUnwindSafe for TakeRecord<'a>
impl<'a> Send for TakeRecord<'a>
impl<'a> Sync for TakeRecord<'a>
impl<'a> Unpin for TakeRecord<'a>
impl<'a> UnsafeUnpin for TakeRecord<'a>
impl<'a> UnwindSafe for TakeRecord<'a>
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