dazzling-greece-44016
08/23/2025, 5:30 AMtall-airline-16756
08/23/2025, 5:30 AMtall-airline-16756
08/23/2025, 5:30 AMfiller_words option is turned on by default to help with turn detection accuracy, but that means words like "uh" and "um" get included in your results.
If you’d prefer to skip those filler words, just set filler_words=False when you’re setting up your Deepgram STT instance. Here’s a quick example to show you how:
from livekit.plugins.deepgram import stt
deepgram_stt = stt.STT(
model="nova-3",
interim_results=True,
punctuate=True,
smart_format=False,
filler_words=False, # Disable filler words
sample_rate=16000,
no_delay=True,
endpointing_ms=25,
profanity_filter=False,
language="en-US",
)
Just a heads up—turning off filler words might make turn detection a bit trickier since those fillers actually help the system know when someone’s finished speaking. If you notice it’s not as smooth, you can tweak settings like endpointing_ms to better control when speech is considered done. This way, you can avoid cutting off your agent’s speech too soon.
Sources: livekit-agents/livekit/agents/voice/agent_activity.pydazzling-greece-44016
08/23/2025, 7:07 AMtall-airline-16756
08/23/2025, 7:08 AMaura-2-andromeda-en.
• Encoding: By default, the audio encoding format is linear16.
• Sample Rate: The default audio sample rate is 24000 Hz.
If you want to get Deepgram TTS working in a LiveKit session, here’s a simple example to help you out:
from livekit.plugins import deepgram
from livekit.agents import AgentSession
session = AgentSession(
tts=deepgram.TTS(
model="aura-2-andromeda-en",
),
# ... other components like stt, llm, etc.
)
Just a heads up, make sure your DEEPGRAM_API_KEY environment variable is set up for authentication. Also, if you want to speed things up, you can pre-warm the TTS service by calling the prewarm() method on your TTS instance like this:
tts_instance = deepgram.TTS()
tts_instance.prewarm()
If you’d like to dive deeper, feel free to check out the Deepgram TTS plugin reference or the Voice AI quickstart guide. They’re super helpful!
Sources: Deepgram TTS integration guide | LiveKit Docs | livekit-plugins/livekit-plugins-deepgram/README.md