Interface: VADEmitterEvents
Defined in: packages/agentos/src/core/audio/AdaptiveVAD.ts:33
Events emitted by the AdaptiveVAD.
Extended by
Properties
no_voice_activity()
no_voice_activity: (
result) =>void
Defined in: packages/agentos/src/core/audio/AdaptiveVAD.ts:41
Emitted for every frame that does not contain voice activity. Contains the VADResult.
Parameters
result
Returns
void
speech_end()
speech_end: (
result,speechDurationMs) =>void
Defined in: packages/agentos/src/core/audio/AdaptiveVAD.ts:37
Emitted when a speech segment ends and silence begins. Contains VADResult and speech duration.
Parameters
result
speechDurationMs
number
Returns
void
speech_start()
speech_start: (
result) =>void
Defined in: packages/agentos/src/core/audio/AdaptiveVAD.ts:35
Emitted when speech segment starts after a period of silence. Contains the VADResult.
Parameters
result
Returns
void
thresholds_updated()
thresholds_updated: (
newSpeechThreshold,newSilenceThreshold,profile) =>void
Defined in: packages/agentos/src/core/audio/AdaptiveVAD.ts:43
Emitted when VAD thresholds are updated due to a new noise profile.
Parameters
newSpeechThreshold
number
newSilenceThreshold
number
profile
Returns
void
voice_activity()
voice_activity: (
result) =>void
Defined in: packages/agentos/src/core/audio/AdaptiveVAD.ts:39
Emitted for every frame that contains voice activity. Contains the VADResult.
Parameters
result
Returns
void