Speech module

SpeechEvent

A speech:start, speech:update or speech:end event, with the source, detector, audio and signal levels that produced it.

#include <icy/speech/event.h>

struct SpeechEvent

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

Public Attributes

ReturnNameDescription
std::stringtype
std::stringsource
std::stringdetector
int64_temittedAtUsec
AudioRefaudio
boolactive
floatlevel
floatpeak
json::Valuedata

type

std::string type = "speech:update"

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


source

std::string source

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


detector

std::string detector

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


emittedAtUsec

int64_t emittedAtUsec = 0

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


audio

AudioRef audio

Type: AudioRef

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


active

bool active = false

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


level

float level = 0.0f

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


peak

float peak = 0.0f

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


data

json::Value data = json::Value::object()

Type: json::Value

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