how to use deepgram flux model?
# ask-ai
b
how to use deepgram flux model?
t
Thanks for reaching out, Mohammed. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm happy to help you get started with using the Deepgram Flux model alongside LiveKit! You can use the Deepgram STT plugin for LiveKit Agents, which supports the
flux-general-en
model. Here's a simple way to set it up:
Copy code
from livekit.plugins import deepgram

# Initialize STT with the Deepgram Flux model
stt_instance = deepgram.STT(model="flux-general-en")
Here are a few important things to keep in mind: • You can provide your Deepgram API key either when initializing or by setting the
DEEPGRAM_API_KEY
environment variable. • The STT instance works within an
AgentSession
to handle real-time audio streams from your LiveKit rooms. • Feel free to customize additional settings like sample rate, end-of-speech detection thresholds, and tags to fit your specific needs. If you have any questions or want to dive deeper into configuration options, just let me know—I’m here to help! Sources: examples/voice_agents/realtime_turn_detector.py | test/agents/guest.py