narrow-laptop-64001
10/24/2025, 7:11 AMtall-airline-16756
10/24/2025, 7:11 AMtall-airline-16756
10/24/2025, 7:13 AMnarrow-laptop-64001
10/24/2025, 7:13 AMtall-airline-16756
10/24/2025, 7:14 AM# First, install the plugin
pip install livekit-plugins-deepgram
from livekit.plugins import deepgram
# Initialize Deepgram STT
stt = deepgram.STT(
model="nova-3",
language="en-US",
interim_results=True,
punctuate=True,
)
# Use in a streaming context
stream = stt.stream()
# You can send audio frames to stream.input
# And get transcription results from stream.output
Node.js Integration
// Start by installing the plugin
npm install @livekit/agents-plugin-deepgram
import { STT } from '@livekit/agents-plugin-deepgram';
const stt = new STT({
apiKey: process.env.DEEPGRAM_API_KEY,
model: 'nova-3',
language: 'en-US',
interimResults: true,
});
const stream = stt.stream();
// Just write audio frames to stream.input
// And you’ll receive transcription results via stream.output
Don’t forget to set your Deepgram API key in your environment like this:
export DEEPGRAM_API_KEY=your_api_key_here
If you have any questions or would like me to provide more examples, please feel free to ask—I’m here to help!
Sources: Deepgram STT plugin guide | LiveKit Docs | Deepgram TTS plugin guide | LiveKit Docs | livekit-plugins/livekit-plugins-deepgram/livekit/plugins/deepgram/stt_v2.py | plugins/deepgram/README.mdnarrow-laptop-64001
10/24/2025, 7:14 AMtall-airline-16756
10/24/2025, 7:15 AM# Python
pip install livekit-plugins-deepgram
# Node.js
npm install @livekit/agents-plugin-deepgram
2. Set Up Authentication:
First, you’ll want to grab your Deepgram API key and set it as an environment variable like this:
export DEEPGRAM_API_KEY=your_api_key_here
3. Integrate with Your Voice Agent:
Here’s a friendly Python example to get you going:
`from livekit.agents import AgentSession
from livekit.plugins import deepgram, silero, openai, cartesia
from livekit.plugins.turn_detector import MultilingualModel
# Load VAD model
vad = silero.VAD.load()
# Create STT instance
stt = deepgram.STT()
# Create TTS and LLM instances
tts = cartesia.TTS()
llm = openai.LLM()
# Initialize turn detector
turn_detector = MultilingualModel()
# Start agent session
session = AgentSession(
vad=vad,
stt=stt,
tts=tts,
llm=llm,
turn_detection=turn_detector,
)
await session.start(room=your_room, agent=your_agent)`If you’re working with Node.js, the process is quite similar using the Deepgram STT plugin.
4. Customize Parameters:
Feel free to tailor the Deepgram STT settings to your needs, like choosing the model, language, or key terms to listen for:
stt = deepgram.STT(
model="nova-3",
language="en-US",
punctuate=True,
keyterms=["pizza", "reservation", "menu"],
)
If you have any questions or would like more examples, just let me know—I’m here to help!
Sources: Deepgram STT | LiveKit Docs | examples/voice_agents/realtime_turn_detector.py | Deepgram STT plugin guide | LiveKit Docs | agent.py | examples/src/cartersia_tts.ts