Skip to main content
Bring your own voice by pointing Bolna at any text-to-speech server that speaks the OpenAI speech API. Your server can run anywhere: vLLM-Omni, a self-hosted open-weight TTS model, or a hosted gateway. Bolna calls it at your URL, with your key. Use this when you need a fine-tuned or open-weight voice model, when audio has to stay on your own infrastructure, or when you already pay a TTS provider directly.

Quick config

Register the voice once under Settings → Integrations → TTS → Custom TTS in the dashboard, then select it in the agent’s voice settings. See Add a custom TTS in the dashboard for the walkthrough and Add a custom TTS over the API for the API.

What your server must support

Your server has to follow the OpenAI speech API.
Your model name is passed through unchanged, so it must match whatever your server expects. Some servers, such as vLLM-Omni, reject a request whose model is not the one they serve.

Add a custom TTS in the dashboard

1

Open Integrations

Go to Settings → Integrations in the dashboard and filter by TTS. Find the Custom TTS card and click Add voice.
Integrations page filtered to TTS providers, showing the Custom TTS card with an Add voice button alongside Cartesia, ElevenLabs, Rime and Sarvam

The Custom TTS card on Settings → Integrations, under the TTS filter

2

Fill in the details

  • Voice: the voice name your server accepts, for example vivian
  • Model name: the model your server serves, for example Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice
  • Endpoint URL: your OpenAI-compatible base URL, including /v1
  • API key: the bearer token your server expects. Leave it empty if your server has no authentication.
3

Save

Bolna checks the endpoint before saving it. Your key is stored encrypted and is never shown again.
Each voice you add appears as its own card on the Integrations page, showing its model and endpoint, with a delete action. To use several voices from the same server, add each voice separately.

What is checked when you save

Registration is refused when Bolna can prove the configuration is wrong:
  • The endpoint URL must be public. Private and local network addresses are rejected.
  • If the endpoint rejects the API key, you get The endpoint rejected this API key.
  • Each voice name can be added only once. A duplicate is refused with A custom TTS with this voice already exists.
If the endpoint cannot be reached at all, for example because a serverless deployment has scaled to zero, the voice is still saved. Verification is best effort and cannot guarantee that the server will be reachable later.

Use it on an agent

Open the agent, go to the Languages tab, choose custom as the voice provider and model, then pick your voice. Use the play button to hear a preview, then save the agent. The agent sends the model name you registered with the voice, so the model shown in the agent stays custom. If your server takes request fields Bolna doesn’t send, such as a language or delivery instructions, or you want a different speaking speed, open Advanced settings under the voice and switch on Extra request params. See Extra request params.
Custom TTS works for an agent’s main voice only. Saving a multilingual agent that uses a custom TTS on any language is refused with Custom TTS isn't supported for multilingual agents yet.

Key settings


Extra request params

Many TTS servers accept request fields that Bolna doesn’t send, such as a language, delivery instructions or a seed for repeatable output, or take a different range for standard fields like speed. Set any of them in extra_body and Bolna adds them to every request it sends to your server.
Each key is sent as a top-level field of the request, and a key you set replaces Bolna’s value for that field. The request above reaches your server with speed set to 1.2 instead of 1.0, plus language and instructions. Common examples: Values can be any JSON, including nested objects. Field names and allowed values differ between servers, so use the ones your server documents. The params are set per agent and go on every speech request to your server, including the welcome message. Changing them renders the welcome message again with the new values. In the dashboard, select your custom voice on the agent’s Languages tab, open Advanced settings under the voice and switch on Extra request params. Type the JSON, or start from the example button. In a graph agent, the same field is in the Text-to-Speech settings. Picking a different voice clears the params, since another voice can point to another server.
Voice settings with Custom as provider and model and a blurred custom voice name, and the Advanced settings panel open with Buffer Size, the Extra request params toggle switched on, a JSON box containing speed set to 1.8, and a Speed 1.2x example button

Extra request params under the voice's Advanced settings, shown when a custom TTS voice is selected

Saving the agent is refused when:
  • extra_body is not a JSON object
  • it sets a field Bolna controls: model, voice, input, response_format or stream_format
Only custom TTS servers receive extra params. Hosted providers never get them.
Bolna cannot know which fields your server accepts or which values it allows. A field or value your server rejects is still saved, and every request then fails, which ends the call. Test new params with a web call before putting the agent on live traffic.

How it behaves on a call

  • Latency: the caller hears each sentence once your server has finished rendering it, so keep the server fast, warm and close to your callers.
  • Call timeline: each reply shows when speech started, when the first audio arrived and when it ended, like the other providers.
  • Interruptions: callers can interrupt the agent, as with any provider.
  • Errors: a rejected key, an unknown voice, a request param your server rejects, a server error or a timeout ends the call, and the reason appears in the call’s logs. If the agent’s voice no longer exists for the account, the call is stopped before it starts, with status error and Custom TTS voice '<voice>' isn't configured for this account.

Manage your voices

Delete a voice from its card on the Integrations page. A voice that is still selected on an agent cannot be deleted: the error names the agents using it, so you can point them at another voice first. Deleting a voice also removes the stored API key.

Sub-accounts

A custom TTS belongs to the scope it was created in:
  • A voice added on your main account is available to the account and to all of its sub-accounts.
  • A voice added inside a sub-account is available only in that sub-account. It is not visible to the main account or to other sub-accounts, and only that sub-account can delete it.

Add a custom TTS over the API

Send custom_tts_key as an empty string if your server has no authentication. See Add a custom TTS for the full request and response schema.

When to use a custom TTS vs a hosted provider

Use a custom TTS when:
  • You run a fine-tuned or open-weight voice model that no hosted provider offers
  • The audio or the traffic has to stay on your own infrastructure
  • You already have a contract with a TTS provider and want the usage billed to it directly
Use a hosted provider integration when:
  • You want the lowest time to first audio, since hosted providers stream audio as it is generated
  • You need a multilingual agent with a different voice per language
  • You would rather not own capacity planning, cold starts and upgrades

FAQ

No. Each request expects a complete MP3 clip in the response.
No. Each entry is one voice. Add each voice your server offers as its own entry, all pointing at the same endpoint.
Not yet. A custom TTS can be an agent’s main voice, and saving a multilingual agent that uses one on any language is refused.
The first reply pays the cold start, which the caller hears as silence. A server that takes longer than 20 seconds to answer ends the call, so keep a warm instance for live traffic. Registration tolerates an unreachable endpoint, so scaling to zero does not block you from adding the voice.
Your provider, or nobody if you host the model yourself. Bolna does not charge for speech synthesized by a custom TTS.
No. The endpoint must be reachable on the public internet. Expose it through a public hostname, with your key as the bearer token.