GET
/
v1
/
text-to-speech
/
{targetLanguage}
curl -X GET https://api.woolball.xyz/v1/text-to-speech/en \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -G \
  -d "text=Hello,%20world!"
{
  "data": "base64_encoded_audio_data"
}

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

curl -X GET https://api.woolball.xyz/v1/text-to-speech/en \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -G \
  -d "text=Hello,%20world!"
{
  "data": "base64_encoded_audio_data"
}