API reference
List voices
Returns the voices the API key's workspace can use, including built-in voices.
Request
GEThttps://aniwaffle.com/v1/voices
| Header | Required | Value |
|---|---|---|
Authorization | Yes | Bearer awp_... |
This endpoint takes no parameters.
curl https://aniwaffle.com/v1/voices \
--header "Authorization: Bearer $ANIWAFFLE_API_KEY"Response
200 OK
{
"voices": [
{
"id": "YOUR_VOICE_ID",
"name": "Example voice",
"output_formats": ["pcm_24000", "pcm_44100", "pcm_48000", "aac_44100_128"],
"capabilities": ["tts", "voice_tags"]
}
]
}| Field | Type | Description |
|---|---|---|
voices[].id | string | The voice ID. Pass it as voice_id in speech requests. |
voices[].name | string | Display name, as shown in Studio. |
voices[].output_formats | string[] | Formats the voice's default model can produce. Another model lists its own formats in GET /v1/models. |
voices[].capabilities | string[] | Features the voice supports. voice_tags means it supports emotion and sound tags. |
Voices can gain new fields over time; ignore fields you don't use.
Errors
| Status | Code | Cause |
|---|---|---|
| 401 | unauthorized | Missing, invalid or revoked API key. |
| 403 | capability_disabled | Text to Speech is not enabled for the workspace. |