Text to Speech
Voices
A voice is the speaker identity your requests use. Use a built-in voice or clone your own, then pass its voice_id with every request.
Built-in and workspace voices
| Type | Where it comes from | In Studio |
|---|---|---|
| Built-in voices | Included with every workspace. Ready to use with no setup. | Voices › Explore |
| Workspace voices | Cloned by your team from your own recordings. Shared with everyone in the workspace. | Voices › My voices |
Both types behave the same in the API. To add a voice, see Voice cloning.
Find a voice ID
List the voices your API key can use:
curl https://aniwaffle.com/v1/voices \
--header "Authorization: Bearer $ANIWAFFLE_API_KEY"Pass a voice's id as voice_id in speech requests. In Studio, open a voice and select More actions › Copy ID. See List voices for every response field.
Voice IDs belong to a workspace
- A
voice_idworks only with API keys from the same workspace. CallGET /v1/voiceswith the key you use for synthesis. - Voice IDs from other text-to-speech services are not Aniwaffle voice IDs.
- A deleted voice, or one your workspace can no longer use, is rejected with
400 invalid_request("The requested voice is not available to this workspace"), even if it worked before.
Voices and models
A voice has no fixed model or channel count. Any Waffle voice works with every Waffle model: the same voice_id produces mono speech with Waffle Mono and stereo speech with Waffle Stereo. See Models.
output_formats on a voice lists the formats of its default model. When you set model, use the formats that model lists in GET /v1/models.
Capabilities
capabilities lists what a voice supports:
| Capability | Meaning |
|---|---|
tts | The voice can generate speech. |
voice_tags | The voice supports emotion and sound tags. If it is absent, tags are removed from the text and the rest is spoken. |