Skip to content

ElevenLabs room captions never start when the room's spoken language isn't set #1415

Backlog

Description

@shashank03-dev

What happens: a room uses ElevenLabs for its captions and the language spoken on the floor is left unset (the room page says "Speakers use a language not set yet"). The caption worker turns that into an empty language (worker.py#L135-L137) and the ElevenLabs provider puts it in the URL as language_code= (elevenlabs.py#L88). ElevenLabs refuses that session, so the room gets no captions at all, and translation and AI voice for that room get nothing either.

What should happen: with no language set, leave language_code out of the URL. ElevenLabs then detects the language itself, which is what its own error message asks for.

Repro: open the same realtime URL the provider builds, once with language_code= empty and once with en.

language_code=''  -> invalid_request | Invalid language code received: ''. Please leave blank if you want to automatically detect the language or use one of: ...
language_code=en  -> session_started

The fix is one line in how the URL is built. #1413 moves that into build_realtime_url and still sends the empty value, so I'd fix it there once #1413 lands, or on dev first if you prefer.

Activity

  1. bhavya70020 commented on Nov 29, 2026

    @bhavya70020

    I'd like to work on this issue. I'll investigate the ElevenLabs realtime URL construction, ensure language_code is omitted when the room's spoken language is unset, and add regression tests for both unset and explicitly configured languages. I'll coordinate the change with the ongoing #1413 work to avoid conflicts.

  2. github-actions commented on Nov 29, 2026

    @github-actions
    Contributor

    Hi @bhavya70020, thanks for your interest in contributing to VoxBento!

    We don't assign issues to external or new contributors in this repository. Anyone is welcome to work on open issues without waiting for an assignment.

    Please check this issue thread and existing pull requests to ensure nobody else is actively working on it, leave a comment stating you are working on it, and feel free to submit a pull request when ready!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions