#[non_exhaustive]pub struct TurnResult {
pub p: f32,
pub ended: bool,
pub probs: Vec<f32>,
pub first_frame: i64,
pub speech_probs: Vec<f32>,
pub speech_first_frame: i64,
}Expand description
The result of one transcribe_cpp::TurnSession::run, transcribe_cpp::TurnSession::stream_feed,
transcribe_cpp::TurnSession::stream_feed_batch or transcribe_cpp::TurnSession::stream_flush.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.p: f32After a run: the probability that the turn has ended at the end of the clip. 0 after a feed or flush.
ended: boolAfter a run: p >= threshold. False after a feed or flush.
probs: Vec<f32>Per-frame turn probabilities from the call: probs[i] says whether the
turn has ended at the end of frame first_frame + i. Always empty for
models that cannot stream.
first_frame: i64Stream position of probs[0], in frames: 0 after a run; for a feed or
flush, the frames the stream had processed before the call.
speech_probs: Vec<f32>Per-frame speech probabilities from the call (empty unless
TurnInfo::has_speech). During a stream they can trail the turn
probabilities; after a run every frame has both.
speech_first_frame: i64Stream position of speech_probs[0], in frames.