Stream speech with our fastest and best-quality model, Dialog 1.0 Turbo.
cURL
curl --request POST \ --url https://api.play.ai/api/v1/tts/stream \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'X-USER-ID: <api-key>' \ --data '{ "model": "PlayDialog-turbo", "text": "Hello, this is a test of the PlayDialog-turbo model.", "voice": "Atlas-PlayAI" }'
This response does not have an example.
Your secret API key from PlayAI, formatted as Bearer YOUR_SECRET_API_KEY.
Bearer YOUR_SECRET_API_KEY
Your unique user ID from PlayAI.
A stream of audio bytes.
The response is of type file.
file
Was this page helpful?