DeepgramSTT
Deepgram speech-to-text (STT) provider. Creates a configured Deepgram STT instance for use in a voice agent.Constructor
Deepgram API key. Falls back to the
DEEPGRAM_API_KEY environment
variable, then null if neither is set.Deepgram recognition model (e.g.
'nova-2', 'nova-3', 'enhanced').BCP-47 language code for transcription (e.g.
'en-US', 'es', 'fr').Emit partial (interim) transcript results before a segment is finalized.
Add punctuation to transcripts.
Apply smart formatting (dates, times, currency, etc.) to transcripts.
Audio sample rate in Hz. Note: this is fixed at 48000 and
has no effect; non-48000 values are ignored.
Silence duration in milliseconds used to detect end of speech (endpointing).
Include filler words (e.g. “uh”, “um”) in transcripts.
Keywords to boost recognition for, optionally with intensifiers
(e.g.
'Deepgram:2'). null to disable.Key terms to boost recognition for (newer keyterm prompting).
null to disable.Remove profanity from transcripts.
Convert spoken numbers into numeric digits.
Free-form tag(s) attached to the request for tracking/usage reporting.
null to disable.Enable speaker diarization (label which speaker said what).
Redaction categories to remove from transcripts (e.g.
'pci', 'ssn',
'numbers'). null to disable.Deepgram streaming endpoint URL.