Skip to main content

Voices and output

Use the List Voices API to find currently available voices and their language labels.

1. Choose a voice and controls​

Pass a voice_id returned by the voice query. Use source=personal to find personal voices accessible to your organization. Set language to a language code enabled for the current account.

Match the audienceChoose the Luna-TTS voice that fits your scenario, and test the language, accent, and delivery with text your audience will actually hear.
Use cloning when neededCloned voices only work with Luna-TTS.
Keep results consistentOnce approved, reuse the same voice, language, and control values.
SettingDetails
Speed speed0.6–1.2; omit it or set it to 0 for the default speed
Volume volumeSynchronous only: -5–5 dB, step 0.1, default 0; omit for streaming
Delivery scene sceneMulti-style voices only. normal for everyday conversation (default)
whisper for close whispering; ordinary voices get an error (HTTP 400, code 10001)
Expressivity expressivityMulti-style voices only. normal for standard delivery (default)
strong for enhanced delivery; ordinary voices get an error (HTTP 400, code 10001)
Text normalization text_normalizationtrue enables normalization (default); false preserves the input text
Expression tagsAdd an official tag, such as [laughs], directly to text
Change one setting at a time

Generate one representative sentence with the default controls, then change only one setting for the next request. This makes differences in voice, speed, volume, and delivery easier to evaluate.

View the complete request fields and examples →

2. Choose an output mode​

Use this whenEndpointResponse
You need the complete file before playback or storagePOST /v1/text-to-speechComplete audio bytes
You want to begin consuming audio as it is generatedPOST /v1/text-to-speech/streamHTTP-chunked audio

Both endpoints default to WAV: omit audio_format or set it to wav. Both accept audio_format: "pcm" for raw signed PCM16LE without a WAV container.

The streaming response is HTTP-chunked audio, not an SSE or JSON event stream. Consume the bytes in order. WAV includes its file header and needs a WAV-capable decoder. For PCM, use X-Audio-Sample-Rate, X-Audio-Channels, and X-Audio-Bit-Depth from the response to configure playback; do not assume a fixed sample rate. See the streaming contract and PCM example.

3. Review the result​

  1. Start with a short piece of text that represents the real product experience.
  2. Confirm the target language and accent, then test names, numbers, abbreviations, uncommon symbols, pauses, and pacing.
  3. Adjust only one control at a time and compare the new result with the previous one.
  4. Test in the actual playback environment. For phone and IVR use, confirm that the channel accepts the selected WAV or PCM format and its sample rate and channel count; convert the audio if needed.
  5. Save the approved model_id, voice_id, language, and control values as one configuration.
Pronunciation and pacing

Clear punctuation and complete sentences usually produce more consistent delivery. Test the exact text patterns your product uses instead of relying on a generic sample sentence.

See the Text to Speech API for the complete request contract and Request Limits for current limits.

To create a voice from a text description, see the Voice Design API: generate three candidates, save one, and use its formal ID with Luna-TTS.