POST
/
v1
/
tts
curl --request POST \
  --url https://api.puretalk.ai/api/v1/tts \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "voice_id": "5bc2961c-fb9b-4a3d-a257-e0c5f2f95332",
  "text": "Hey there! Welcome to Los Angeles",
  "output_format": "raw",
  "encoding": "pcm_f32le",
  "sample_rate": 16000,
  "language": "en",
  "voice_speed": 0,
  "voice_emotion": []
}'
This response does not have an example.

Authorizations

X-API-KEY
string
header
required

Body

application/json

Response

200
audio/wav

Audio file generated successfully

The response is of type file.