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 femaleadam- Deep American maleantoni- Well-rounded American malearnold- Crisp American malebella- Soft American femaledomi- Strong American femaleelli- Emotional American femalejosh- Deep American malesam- Raspy American male
OpenAI
OpenAI voices are constants, not retrieved via API:
Google
Best Practices
✅ Good Practices
❌ Bad Practices
Error Handling
Next Steps
List Voices - Browse all voices
List Custom Voices - Browse user voices
Text to Speech - Use voices for TTS
Last updated