| What you need | Endpoint |
|---|---|
| Submit text once and receive a complete audio file | Non-streaming HTTP |
| Submit text once and play audio as it arrives | Streaming HTTP |
| Send text incrementally for one speech task | Standard TTS · Single connection |
| Manage independent synthesis tasks on one connection | Standard TTS · Multiple contexts |
| Generate dialogue with several speakers, or use V4 or V3 Turbo over WebSocket | Dialogue · Multiple contexts |
myvocal_v4: high-quality content production.myvocal_v3_turbo: live interactions.myvocal_v3: expressive dialogue and character performances.multilingual_v2: natural, consistent multilingual speech.model_id to use the default.multilingual_v2 or flash_v2_5. A single connection handles one speech task. Multi-context TTS separates tasks using context_id. Every task on that connection uses the voice in the URL.myvocal_v3 (default), myvocal_v4 or myvocal_v3_turbo. Register voices for each context and send each speaker’s lines in inputs. You can also use a single voice.text messages. Dialogue sends inputs. Their URLs, models, completion signals and close operations differ. Use the corresponding SDK.api-key header. The HTTP example uses mp3_44100_128, while the dialogue WebSocket example uses mp3_128. Choose the format identifiers listed for the endpoint you are using.priority=dedicated_concurrency for WebSocket. See the HTTP endpoint parameters for HTTP routing and concurrency options.