List Voices

Browse all built-in voices using .ListVoices().

Basic Usage

var response = await Api.ElevenLabs
    .ListVoices()
    .ExecuteAsync();

foreach (var voice in response.Voices)
{
    Debug.Log($"Voice: {voice.Name} ({voice.Gender})");
}

Unity Integration Examples

Example 1: Voice Selector Dropdown

public class VoiceSelector : MonoBehaviour
{
    [SerializeField] private TMPro.TMP_Dropdown dropdown;
    
    async void Start()
    {
        await PopulateDropdown();
    }
    
    async UniTask PopulateDropdown()
    {
        var response = await Api.ElevenLabs.ListVoices().ExecuteAsync();
        
        dropdown.ClearOptions();
        
        var options = response.Voices
            .Select(v => new TMPro.TMP_Dropdown.OptionData($"{v.Name} ({v.Gender})"))
            .ToList();
        
        dropdown.AddOptions(options);
    }
}

Example 2: Filter by Gender

Example 3: Voice Browser UI

Example 4: Voice Recommender

Provider Support

ElevenLabs

OpenAI

OpenAI voices are pre-defined constants:

Google

Filtering Voices

Best Practices

✅ Good Practices

❌ Bad Practices

Next Steps

Last updated