Skip to main content
Deepgram uses a persistent WebSocket connection via the Deepgram Go SDK. Audio is streamed continuously and transcripts are returned in real time. Provider identifier: deepgram

Vault Credential

KeyDescription
keyDeepgram API key from console.deepgram.com

Setup

1

Get a Deepgram API key

Sign in at console.deepgram.comAPI Keys → Create a new API key.
2

Add to Rapida vault

In the Rapida dashboard → Credentials → Create Credential, select provider Deepgram, enter key = your API key.
3

Configure the assistant

In the assistant settings → STT Provider, select Deepgram.Optional model parameters via assistant options:
OptionExampleDescription
languageen-USLanguage code
modelnova-3Model: nova-2, nova-3, base, enhanced
punctuatetrueAdd punctuation
diarizetrueSpeaker diarization

How It Works

// Initialize: opens WebSocket to Deepgram live transcription endpoint
d.client = client.NewWSUsingCallback(liveTranscriptionOptions)
d.client.Connect()

// Transform: streams raw PCM bytes
d.client.Stream(bufio.NewReader(bytes.NewReader(in.Audio)))

// Close: graceful stop
d.client.Stop()