Get Voice

Retrieve information about a specific voice using .GetVoice().

Basic Usage

var voice = await Api.ElevenLabs
    .GetVoice("rachel")
    .ExecuteAsync();

Debug.Log($"Voice: {voice.Name}");
Debug.Log($"Gender: {voice.Gender}");
Debug.Log($"Accent: {voice.Accent}");

Voice Properties

public class VoiceData
{
    public string Id { get; set; }
    public string Name { get; set; }
    public Gender Gender { get; set; }
    public string Accent { get; set; }
    public string Description { get; set; }
    public string PreviewUrl { get; set; }
}

Unity Integration Examples

Example 1: Voice Info Display

Example 2: Voice Preview Player

Example 3: Voice Validator

Provider Support

ElevenLabs

Available voices:

  • rachel - Calm American female

  • adam - Deep American male

  • antoni - Well-rounded American male

  • arnold - Crisp American male

  • bella - Soft American female

  • domi - Strong American female

  • elli - Emotional American female

  • josh - Deep American male

  • sam - Raspy American male

OpenAI

OpenAI voices are constants, not retrieved via API:

Google

Best Practices

✅ Good Practices

❌ Bad Practices

Error Handling

Next Steps

Last updated