Audio guide
Sonus TTS turns text into natural speech for IVR, ads, audiobooks, and alerts. This guide shows how to pick voices, tune delivery, choose formats, and scale past the per-request limit.
In this guide
- Use preset voices or a cloned voice ID
- Tune emotion and speed per use case
- Pick format and sample rate for playback or telephony
- Chunk long text and choose streaming, batch, or realtime
Pick a preset or cloned voice
Start with presets for speed of iteration. nova suits friendly assistants and narration, while atlas suits deeper, steadier delivery for news and IVR. Move to a cloned voice_id when the brand needs a consistent speaker across campaigns.
Clone once from a clean 1 to 2 minute sample, store the returned voice_id, and reuse it like a preset. Keep consent records for any cloned speaker.
For full schemas see Text to Speech and Voice Cloning.
Tune emotion and speed per use case
The same sentence lands differently with emotion and speed. IVR prompts should stay calm at normal speed so callers catch account numbers. Ads can run excited and slightly fast to carry energy.
| Use case | Emotion | Speed | Why |
|---|---|---|---|
| IVR balance readout | calm | 1.0 | Clear digits over phone audio |
| Ad for Dashain sale | excited | 1.1 | Upbeat promo energy |
| News narration | professional | 1.0 | Steady, neutral delivery |
| Bedtime story | warm | 0.9 | Softer, slower pacing |
| Support apology | friendly | 1.0 | Empathetic without rushing |
Test each pair with native listeners before launch, especially for Nepali and Hindi mixes. See Multilingual narration.
Choose format and chunk long text
Each request accepts up to 4096 characters. Default to mp3 for apps and web, switch to wav at 16 kHz for telephony compatibility, and keep flac for lossless archives you plan to re-encode later.
| Goal | Format | Notes |
|---|---|---|
| App or web playback | mp3 | Small files, universal support |
| Telephony and IVR | wav | Use 16 kHz mono for carriers |
| Archive master | flac | Lossless, larger files |
| Streaming preview | ogg | Low latency in browsers |
Split long scripts on sentence boundaries, synthesize each chunk, then concatenate the audio. Never split mid-sentence or mid-number.
For a full pipeline with retries, see Audiobook pipeline.
Choose streaming, batch, or realtime
Pick the delivery mode by latency and interactivity needs. Batch is simplest, streaming starts playback faster, and realtime fits conversational agents.
| Mode | Best for | Latency | Endpoint |
|---|---|---|---|
| Batch synthesis | Prompts, ads, chapters | Seconds per file | Text to Speech |
| Streaming | Long narration, previews | First chunk fast | Audio Stream |
| Realtime agent | Interruptible voice bots | Lowest round trip | MYLO sessions |
Use batch for an IVR prompt pack, streaming for an audiobook preview page, and realtime when callers interrupt. See Realtime streaming.
Best practices
- Prototype with
novaandatlas, then lock a clonedvoice_idfor production. - Pin one emotion plus speed pair per use case and document it.
- Keep
mp3as default,wavat 16 kHz for telephony,flacfor masters. - Chunk at sentence boundaries under 4096 characters and keep numbering stable.
- Normalize numbers and dates for Nepali text before synthesis.
- Cache repeated prompts by text hash instead of re-synthesizing.
