pickVoices static method
Implementation
static Future<List<File>> pickVoices() async {
final result = await FilePicker.platform.pickFiles(
type: FileType.custom,
allowMultiple: true,
allowedExtensions: ['mp3', 'm4a', 'wav', 'aac'],
);
if (result != null && result.files.isNotEmpty) {
return result.paths.map((path) => File(path!)).toList();
}
return [];
}