Streams the audio bytes with our ultra-fast text-in, audio-out API.
POST
/
api
/
v1
/
tts
/
stream
cURL
Copy
Ask AI
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", "text": "Country Mouse: Welcome to my humble home, cousin! Town Mouse: Thank you, cousin. It'\''s quite... peaceful here. Country Mouse: It is indeed. I hope you'\''re hungry. I'\''ve prepared a simple meal of beans, barley, and fresh roots. Town Mouse: Well, it'\''s... earthy. Do you eat this every day?", "voice": "s3://voice-cloning-zero-shot/baf1ef41-36b6-428c-9bdf-50ba54682bd8/original/manifest.json"}'
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", "text": "Country Mouse: Welcome to my humble home, cousin! Town Mouse: Thank you, cousin. It'\''s quite... peaceful here. Country Mouse: It is indeed. I hope you'\''re hungry. I'\''ve prepared a simple meal of beans, barley, and fresh roots. Town Mouse: Well, it'\''s... earthy. Do you eat this every day?", "voice": "s3://voice-cloning-zero-shot/baf1ef41-36b6-428c-9bdf-50ba54682bd8/original/manifest.json"}'
Copy
Ask AI
This response does not have an example.
Assistant
Responses are generated using AI and may contain mistakes.