Turn text into speech for content production, live interactions or dialogue between characters. For your first request, generate a complete audio file. Then choose HTTP streaming or WebSocket if your application needs it.
Pass your enterprise API key in the api-key header. List the voices available to your account and choose a voice_id. If you already have one, continue to the next step.
Use the key on your server. Keep it out of browser code and public repositories.
A successful request returns HTTP 200 with audio in the response body. The example saves it as speech.mp3. If the request fails, read the error response before attempting playback. A JSON error cannot be played as audio.