crooked-tiger-31253
12/10/2025, 9:59 PMtall-airline-16756
12/10/2025, 9:59 PMtall-airline-16756
12/10/2025, 10:00 PMuser_input_transcribed events.
What most commonly causes duplicates:
• Multiple listeners accidentally registered for user_input_transcribed on the same session.
• Client/frontend processing both interim and final transcript messages as separate final results.
• An edge-case during a fallback retry where a failed primary produced an event before the fallback result — rare, but possible if your event handling doesn't deduplicate.
Troubleshooting steps (quick):
1. Confirm a single listener: search your code for every place you call add/subscribe for user_input_transcribed and ensure you only attach once per session.
2. Check interim vs final flags: verify your handler ignores interim transcripts if you only want final results.
3. Reproduce with logging: enable debug logs around transcription events and STT selection; log provider used, request timestamps, and event payload IDs.
4. Correlate failures: when you see a duplicate, check whether the primary returned an error before the fallback returned success (look for STT error events or provider health marks).
If you’d like, share:
• a short snippet showing how you subscribe to user_input_transcribed, and
• one example of the duplicate event payloads (timestamps / interim/final flags / provider info if present).
I can then point out exactly where duplicates are likely introduced and suggest precise code fixes.
Sources: Events and error handling | LiveKit docs | Text and transcriptions | LiveKit docs