Skip to content

fix: "Auto Detect" breaks closed captions w/ Gladia - Handle auto locale#20

Open
gschwienbacher wants to merge 2 commits intobigbluebutton:developmentfrom
gschwienbacher:handle-auto-locale
Open

fix: "Auto Detect" breaks closed captions w/ Gladia - Handle auto locale#20
gschwienbacher wants to merge 2 commits intobigbluebutton:developmentfrom
gschwienbacher:handle-auto-locale

Conversation

@gschwienbacher
Copy link
Copy Markdown

fixes: #15
(and replaces #14)

I was in contact w/ @lrossillon-gladia and am bringing in the changes as I've already signed the CLA.
Credits to @lrossillon-gladia

Summary

  • treat BBB locale auto as Gladia auto-detection instead of passing an invalid language code
  • omit the initial language argument and send an empty languages list on locale updates
  • handle auto in transcript locale resolution and add regression tests
  • add the required changelog entry

Testing

  • not run in this environment (uv is not installed in this shell)

Lazare Rossillon and others added 2 commits April 2, 2026 18:10
…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
@prlanzarin prlanzarin self-requested a review April 2, 2026 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Auto Detect" breaks closed captions w/ Gladia

1 participant