Skip to content

EventListenerMap

Typed mapping from event type strings to their corresponding listener signatures.

Defined in: src/core/events/types.ts:1063

Typed mapping from event type strings to their corresponding listener signatures.

Remarks

This interface enables fully type-safe event subscriptions. When you call agent.on('transcription.final', callback), TypeScript infers that the callback receives a TranscriptionFinalEvent — no manual type assertions needed.

Example

// The callback parameter is automatically typed as TranscriptionFinalEvent
agent.on('transcription.final', (event) => {
  console.log(event.text);       // string -- type-safe
  console.log(event.confidence); // number | undefined -- type-safe
});

// The callback parameter is automatically typed as AgentStateChangeEvent
agent.on('agent.stateChange', (event) => {
  console.log(event.state);         // AgentState -- type-safe
  console.log(event.previousState); // AgentState -- type-safe
});

See

Properties

PropertyTypeDescriptionDefined in
agent.errorEventListener<AgentErrorEvent>Listener for AgentErrorEvent.src/core/events/types.ts:1116
agent.readyEventListener<AgentReadyEvent>Listener for AgentReadyEvent.src/core/events/types.ts:1110
agent.stateChangeEventListener<AgentStateChangeEvent>Listener for AgentStateChangeEvent.src/core/events/types.ts:1113
audio.capture.errorEventListener<AudioCaptureErrorEvent>Listener for AudioCaptureErrorEvent.src/core/events/types.ts:1125
audio.capture.startEventListener<AudioCaptureStartEvent>Listener for AudioCaptureStartEvent.src/core/events/types.ts:1119
audio.capture.stopEventListener<AudioCaptureStopEvent>Listener for AudioCaptureStopEvent.src/core/events/types.ts:1122
audio.playback.endEventListener<AudioPlaybackEndEvent>Listener for AudioPlaybackEndEvent.src/core/events/types.ts:1131
audio.playback.errorEventListener<AudioPlaybackErrorEvent>Listener for AudioPlaybackErrorEvent.src/core/events/types.ts:1134
audio.playback.startEventListener<AudioPlaybackStartEvent>Listener for AudioPlaybackStartEvent.src/core/events/types.ts:1128
llm.chunkEventListener<LLMChunkEvent>Listener for LLMChunkEvent.src/core/events/types.ts:1086
llm.completeEventListener<LLMCompleteEvent>Listener for LLMCompleteEvent.src/core/events/types.ts:1089
llm.errorEventListener<LLMErrorEvent>Listener for LLMErrorEvent.src/core/events/types.ts:1092
llm.startEventListener<LLMStartEvent>Listener for LLMStartEvent.src/core/events/types.ts:1083
queue.overflowEventListener<QueueOverflowEvent>Listener for QueueOverflowEvent.src/core/events/types.ts:1137
queue.statsEventListener<QueueStatsEvent>Listener for QueueStatsEvent.src/core/events/types.ts:1140
transcription.errorEventListener<TranscriptionErrorEvent>Listener for TranscriptionErrorEvent.src/core/events/types.ts:1080
transcription.finalEventListener<TranscriptionFinalEvent>Listener for TranscriptionFinalEvent.src/core/events/types.ts:1071
transcription.interimEventListener<TranscriptionInterimEvent>Listener for TranscriptionInterimEvent.src/core/events/types.ts:1068
transcription.preflightEventListener<TranscriptionPreflightEvent>Listener for TranscriptionPreflightEvent.src/core/events/types.ts:1077
transcription.speechFinalEventListener<TranscriptionSpeechFinalEvent>Listener for TranscriptionSpeechFinalEvent.src/core/events/types.ts:1074
transcription.startEventListener<TranscriptionStartEvent>Listener for TranscriptionStartEvent.src/core/events/types.ts:1065
tts.audioEventListener<TTSAudioEvent>Listener for TTSAudioEvent.src/core/events/types.ts:1098
tts.completeEventListener<TTSCompleteEvent>Listener for TTSCompleteEvent.src/core/events/types.ts:1104
tts.errorEventListener<TTSErrorEvent>Listener for TTSErrorEvent.src/core/events/types.ts:1107
tts.metadataEventListener<TTSMetadataEvent>Listener for TTSMetadataEvent.src/core/events/types.ts:1101
tts.startEventListener<TTSStartEvent>Listener for TTSStartEvent.src/core/events/types.ts:1095

© 2026 CompositeVoice. All rights reserved.

Font size
Contrast
Motion
Transparency