Create Speech
Convert text to speech with our top-of-the-line PlayAI models.
Convert text to speech with our top-of-the-line PlayAI models.
This endpoint supports two models:
- Play 3.0 Mini: Our fast and efficient model for single-voice text-to-speech.
- Dialog 1.0: Our flagship model with best quality and multi-turn dialogue capabilities.
We also offer Dialog 1.0 Turbo which is a faster version of Dialog 1.0 from a separate endpoint.
For more information, see Models.
Check out the How to use Dialog 1.0 Text-to-Speech API guide for a step-by-step approach to using the Dialog 1.0 API to convert text into natural human-like sounding audio.
Make sure to see the Create a Multi-Turn Scripted Conversation with the Dialog 1.0 API guide for examples on how to create a multi-turn scripted conversation between two distinct speakers.
Authorizations
Your secret API key from PlayAI, formatted as Bearer YOUR_SECRET_API_KEY
.
Body
The voice engine used to synthesize the voice. Must be either Play3.0-mini
or PlayDialog
.
Play3.0-mini
, PlayDialog
"Play3.0-mini"
The text to be converted to speech. Limited to 20k characters for Play3.0-mini
, and 50k for PlayDialog
.
"Country Mouse: Welcome to my humble home, cousin! Town Mouse: Thank you, cousin. It's quite... peaceful here.\n"
The unique ID for a PlayAI Voice.
"s3://voice-cloning-zero-shot/baf1ef41-36b6-428c-9bdf-50ba54682bd8/original/manifest.json"
The unique ID for a second PlayAI Voice. Used for multi-turn dialogues only in PlayDialog
.
"s3://voice-cloning-zero-shot/baf1ef41-36b6-428c-9bdf-50ba54682bd8/original/manifest.json"
"Country Mouse:"
"Town Mouse:"
Only supported with Play3.0-mini
.
draft
, low
, medium
, high
, premium
mp3
, mulaw
, raw
, wav
, ogg
, flac
0.1 <= x <= 5
1
8000 <= x <= 48000
24000
x >= 0
null
0 <= x <= 2
null
Only for Play3.0-mini
.
1 <= x <= 6
null
1 <= x <= 30
null
1 <= x <= 2
1
afrikaans
, albanian
, amharic
, arabic
, bengali
, bulgarian
, catalan
, croatian
, czech
, danish
, dutch
, english
, french
, galician
, german
, greek
, hebrew
, hindi
, hungarian
, indonesian
, italian
, japanese
, korean
, malay
, mandarin
, polish
, portuguese
, russian
, serbian
, spanish
, swedish
, tagalog
, thai
, turkish
, ukrainian
, urdu
, xhosa