Skip to main content

List Voices API

Find voices available for speech synthesis, including their IDs, names, descriptions, attribute tags, cumulative usage counts, and audio previews. Requests return enabled system voices by default. Use source=community to list available public community voices, source=all to query both system and public community voices (excluding personal voices), or source=personal to list personal voices accessible to your API key's organization.

Use the current API response when choosing a voice. Voices can be added, made private, or retired at any time, so this page does not maintain a static catalog.

Endpoint​

  • Method and path: GET /v1/voices
  • Authentication: X-API-Key request header
  • Success response: HTTP 200, Content-Type: application/json

The API key must have Text to Speech access. Personal voice queries use organization access and do not require permission to create cloned voices.

Listing voices does not generate audio or incur speech synthesis charges. See Get your API key to create a key.

Query parameters​

All query parameters are optional.

ParameterTypeRequiredDescription
sourcestringNosystem (default, enabled system voices), community (available public community voices), all (both system and public community voices, excluding personal voices), or personal (personal voices in your API key's organization).
model_idstringNoReturn only voices compatible with a public model ID, for example luna-tts-1.5. Omit to skip model filtering.
searchstringNoCase-insensitive substring match against voice names, descriptions, and Chinese or English attribute tag labels. Maximum 100 characters after trimming surrounding whitespace.
page_sizeintegerNoItems per page: 1–100, default 20.
cursorstringNoThe preceding response's next_cursor. Omit for the first page.

Defaults apply only when source and page_size are omitted. An explicit empty source, an empty or zero page_size, empty model_id, empty filter values, duplicate parameters, and unknown query parameters are rejected with HTTP 400 (error_code: 10001). An empty or whitespace-only search skips keyword matching, and an empty cursor starts at the first page. Send each query parameter at most once; do not pass organization or user ID parameters to select another scope.

When search is provided, results rank name matches first, description matches second, and attribute tag matches third. Each voice appears once at its highest matching level, sorted by usage_count descending within the same level. When search is omitted, system follows catalog display order, personal returns newest voices first, and community and all sort by usage_count descending.

Filter parameters​

All filter parameters accept strings. Pass comma-separated enum codes in one parameter to match any of those values (OR): up to 4 values for language, and up to 15 values for each other filter parameter. Combining multiple filter parameters requires a voice to match all of them (AND). Omit a filter to skip it.

ParameterAllowed values
languagePrimary language: zh (Chinese), en (English), ja (Japanese), ko (Korean)
personaCrush Types: mature_intellectual, golden_retriever_boy, playful_bad_boy, daddy, alpha_boss, powerful_woman, sunny, flirt, straightforward, tsundere, charming_schemer, clingy_cutie, cold_aloof, dark_mysterious, comforting
genderGender: male, female, neutral
ageAge group: child, adolescent, young_adult, middle_aged, older_adult
usage_scenarioUse case: news_broadcasting, advertising, livestreaming, chat_companionship, teaching, customer_service, meetings, character_voice_acting, narration, audiobooks, public_speaking, podcasts, vlog, ai_assistant, sleep_meditation
textureVoice texture: soft, warm, breathy, bright, raspy, full_bodied, deep, thin
emotionEmotion: friendly, calm, confident, energetic, mysterious, restrained, sad, angry, sarcastic
rhythmRhythm: conversational, distinct_pauses, brisk_concise, varied
attitudeAttitude: serious, somewhat_serious, neutral, lighthearted, playful
pitchPitch: very_low, low, medium, high, very_high
speedSpeaking pace: slow, slightly_slow, moderate, slightly_fast, fast
recording_environmentRecording environment: studio, phone_quality, indoor, outdoor

Request examples​

Set the API base URL and your API key:

export VUILABS_API_BASE_URL="https://api.vuilabs.ai"
export VUILABS_API_KEY="your-api-key"

List system voices using the default source:

curl --get "$VUILABS_API_BASE_URL/v1/voices" \
--header "X-API-Key: $VUILABS_API_KEY"

Query system and public community voices for Luna-TTS 1.5 with combined filters:

curl --get "$VUILABS_API_BASE_URL/v1/voices" \
--header "X-API-Key: $VUILABS_API_KEY" \
--data-urlencode 'source=all' \
--data-urlencode 'model_id=luna-tts-1.5' \
--data-urlencode 'language=en,ja' \
--data-urlencode 'usage_scenario=narration,character_voice_acting' \
--data-urlencode 'texture=warm,full_bodied' \
--data-urlencode 'page_size=20'

List your organization's personal voices:

curl --get "$VUILABS_API_BASE_URL/v1/voices" \
--header "X-API-Key: $VUILABS_API_KEY" \
--data-urlencode 'source=personal'

Response fields​

A successful response contains these fields directly:

FieldTypeDescription
voicesarrayVoices in the current page; [] when no voices match.
has_morebooleanWhether another page is available.
next_cursorstring / nullCursor for the next page; null when there is no next page.

System, public community, and personal voices use the same structure:

FieldTypeDescription
voice_idstringPublic voice ID for synthesis requests with a compatible model.
namestringVoice name.
descriptionstring / nullVoice introduction; null when not provided.
sourcestringVoice source: system, community, or personal.
supported_model_idsstring[]Public model IDs currently compatible with this voice.
multi_stylebooleanWhether the voice supports multi-style delivery. When true, the voice accepts scene and expressivity on Luna-TTS 1.5.
usage_countintegerCumulative usage shown in the voice catalog, returned as a nonnegative integer.
preview_urlstring / nullPlayable audio preview URL; null if no preview is available.
preview_url_expires_atinteger / nullExpiration as a Unix timestamp in seconds; null when there is no fixed expiration or no preview URL.
languagestring / nullLabeled primary language (zh, en, ja, or ko); null when not labeled.
personastring / nullCrush Types code from the filter table; null when not labeled.
genderstring / nullGender code (male, female, or neutral); null when not labeled.
agestring / nullAge group code (child, adolescent, young_adult, middle_aged, or older_adult); null when not labeled.
usage_scenariostring / nullUse case code from the filter table; null when not labeled.
attitudestring / nullAttitude code from the filter table; null when not labeled.
pitchstring / nullPitch code from the filter table; null when not labeled.
speedstring / nullSpeaking pace code from the filter table; null when not labeled.
recording_environmentstring / nullRecording environment code from the filter table; null when not labeled.
texturestring[]Voice texture codes in saved order; [] when not labeled.
emotionstring[]Emotion codes in saved order; [] when not labeled.
rhythmstring[]Rhythm codes in saved order; [] when not labeled.
descriptivestring / nullLegacy free-text style description on some system voices; null when not labeled (including community and personal voices). Not an enum or a synthesis control.

Attribute tag fields use the same enum codes as the filter parameters and are metadata for discovery, not synthesis request controls. The language field reflects the voice's labeled primary language rather than all supported cross-language synthesis capabilities.

Use the returned preview_url verbatim; do not construct or modify preview URLs. Preview URLs can differ across models for the same voice_id. For community voices, the preview remains playable while the voice is listed and available; if a URL expires or stops working, query again for a fresh URL. This API does not return an avatar URL.

The following illustrates the response structure using an example voice and placeholder preview URL. The live API response determines current voice availability and metadata:

{
"voices": [
{
"voice_id": "cv_example_public_voice",
"name": "Warm Narrator",
"description": "A warm and steady storytelling voice.",
"language": "en",
"gender": "male",
"age": "middle_aged",
"descriptive": null,
"preview_url": "https://example.com/voice-preview.wav",
"preview_url_expires_at": null,
"source": "community",
"supported_model_ids": [
"luna-tts-1.5"
],
"multi_style": false,
"persona": "mature_intellectual",
"usage_scenario": "narration",
"texture": [
"warm",
"full_bodied"
],
"emotion": [
"calm",
"friendly"
],
"rhythm": [
"conversational"
],
"attitude": "neutral",
"pitch": "medium",
"speed": "moderate",
"recording_environment": "studio",
"usage_count": 1536
}
],
"has_more": false,
"next_cursor": null
}

No matching results is also a successful response:

{
"voices": [],
"has_more": false,
"next_cursor": null
}

Pagination​

When has_more is true, pass next_cursor unchanged as the next request's cursor. Keep the same API key, organization and project context, page_size, and query filters across pages. Cursors are opaque and expire after a period of time; when changing any query parameter or when a cursor expires, omit the old cursor and start from the first page.

This Python example lists system and public community voices for Luna-TTS 1.5 and reads their IDs and previews:

import os
import requests

params = {"source": "all", "model_id": "luna-tts-1.5", "page_size": 20}
headers = {"X-API-Key": os.environ["VUILABS_API_KEY"]}

while True:
response = requests.get(
f"{os.environ['VUILABS_API_BASE_URL']}/v1/voices",
headers=headers,
params=params,
timeout=30,
)
response.raise_for_status()
payload = response.json()
for voice in payload["voices"]:
print(voice["voice_id"], voice["name"], voice["preview_url"])
if not payload["has_more"]:
break
params["cursor"] = payload["next_cursor"]

Voice availability can change between pages; voices that become unavailable in the queried source are excluded from subsequent pages. Start from the first page when beginning a new browsing session or changing filters.

Use a voice​

  1. Query with model_id set to luna-tts-1.5, choosing source (system, community, all, or personal) and any search or attribute filters you need.
  2. Review the voice's name, description, tags, and usage_count. If preview_url is present, play it to audition the voice.
  3. Pass the returned voice_id with model_id set to luna-tts-1.5 in the Text to Speech API. To create personal voices, see Voice Cloning or Voice Design; to delete a personal voice, see the Delete Voice API.

Newly enabled system voices appear in system and all, while retired or disabled system voices are excluded. Newly published community voices appear in community and all; if a community voice is made private or disabled by the platform, it is removed from community and all, while the owning organization can still find it with source=personal and use the same voice_id for synthesis as long as the voice has not been deleted. Deleted personal voices are excluded from all queries. If a community voice becomes unavailable after another organization lists it, new synthesis requests from that organization return HTTP 400 with error_code: 12950; query again and select an available voice, as the service does not silently substitute another voice.

Multi-style voices​

Multi-style voices appear in the Luna-TTS 1.5 catalog with multi_style: true and support delivery scenes and expressivity levels. For scene and expressivity options and examples, see Multi-style voice example.

Errors​

Failed requests return a non-2xx HTTP status and a JSON error body, rather than an empty successful page. Check the HTTP status and error_code; error_message defaults to English, or Chinese when Accept-Language: zh-CN is sent.

{
"error_code": 10001,
"error_message": "Invalid parameters",
"succeed": false,
"data": null
}
HTTP statuserror_codeConditionWhat to do
40010001Invalid parameter, invalid or over-limit filter value, unsupported model, duplicate parameter, or invalid/expired cursorCorrect the parameter or filter values; when changing filters or after cursor expiration, retry without cursor.
40110003Missing or invalid API keyCheck the X-API-Key header.
40310004Text to Speech is unavailable to this API keyCheck the project's enabled capabilities.
42910005 or 10014Request limit reachedReduce the request rate and retry later.
50010000Unexpected service errorRetry later; contact support if it continues.
50320002Voice catalog is unavailable, or the selected registered model is not enabled in the current environmentIf the model is unavailable, choose a currently available model or contact support. For a temporary service failure, retry later.
50410006Voice query timed outRetry later.

See Errors for the common error response contract.