Skip to content

Voice feature broken: hardcoded ElevenLabs agent IDs prevent self-hosted voice #771

Description

@Ashkaan

Problem

The voice feature in Happy Coder does not work for users because the ElevenLabs Conversational AI agent IDs are hardcoded to the Happy team's ElevenLabs account.

From the source code:

agentId: __DEV__ ? 'agent_7801k2c0r5hjfraa1kdbytpvs6yt' : 'agent_6701k211syvvegba4kt7m68nxjmw'

There is no way for users to provide their own ElevenLabs API key or agent ID. The voice feature appears to activate (the voice button works, "Happy here" greeting plays) but transcription never fires and the conversation loop fails.

Expected behavior

Users should be able to:

  1. Provide their own ELEVENLABS_API_KEY as an environment variable
  2. Have Happy auto-create a voice agent in their ElevenLabs account (like HAPI does)
  3. Or specify a custom ELEVENLABS_AGENT_ID

Environment

  • happy-coder: v0.13.0
  • Platform: Linux (Ubuntu 24.04)
  • iOS app: latest from App Store

Related issues

This affects 20+ existing voice-related issues including #241, #576, #402, #410, #546, #624, #397.

Workaround

Switched to HAPI (@twsxtd/hapi) which allows users to bring their own ElevenLabs API key.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions