Feature Contribution: Add support for ElevenLabs TTS voices.#1073
Open
evetzyokozuna wants to merge 26 commits intoagent0ai:mainfrom
Open
Feature Contribution: Add support for ElevenLabs TTS voices.#1073evetzyokozuna wants to merge 26 commits intoagent0ai:mainfrom
evetzyokozuna wants to merge 26 commits intoagent0ai:mainfrom
Conversation
… proxy (profile-based streaming)
…lob fallback, profile evetz)
…ech tab, bound to localStorage speech.el11Server
…etio (requirements.txt freeze)
…profile, create-skill update
… post method, request.json(), absolute paths)
…mods, speech UI, dashboard dir, flask/bak files)
… all .bak files & org.html.bak.orgchart.v1
…bak.py, .bak3, .bak4)
EL11 TTS Proxy Implementation (feature/elevenlabs)
…ntime (resolve post-merge mismatch)
fix: Sync el11_tts.py & requirements.txt to live runtime (Flask hybrid)
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
This PR adds and stabilizes an ElevenLabs-based voice output path in Agent Zero, alongside existing browser/Kokoro speech behavior.
It updates backend API handling, frontend speech routing, and settings UX so ElevenLabs can be enabled as an optional provider without regressing default behavior.
Files covered
python/api/el11_tts.pywebui/components/chat/speech/speech-store.jswebui/components/settings/agent/speech.htmlrequirements.txtProblem Statement
Voice output through kokoro was OK, but for those wanting a more human like voice for their agent-zero implementation, allow for custom voices from ElevenLabs.
This PR implements an additional capability to use ElevenLabs voices.
What this PR changes
1)
python/api/el11_tts.py— ElevenLabs proxy API endpointPurpose
Provide a server-side TTS proxy endpoint (
/el11_tts) that:audio/mpegdata to the clientBehavior
text(required)profile(optional, defaults to active profile)agents/<profile>/elevenlabs_voice.jsonEL11_API_KEYWhy this matters
2)
webui/components/chat/speech/speech-store.js— speech provider routing + playbackPurpose
Add real speech routing support for ElevenLabs in the existing TTS flow.
Behavior added
/el11_ttsWhy this matters
3)
webui/components/settings/agent/speech.html— settings UXPurpose
Expose a clear user-facing toggle for ElevenLabs proxy TTS in the Speech settings panel.
Behavior added
Why this matters
4)
requirements.txt— dependency/runtime parityPurpose
Align dependency set with runtime expectations for the ElevenLabs integration path and live environment stability.
Why this matters
Configuration and Usage
Required env
EL11_API_KEY=<your_elevenlabs_key>Required voice config
Place
elevenlabs_voice.jsonin relevant agent directories, e.g.:agents/agent0/elevenlabs_voice.jsonagents/default/elevenlabs_voice.jsonExample fields:
voice_idmodelstabilitysimilarity_booststyleEnable in UI
Backward Compatibility
Security Considerations
/el11_tts) rather than external API directly.Validation / Test Notes
Manual checks performed
/el11_ttscontent-type: audio/mpeg)Suggested reviewer checks
Known Limitations / Follow-ups
tts_modesetting for stronger clarity./el11_ttsshape or move to provider abstraction layer.Why this PR is valuable
This change turns ElevenLabs support from “partial wiring + config files” into a working, testable, user-selectable voice path in Agent Zero.
It is designed to preserve current behavior while enabling higher-quality voice output now and cleaner voice-provider extensibility going forward.