Get Voice
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
OpenAI
Google
Best Practices
✅ Good Practices
❌ Bad Practices
Error Handling
Next Steps
Last updated