7ef0e90cc4a0cc4da7dbd0797ebb88a3e7b9d0cf
Language selection ranked only the user's spoken languages, so a user who speaks one language always got that language. With spoken=["en"], Portuguese audio detected at 0.968 pt was sent as language=en, and Whisper answered with a rough English rendering rather than a transcript. `translated` stayed false, so nothing downstream could tell a translation had happened, and detectedLanguage reported "en" for audio that was not English. Take Whisper's top language when it clears 0.5, and fall back to the spoken languages only when the clip really is ambiguous — which is the case the bias was written for. Verified against the local whisper server with pt/en/es recordings: spoken=["en"] pt -> translated English, es -> translated English, en -> as-is spoken=["en","pt"] pt -> Portuguese transcript, no translation spoken=[] pt -> Portuguese transcript Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Description
No description provided
42 MiB
Languages
TypeScript
90.9%
Shell
4.7%
JavaScript
4.1%
CSS
0.2%
HTML
0.1%