TranscriptionSpeechFinalEvent
Emitted when an utterance is fully complete.
Defined in: src/core/events/types.ts:194
Emitted when an utterance is fully complete.
Remarks
This is the canonical trigger for LLM processing. For Deepgram, this fires when speech_final=true (the speaker has stopped talking). For NativeSTT and other providers that emit one result per utterance, this equals transcription.final.
Multi-segment providers (Deepgram) may emit several transcription.final events for a single utterance. Only the last one is followed by transcription.speechFinal.
Example
agent.on('transcription.speechFinal', (event) => {
console.log('Complete utterance:', event.text);
});
See
- TranscriptionFinalEvent for individual segments
- TranscriptionPreflightEvent for early/speculative triggers
- TranscriptionEvent for all transcription event types
Extends
BaseEvent
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
confidence? | number | Confidence score (0-1) for this result, if available. | - | src/core/events/types.ts:202 |
metadata? | Record<string, unknown> | Optional metadata associated with the event. Remarks May contain provider-specific data or debugging information. | BaseEvent.metadata | src/core/events/types.ts:88 |
text | string | The complete transcribed text for the entire utterance. | - | src/core/events/types.ts:199 |
timestamp | number | Unix timestamp (in milliseconds) when the event occurred. Remarks Useful for latency measurements and debugging the pipeline timing. | BaseEvent.timestamp | src/core/events/types.ts:80 |
type | "transcription.speechFinal" | Discriminant for this event type. | - | src/core/events/types.ts:196 |