Voice activity state machine.
Turns a stream of per-frame speech probabilities (from Octoroom.Agent.VAD.Silero
or any other analyzer) into :speech_started / :speech_stopped events using
hysteresis:
- speech starts once probabilities stay at or above
start_thresholdformin_speech_ms - speech stops once probabilities stay below
stop_thresholdformin_silence_ms
Probabilities between the two thresholds keep the current state.
Summary
Functions
Builds a state machine. Accepts a map or keyword list with any of the default
keys plus :frame_ms (the duration covered by each probability).
Feeds one frame probability. Returns the events it triggered.
Feeds several frame probabilities in order.
Types
Functions
Builds a state machine. Accepts a map or keyword list with any of the default
keys plus :frame_ms (the duration covered by each probability).
Feeds one frame probability. Returns the events it triggered.
Feeds several frame probabilities in order.