pub enum SystemFrame {
Start,
Stop,
Interrupt,
SpeechStarted,
SpeechStopped,
Error {
message: Arc<str>,
fatal: bool,
},
}Expand description
System frames: lifecycle, control, and errors.
These are bidirectional: Interrupt, Start/Stop, and the
SpeechStarted/SpeechStopped voice-activity edges travel downstream;
Error typically travels upstream. Immutable once constructed.
Variants§
Start
Pipeline is starting; stages should initialise any runtime state.
Stop
Graceful shutdown; stages should flush and clean up.
Interrupt
User barged in; stages should discard in-flight work and reset.
SpeechStarted
Voice-activity detection observed the user start speaking. Travels downstream so stages can open an utterance and prepare to transcribe. Emitted by a VAD stage on the silence→speech edge, not per audio window.
SpeechStopped
Voice-activity detection observed the user stop speaking. Travels downstream so stages can close the utterance and flush it for transcription. Emitted on the speech→silence edge.
Error
An error propagated through the pipeline.
Trait Implementations§
Source§impl Clone for SystemFrame
impl Clone for SystemFrame
Source§fn clone(&self) -> SystemFrame
fn clone(&self) -> SystemFrame
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more