ElevenLabs voices: list and search the voices on your account, and read one voice's metadata and settings.

Functions

get-default-voice-settings

fn (): Map
fn (opts: Map): Map

GET /v1/voices/settings/default: the default voice settings, a starting point for tuning.

Example

defaults ::elevenlabs::voices/get-default-voice-settings()
::elevenlabs::tts/TextToSpeechRequest({text: "Hello.", voice_settings: {...defaults, stability: 0.3}})
Context Vars: elevenlabs.api.key

get-voice

fn (voice-id: Str): Map
fn (voice-id: Str, opts: Map): Map

GET /v1/voices/{voice_id}: one voice's metadata, labels, preview URL, and settings.

Example

voice ::elevenlabs::voices/get-voice(::elevenlabs/GEORGE_VOICE_ID)
voice.preview_url
Context Vars: elevenlabs.api.key

get-voice-settings

fn (voice-id: Str): Map
fn (voice-id: Str, opts: Map): Map

GET /v1/voices/{voice_id}/settings: the voice's saved settings (stability, similarity_boost, style, use_speaker_boost, speed).

Example

settings ::elevenlabs::voices/get-voice-settings(::elevenlabs/GEORGE_VOICE_ID)
settings.stability
Context Vars: elevenlabs.api.key

list-voices

fn (): Map
fn (options: Map): Map
fn (options: Map, opts: Map): Map

GET /v2/voices: the voices available to your account (premade, cloned, generated, and saved library voices). Returns {voices, has_more, total_count, next_page_token}. options are query params: page_size (default 10, max 100), next_page_token, search, sort ("created_at_unix" or "name"), sort_direction, voice_type ("personal", "community", "default", ...), category ("premade", "cloned", "generated", "professional"), voice_ids (Vec).

Example

page ::elevenlabs::voices/list-voices({page_size: 50})
map(page.voices, (v) { {id: v.voice_id, name: v.name} })
Context Vars: elevenlabs.api.key

search-voices

fn (search: Str): Map
fn (search: Str, opts: Map): Map

GET /v2/voices?search=: search your voices by name, description, labels, or category.

Example

found ::elevenlabs::voices/search-voices("narrator")
map(found.voices, (v) { v.voice_id })
Context Vars: elevenlabs.api.key