GET
/
v1
/
text-to-speech
/
{targetLanguage}

Convert text to spoken audio in the specified language.

Path Parameters

targetLanguage
string
required

Target language for speech synthesis. Available options: “en” (English), “pt” (Portuguese), “es” (Spanish)

Query Parameters

text
string
required

Text to convert to speech

Response

data
string

Base64 encoded audio data

Status Codes

200
object

OK - Successful request

400
object

Bad Request - Validation error occurred

401
object

Unauthorized - Authentication failed

402
object

Payment Required