getVoices method
Get available voices for this provider
Implementation
@override
Future<List<VoiceInfo>> getVoices() async {
final rawVoices = await _getVoicesRaw();
return rawVoices.map((voice) {
return VoiceInfo(
id: voice['voice_id'] as String? ?? '',
name: voice['name'] as String? ?? '',
description: voice['description'] as String?,
category: voice['category'] as String?,
gender: voice['labels']?['gender'] as String?,
accent: voice['labels']?['accent'] as String?,
previewUrl: voice['preview_url'] as String?,
);
}).toList();
}