lemon-cricket-49002
09/18/2025, 11:15 AMtall-airline-16756
09/18/2025, 11:15 AMtall-airline-16756
09/18/2025, 11:16 AMon_input_speech_transcription_failed event to catch when transcription doesn’t go through and show a clear fallback error message in the chat. This way, your users won’t be left wondering what happened if their audio wasn’t understood.
2. Use ErrorEvent Listener: For broader STT issues like network or API hiccups, the ErrorEvent listener is a great tool. It lets you notify users right away with a message or even a pre-recorded audio fallback, keeping the experience smooth.
3. FallbackAdapter for Resilience: To make your chatbot extra reliable, try implementing FallbackAdapter. It automatically switches between STT providers if one fails, so your users won’t experience interruptions or confusing errors.
If you’d like, I’d be happy to walk you through detailed code examples or clarify any of these steps—just let me know!
Sources: agent/main.py | livekit-plugins/livekit-plugins-gladia/livekit/plugins/gladia/stt.py | Events and error handling | LiveKit Docs