better-sandwich-65834
07/22/2025, 7:19 AMtall-airline-16756
07/22/2025, 7:19 AMtall-airline-16756
07/22/2025, 7:20 AMgladia.STT(
translation_enabled=True,
languages=["en", "es"],
translation_target_languages=["en"] # or ["es"] for Spanish output
)
• Custom Translation Pipeline: Use Deepgram STT for transcription and an LLM (such as OpenAI GPT-4o) for translation. This approach allows you to build a custom translation system for live captioning and more complex scenarios.
• Dynamic Language Switching: You can update STT and TTS language settings on the fly to switch between English and Spanish as needed.
• Supported Providers: Both Deepgram and Gladia support English and Spanish for real-time speech-to-text and translation.
For most use cases, Gladia STT with built-in translation is the simplest solution. For advanced scenarios, such as multi-participant translation or custom workflows, use Deepgram STT with an LLM-based translation pipeline.
Let me know if you need implementation details for a specific approach.
Sources: LiveKit turn detector plugin | LiveKit Docs | livekit-plugins/livekit-plugins-gladia/livekit/plugins/gladia/stt.py | README.md | pipeline-tts/elevenlabs_change_language.py | plugins/deepgram/src/models.tsbetter-sandwich-65834
07/22/2025, 7:21 AMtall-airline-16756
07/22/2025, 7:23 AMfrom livekit.plugins import gladia
stt = gladia.STT(
languages=["en", "es"],
code_switching=True,
translation_enabled=True,
translation_target_languages=["en"], # or ["es"] for Spanish output
translation_model="base",
translation_match_original_utterances=True
)
• Deepgram STT + LLM Translation: If you're looking for something a bit more customizable, this combo lets you use Deepgram for transcription and an LLM like OpenAI GPT-4o for translation. Perfect for those who want to get a bit more creative!
• Turn Detection: The MultilingualModel is your go-to for keeping track of conversations in both English and Spanish. It's like having a bilingual conversation assistant!
With these awesome tools, you'll be able to provide real-time transcription and translation that feels natural and effortless. Your users will be impressed by how smoothly they can communicate across languages!
Sources: livekit-plugins/livekit-plugins-gladia/livekit/plugins/gladia/stt.py | Gladia integration guide | LiveKit Docs | README.md | LiveKit turn detector plugin | LiveKit Docs | Speech-to-text (STT) integrations | LiveKit Docs