nutritious-solstice-434
12/09/2025, 6:40 PMtall-airline-16756
12/09/2025, 6:41 PMtall-airline-16756
12/09/2025, 6:41 PMlanguage=multi but non‑English portions aren't transcribed or forwarded to your LLM. I understand that’s blocking bilingual conversations — here’s what you can do next.
What’s supported
• Setting language="multi" with deepgram/nova-3 enables multilingual transcription and automatic language detection.
• Nova‑3 can transcribe many languages (English, Spanish, French, German, Portuguese, Dutch, Indonesian, etc.).
• Nova‑3 does not explicitly guarantee accurate real‑time code‑switching within a single utterance; it tends to detect a dominant language per segment and can miss short non‑English segments.
Actionable troubleshooting steps
1. Confirm your LiveKit STT config:
◦ If you use AgentSession: ensure stt="deepgram/nova-3:multi".
◦ Or with `inference.STT`: model="deepgram/nova-3", language="multi".
1. Check audio segmentation and quality:
◦ Ensure non‑English speech is clear and not too short/noisy — short code‑switched words can be dropped if model can’t detect language cues.
◦ If possible, increase segment/window length so the STT gets enough context for language detection.
1. Isolate Deepgram vs LiveKit:
◦ Send the same audio directly to Deepgram’s API (outside LiveKit) and verify whether Deepgram transcribes the non‑English parts. This isolates whether the issue is with Deepgram’s detection or with how audio/segments are passed through LiveKit.
1. If Deepgram fails on direct API test:
◦ Deepgram’s multilingual setting may default to dominant language per segment; try grouping same‑language speech into longer segments or explicitly specifying expected languages if Deepgram supports that in your account/config.
1. If Deepgram transcribes fine directly but not via LiveKit:
◦ Check how you forward STT events to the LLM in your pipeline (timing, segment boundaries, dropped events). Make sure LiveKit is sending full transcription segments to the LLM.
Alternatives if you need stronger code‑switching
• Consider an STT provider/plugin that exposes explicit code‑switching controls (for example, Gladia’s plugin supports a code_switching flag).
• You can run language detection on audio segments before STT (or run a lightweight language detector on short segments) and route segments to language‑specific transcription if needed.
If you’d like, tell me:
• How you’re configuring STT in your AgentSession (paste the snippet).
• Whether direct Deepgram API tests transcribe the non‑English audio.
I can help interpret those results and suggest the next config change.
Sources: Deepgram STT | LiveKit docs | Speech-to-text (STT) models | LiveKit Docs | Deepgram STT plugin guide | LiveKit docs | Gladia STT plugin guide | LiveKit Docs