Skip to main content
Deepgram is a speech-to-text plugin. It transcribes the caller’s audio into text for the LLM.

Setup

Set your Deepgram API key in the worker environment. Generate a key from the Deepgram console:

Usage

Import the plugin and pass it to the pipeline’s stt slot.

Parameters

Constructor parameters for DeepgramSTT. The Python and Node JS SDKs share these field names.

Flux

DeepgramSTTV2 runs Deepgram Flux, which combines transcription with built-in end-of-turn detection. Choose it for natural, low-latency turn-taking in voice agents.
Constructor parameters for DeepgramSTTV2. The api_key works as it does for DeepgramSTT.

Import paths

Transcribed text passes to the LLM once turn detection decides the caller has finished speaking.

Inference models

These Deepgram models also run through the Inference Gateway on your Zero Runtime auth token, with no Deepgram API key. Pass the model id to the same class imported from zeroruntime.inference (Python) or @zeroruntime/js-sdk/inference (Node JS).