getVoices method
Get available voices for this provider
Implementation
@override
Future<List<VoiceInfo>> getVoices() async {
// OpenAI has predefined voices
// Reference: https://platform.openai.com/docs/guides/text-to-speech/voice-options
return const [
VoiceInfo(id: 'alloy', name: 'Alloy', description: 'Neutral voice'),
VoiceInfo(id: 'ash', name: 'Ash', description: 'Expressive voice'),
VoiceInfo(id: 'ballad', name: 'Ballad', description: 'Melodic voice'),
VoiceInfo(id: 'coral', name: 'Coral', description: 'Warm voice'),
VoiceInfo(id: 'echo', name: 'Echo', description: 'Male voice'),
VoiceInfo(id: 'fable', name: 'Fable', description: 'British accent'),
VoiceInfo(id: 'nova', name: 'Nova', description: 'Female voice'),
VoiceInfo(id: 'onyx', name: 'Onyx', description: 'Deep male voice'),
VoiceInfo(id: 'sage', name: 'Sage', description: 'Wise voice'),
VoiceInfo(
id: 'shimmer',
name: 'Shimmer',
description: 'Soft female voice',
),
VoiceInfo(id: 'verse', name: 'Verse', description: 'Poetic voice'),
];
}