pub struct Stages {
pub model_load: Duration,
pub resample: Duration,
pub mel: Duration,
pub encode: Duration,
pub decode: Duration,
pub normalize: Option<Duration>,
pub audio: Duration,
}Expand description
Where the time went in one transcription.
Which stage moved is what separates “our code got slower” from “the model changed”.
Fields§
§model_load: DurationLoading weights. Zero on every run but the first, which is why it is separate: a cold start is not a regression.
resample: DurationTurning the source into the buffer the model reads.
mel: DurationMel spectrogram, as reported by the recognition runtime.
encode: DurationEncoder pass, as reported by the recognition runtime.
decode: DurationDecoder pass, as reported by the recognition runtime.
normalize: Option<Duration>Rewriting recognition output into clean text. None when
normalization did not happen - either none was configured, or it
failed and the raw text was returned instead. A caller knows
which, because it knows what it configured.
audio: DurationHow much audio this run consumed, so a caller can derive a realtime factor without knowing where the audio came from.