TranscriptionPreflightEvent
Emitted when a provider sends a preflight/eager-end-of-turn signal.
Defined in: src/core/events/types.ts:226
Emitted when a provider sends a preflight/eager-end-of-turn signal.
Remarks
DeepgramFlux (e.g., flux-general-en) emits this before speech_final to allow downstream stages (LLM) to start generating speculatively. The text may change slightly when the confirmed speech_final arrives.
This event is only relevant when EagerLLMConfig is enabled.
Example
agent.on('transcription.preflight', (event) => {
console.log('Preflight transcript:', event.text);
});
See
- EagerLLMConfig for enabling the eager LLM pipeline
- TranscriptionSpeechFinalEvent for the confirmed result
- TranscriptionEvent for all transcription event types
Extends
BaseEvent
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
confidence? | number | Confidence score (0-1) for this preflight result, if available. | - | src/core/events/types.ts:239 |
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 | Provisional transcript text. Remarks May change slightly when the confirmed speech_final arrives. | - | src/core/events/types.ts:236 |
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.preflight" | Discriminant for this event type. | - | src/core/events/types.ts:228 |