cURL
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.
Converts text to speech using specified voice and parameters
Authorization header containing API key. You can find your API key in the dashboard under 'API Keys'.
Audio file generated successfully
The response is of type file.
file
Was this page helpful?