Create a new Deepgram STTv2 instance.
Configuration options
Error if no API key is provided
Readonly labelReturns this STT's capabilities
The model being used for transcription
The STT provider name
Receives an audio buffer and returns transcription in the form of a SpeechEvent
Optional abortSignal: AbortSignalCreate a new streaming transcription session.
Optional options: { Stream options
Optional connA SpeechStream that emits transcription events
Update STT options. Changes will take effect on the next stream.
Partial options to update
Deepgram STTv2 using the Flux model for streaming speech-to-text.
This uses Deepgram's V2 API (
/v2/listen) which provides turn-based transcription with support for preemptive generation.Remarks
Key differences from STT (V1):
TurnInfoevents instead ofSpeechStarted/ResultseagerEotThresholdfor preemptive LLM generationPREFLIGHT_TRANSCRIPTevents when eager end-of-turn is detectedExample