Skip to main content
POST
cURL
Registers one voice from your text-to-speech server, with the model, endpoint and key Bolna uses to call it. Send custom_tts_key as an empty string if your server has no authentication. Read more in Custom TTS.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Add a voice from an OpenAI-compatible text-to-speech server

custom_tts_voice
string
required

The voice name your server accepts, passed through unchanged. Unique within the scope

custom_tts_model
string
required

The model your server serves, passed through unchanged

custom_tts_url
string<uri>
required

OpenAI-compatible base URL, including the version segment. Bolna calls POST {base_url}/audio/speech

custom_tts_key
string
required

Bearer token sent to your endpoint. Stored encrypted. Send an empty string if your server has no authentication

Response

the voice was added

message
string
Example:

"custom TTS added successfully"

status
enum<string>
Available options:
added
Example:

"added"

id
string

Identifier used to delete the voice