fix: handle "auto" locale to prevent invalid language code sent to Gladia#14
Open
lrossillon-gladia wants to merge 2 commits intobigbluebutton:developmentfrom
Open
Conversation
added 2 commits
March 26, 2026 11:23
…adia BBB core sends locale "auto" when the user selects "Auto detect" for live transcription. This value was passed through to Gladia's API verbatim, which rejected it since "auto" is not a valid ISO 639-1 language code. The old bbb-transcription-controller handled this by stripping the language field so Gladia would fall back to server-side auto-detection, but this handling was lost in the migration to LiveKit. - _sanitize_locale() now returns None for "auto" locale - start_transcription_for_user() omits the language param when None, triggering Gladia's built-in auto-detection - update_locale_for_user() sends empty languages list for auto locale - Transcript handlers in main.py resolve BBB locale via the translation map when original locale is "auto" instead of comparing against it
931f3f1 to
b11293b
Compare
Member
|
Thanks for the fix @lrossillon-gladia. Could you please confirm if you already sent in the signed Contributor License Agreement? See https://docs.bigbluebutton.org/support/faq.html#why-do-i-need-to-sign-a-contributor-license-agreement-to-contribute-source-code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
autoas Gladia auto-detection instead of passing an invalid language codelanguageargument and send an emptylanguageslist on locale updatesautoin transcript locale resolution and add regression testsTesting
uvis not installed in this shell)