Repository navigation
fix(transcription): omit unset ElevenLabs language - #1429
bhavya70020 wants to merge 1 commit into
Conversation
Reviewer's GuideImplementationBuild the ElevenLabs realtime URL with the language parameter omitted for unset values while preserving explicit language codes.
TestsTest URL construction and verify run_stream passes the expected language query parameter for automatic detection and explicit language selection.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Linked issuesChecked at commit ee39256 #1415 ElevenLabs room captions never start when the room's spoken language isn't set · 1 of 1 met
|
|
Hi @bhavya70020, thanks for your contribution! Before we can review this PR, please add a short screencast video showing the change working (before/after where relevant). If no video is added within 72 hours, this PR will be closed automatically. You are welcome to reopen it or submit a new PR once you have the screencast. |
|
Hi! I've added the requested screencast demonstrating the ElevenLabs language detection fix, including the URL behavior for unset and explicitly selected languages, along with the passing test results. Thank you for reviewing my contribution! voxbento.mp4 |
|
Thank you @bhavya70020 for adding a screencast! The |
Description
Fixes an issue where ElevenLabs receives an empty
language_codequery parameter when no transcription language is selected, preventing automatic language detection.This change ensures the parameter is omitted when the language is unset.
Related Issue
Closes #1415
Changes Made
build_realtime_url()helper.language_codewhen its value isNone, empty, or"floor".run_stream()integration-level tests covering automatic detection and explicit language selection.Testing
Test results:
58tests passed acrosstest_transcription_providers.pyandtest_demo_stream_finalization.py.git diff --checkpassed.Screenshots (if applicable)
Not applicable. This is a backend change.
Checklist
Additional Notes
PR #1413 also modifies the ElevenLabs realtime URL builder. This PR addresses the separate automatic language detection issue and may require coordination when both changes are integrated.
Created with Gemini 4 Hydrogen in Antigravity.
Summary by Sourcery
Allow ElevenLabs to detect the transcription language automatically when no language is selected.
Bug Fixes:
language_codeparameter when the transcription language is unset, empty, orfloor, allowing automatic language detection.Tests:
Summary by CodeRabbit