Speech module

speech

Voice activity detection over decoded audio, reported as speech events.

Classes

NameDescription
SpeechQueueAsync queue for decoded audio packets.
VoiceActivityDetectorDetects speech in decoded audio by its energy and emits speech:start, speech:update and speech:end events.
AudioRefThe audio packet an event refers to: its sequence, timing and sample format.
SpeechEventA speech:start, speech:update or speech:end event, with the source, detector, audio and signal levels that produced it.
VoiceActivityDetectorConfigSettings 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.
VoiceActivityDetectorStatsCounts of packets seen and events emitted, whether speech is active, and the last measured levels.

Functions


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)

Defined in src/speech/include/icy/speech/event.h:62