Skip to main content
POST
/
api
/
v1
/
voice
/
synthesize
Convert text to speech audio using specified voice and configuration
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({
    text: '<string>',
    voiceId: '<string>',
    model: '<string>',
    language: '<string>',
    provider: '<string>',
    speed: 123,
    vendorSpecific: {}
  })
};

fetch('https://blackbox.dasha.ai/api/v1/voice/synthesize', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
"<string>"

Body

Text synthesis configuration with voice, speed, and provider settings

Request DTO for TTS synthesis operations

text
string
required

Text to synthesize into speech

Required string length: 1 - 5000
voiceId
string
required

Voice ID to use for synthesis

Minimum string length: 1
model
string
required

Model to use for synthesis

Minimum string length: 1
language
string
required

Language code for synthesis

Minimum string length: 1
provider
string
required

TTS provider name

Minimum string length: 1
speed
number<double>
vendorSpecific
object

Provider-specific configuration options

Response

Returns the synthesized audio as MP3

The response is of type file.