Repository navigation
ELEVENLABS_VOICE
Status: Implemented
Last Updated: 2026-11-13
Audience: Developers and coding agents
Last verified: 2026-11-13 against 5f40af2d9 (engine catalog and route selector only)
Code: src/Martlet.Core/Settings/ElevenLabsSetup.cs, src/Martlet.Core/Settings/SpeechEngines.cs, src/Martlet.Providers/ElevenLabsDialogueClient.cs, src/Martlet.Providers/ElevenLabsVoiceCloning.cs, src/Martlet.Desktop/Pages/Voice/
This audit checked the engine catalog and route controls only. It did not repeat provider requests, upstream checks, or runtime measurements below.
Martlet can speak replies with ElevenLabs (elevenlabs.io). ElevenLabs
copies one of your saved voices and speaks with it in real time. It also does
tones of voice, such as [whispers], [happy] or [sad], and sounds such as
[laughs]. Chatterbox Turbo also supports a smaller set of sound and tone
tags (see Chatterbox voice).
ElevenLabs is the only cloud service we checked whose own documentation covers
a cloned voice and tone control in real time.
Status. Martlet's ElevenLabs support follows ElevenLabs' documentation (read 2026-10-07). It was never run against the live service, because there is no ElevenLabs account to test with. Every check ran against a local fixture that follows the documented protocol (see How it was checked).
- An ElevenLabs account with a plan that allows Instant Voice Cloning and the API. ElevenLabs charges per character (pricing).
- An ElevenLabs API key (elevenlabs.io › Developers › API keys). The key must allow Text to Speech and Voices.
- One of your saved voices (Companion › Voice › This PC › Voices). The recording must be your own voice, a voice whose speaker gave you permission, or a published sample that anyone may use.
- Open Companion › Voice.
- Under Where it runs, choose A cloud provider.
- In the ElevenLabs: your cloned voice with tones card, choose the model. Keep Eleven v4 Turbo unless ElevenLabs refuses it.
- Choose the voice to clone.
- Paste your ElevenLabs API key. Martlet keeps it in Windows Credential Manager.
- Read the box and tick it. It allows Martlet to upload the recording once and to send reply text to ElevenLabs.
- Press Clone and use ElevenLabs.
Martlet uploads the recording, gets the new voice's ID and saves the Voice route. The cloned voice stays in your ElevenLabs account (My Voices) until you delete it there. If ElevenLabs asks you to verify the voice, the card says so. Verify it on elevenlabs.io before it speaks.
Press the button again with the same voice and the saved key: Martlet uses the voice it cloned before and uploads nothing. A new key, or another voice, makes a new clone. When Voice moves to another provider, the ElevenLabs key goes to Keys from before. When Voice comes back to ElevenLabs, Martlet uses that key again.
| When | What goes to ElevenLabs |
|---|---|
| You press Clone and use ElevenLabs (box ticked) | The chosen recording (WAV), its name Martlet - <voice name> and your key |
| Martlet speaks a reply | Each spoken piece of the reply text, with its tags, the model, the cloned voice's ID and your key |
Saving settings, opening the page or starting Martlet sends nothing. Quick sounds (Companion › Voice) use ElevenLabs only when you press Make quick sounds now, because each clip costs money. Discord voice calls do not use ElevenLabs; they speak only with a voice engine on a host.
| Model | ID | Notes from ElevenLabs' documentation |
|---|---|---|
| Eleven v4 Turbo (default) | eleven_v4_turbo |
Real time, median model latency about 100 ms without the network. Audio tags. One voice per connection. Offered through the Text to Dialogue WebSocket only. |
| Eleven v3 Conversational | eleven_v3_conversational |
Real time, about 280 ms. Audio tags. One voice per connection. The WebSocket's API reference names it as the default model. |
ElevenLabs' documentation does not agree with itself here. The Text to
Dialogue guide and the models page say Eleven v4 Turbo works on the WebSocket.
The WebSocket's API reference says the model ID must start with eleven_v3.
If ElevenLabs refuses the model, the voice stops for that reply, the text still
arrives, and the desktop log says: ElevenLabs refused eleven_v4_turbo here;
choose Eleven v3 Conversational in Companion › Voice. Martlet never changes the
model by itself.
When ElevenLabs speaks, the Thinking model gets ElevenLabs' own tags in Companion › Skills › Voice sounds and tones (see Voice tags). The tags are the ones ElevenLabs documents for Eleven v3 and v4, limited to those that suit a conversation:
-
Sounds:
[laughs],[chuckles],[sighs],[clears throat],[inhales deeply],[exhales]. -
Tones:
[whispers],[shouts],[happy],[excited],[sad],[crying],[angry],[sarcastic],[annoyed],[surprised],[curious].
Sound effects ([gunshot], [applause]), accents and [sings] are left out.
Each tag reaches ElevenLabs as it is written. Other spellings count as the tag:
[whisper] or *whispers* is sent as [whispers], and Chatterbox's [laugh]
as [laughs]. The chat, the saved conversation and the captions never show a
tag.
Each tag uses a cue that the desktop character already has, so the character
acts with the voice: [whispers] is the whispering cue, [shouts] dramatic,
[excited] happy, [sad] sigh, [annoyed] sarcastic and [curious]
surprised. Tags without a fitting cue ([snorts], [thoughtful],
[mischievously]) are left out.
ElevenLabs documents that the tags change the delivery. Martlet has not measured how well they work with a cloned voice. ElevenLabs says a tag works best when the recording already has that delivery.
Cloning. POST https://api.elevenlabs.io/v1/voices/add, a multipart form
with name, files (one WAV file), remove_background_noise=false and
description, and the key in the xi-api-key header. The answer gives
voice_id and requires_verification.
Speaking. Each spoken piece of a reply uses one connection to
wss://api.elevenlabs.io/v1/text-to-dialogue/stream-input?model_id=<model>&output_format=pcm_24000:
- Martlet connects with the key in the
xi-api-keyheader (never in a message). - The first message registers the one cloned voice:
{"voices":["<id>"]}. - The next message sends the piece:
{"inputs":[{"text":"...","voice_id":"<id>"}]}. - The last message is
{"close_socket":true}. ElevenLabs then says the buffered text at once, so a short piece does not wait for the server's 40-character buffer. - ElevenLabs sends base64
audiomessages and thenis_final. The audio is raw 24 kHz mono 16-bit PCM, which Martlet plays as it arrives, with nothing to decode.
An error message (message, error, code, param) or an early close stops
that piece's voice. Martlet writes ElevenLabs' reason to the desktop log, never
the key or the text. A key that is wrong, out of credits or rate limited, and a
refused model or voice, each get their own failure code.
One connection per piece keeps each piece under its own one-use permission and key, as Martlet's other voices do. The cost is a new connection (TCP, TLS and the WebSocket upgrade) per piece. Pieces after the first are made while the one before plays, so mostly the first piece's connection adds to the time to the first audible word.
ElevenLabs' latency was not measured: there is no account. When you use
ElevenLabs, the desktop log's Reply latency line shows voice synthesis
(from the voice request to its first audio) for each reply, as it does for
every voice. ElevenLabsDialogueClient.LastSegment keeps the last piece's
connect time, time to first audio and total time.
Choosing ElevenLabs does not change the latency of any other voice: the other routes run exactly as before.
All checks ran on this PC against ElevenLabsFixture. It is a local stand-in
on 127.0.0.1 that follows ElevenLabs' documented protocol. It is a FIXTURE,
NOT ElevenLabs and NOT AI: its "voice" is a quiet tone as long as the words,
cut into base64 chunks at odd byte boundaries.
- Unit tests (
ElevenLabsTestsinMartlet.Providers.Tests,ElevenLabsSettingsTestsinMartlet.Core.Tests,ElevenLabsTagTestsinMartlet.Conversation.Tests). -
elevenlabs_checkin Martlet MCP: cloning, one piece, and a whole spoken reply through the production conversation runtime, plus a refused model and a wrong key. - Companion › Voice through the desktop's MCP automation (
ElevenLabsStatus,ElevenLabsModel,ElevenLabsKeyStatus).
NOT RUN: any request to the live ElevenLabs service (cloning, speaking, tags, latency, voice verification, billing). The reason: there is no ElevenLabs account or key.
- Only
api.elevenlabs.iois used. ElevenLabs' regional servers (US, EU, India, Singapore) are not offered. - Martlet does not delete cloned voices from your ElevenLabs account. Delete them on elevenlabs.io.
- The voice's stability and other voice settings stay at ElevenLabs' defaults.
- The ElevenLabs choice stays on the computer where you made it. It is not shared with your other Martlet computers.
Martlet: download · repository · changelog · issues
These pages come from docs/wiki in the repository. To suggest a change, open an issue or a pull request there.
- Home
- Accounts and households
- Accounts and Household
- Android phones and tablets: what it takes, and the plan
- Martlet's API for other apps and scripts
- App Guides
- App Settings and Updates
- App guides: game and app knowledge from the web
- Architecture
- Bounded PCM playback
- Audio dependency inventory and notices
- Avatar guide: Live2D, VRM and speech animation
- V01a explicit microphone capture
- Chatterbox voice engines
- Cleaning up disk space
- One Martlet on all your computers
- Companion controls and behavior requirements
- Components, jobs and placement (design)
- Live conversation
- Creations
- Decision map: which file owns each decision
- Deep research: web search and long research jobs
- The desktop app: updates, notification area, exiting and appearance
- Linux and macOS desktop companion: research, decision and plan
- Developer Guide
- Dia voice engine
- Diagnostics
- Discord
- Architecture and provider contracts
- Discord
- Memory (P03a/P03b/P03c)
- Singing
- Desktop troubleshooting and local support
- Recognizing people by voice, and Parakeet
- Echo cancellation
- ElevenLabs voice: your cloned voice with tones
- F5 worker and reference-voice foundation
- FAQ
- First Steps
- Game state plan: implementation history
- Glossary: one name for each concept
- GPT-SoVITS voice
- Hosted Thinking: cloud models when Thinking can't run on this PC
- Installation and support
- Installing Martlet
- iOS and iPadOS: what it takes, and the plan
- Repository instructions for coding agents
- Repository knowledge base
- Knowledge base maintenance
- GitHub Wiki mirror
- Linux and Mac
- Listening and Voice ID
- Local model apps
- Lorebooks
- macOS: what it takes, and the plan
- Martlet MCP Server
- MCP in Martlet
- MCP: The app's window
- MCP: Apps, home and memory
- MCP: Characters
- MCP: Diagnostics and logs
- MCP: Computers, network and accounts
- MCP: Other
- MCP: Tool permissions
- MCP pages
- MCP: Server and protocol internals
- MCP: Settings
- MCP: Start here
- MCP: Thinking and models
- MCP: Voice and listening
- Memory
- Messaging apps
- Model catalog: sources, conflicts and design
- Motion host role
- Multiple Computers
- Your Martlet network
- OCR host role
- Share your language models: the OpenAI-compatible endpoint
- Packaging
- Perception worker contracts
- Personality and Characters
- Picture making
- Pictures and Creations
- Picture making host role
- Platforms: what each device can do
- Prerequisites: what Martlet bundles, installs for you, or needs from you
- Privacy and Safety
- Reading the text on your screen
- Wiki source
- Recommendation design: ask three questions, plan for three situations
- Recommended setups: one machine to unlimited budget
- Releasing
- Repository Layout
- Research and provenance ledger
- Resource footprints
- Roadmap
- Watch my screen: screen-aware commentary
- Search engine
- Image and audio models: who sees, who hears, who answers
- Setting Up a Host
- Setup, Windows credentials and local audio
- Sharing with Friends
- Singing
- Smart Home
- Smart home and cameras
- Source Projects
- Talking to Martlet
- Telegram and WhatsApp
- The Character
- Thinking
- Tools and MCP
- Troubleshooting
- Martlet desktop UI design
- User stories and target flows
- Voice activity detection
- Validating changes
- Validation and Testing
- Vision
- Voice latency: from you stopping talking to Martlet's voice
- Voice recognition host role
- Multi-engine voice setup and comparison
- Voices
- The welcome wizard
- XTTS-v2 voice engine