POST
/
user
/
tts_sample
curl --request POST \
  --url https://api.bolna.ai/user/tts_sample \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "text": "The Answer to the Ultimate Question of Life, the Universe, and Everything is 42.",
  "provider": "polly",
  "provider_config": {
    "voice": "Kajal",
    "engine": "neural",
    "language": "en-US"
  }
}'
{
  "data": "UklGRkgAAABXQVZFZm10IBAAAAABAAEAgD4AAAB9AAACABAATElTVBoAAA"
}

Generating text-to-speech samples using APIs is currently live for Enterprises only.
We are slowly rolling it out to all users.

Please contact us at founders@bolna.dev for activation.

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200
application/json

Base64 encoded audio data

The response is of type object.