Speech module
speech
Voice activity detection over decoded audio, reported as speech events.
Classes
| Name | Description |
|---|---|
SpeechQueue | Async queue for decoded audio packets. |
VoiceActivityDetector | Detects speech in decoded audio by its energy and emits speech:start, speech:update and speech:end events. |
AudioRef | The audio packet an event refers to: its sequence, timing and sample format. |
SpeechEvent | A speech:start, speech:update or speech:end event, with the source, detector, audio and signal levels that produced it. |
VoiceActivityDetectorConfig | Settings for a VoiceActivityDetector: the source it reports for, the levels that start and stop speech, how long silence lasts before speech ends, and how often it reports while speech continues. |
VoiceActivityDetectorStats | Counts of packets seen and events emitted, whether speech is active, and the last measured levels. |
Functions
| Return | Name | Description |
|---|---|---|
Speech_APIAudioRef | makeAudioRef | |
Speech_APIjson::Value | toJson | |
Speech_APIjson::Value | toJson |
makeAudioRef
Speech_APIAudioRef makeAudioRef(const av::PlanarAudioPacket & packet, uint64_t sequence = 0, int sampleRateHint = 0)Defined in src/speech/include/icy/speech/event.h:58
toJson
Speech_APIjson::Value toJson(const AudioRef & audio)Defined in src/speech/include/icy/speech/event.h:61
toJson
Speech_APIjson::Value toJson(const SpeechEvent & event)