setExternalVoicesPath method
Also look for <name>.emd voices in the folder path; null removes them.
Implementation
@override
Future<List<String>> setExternalVoicesPath(String? path) async {
try {
return await methodChannel.invokeListMethod<String>('setExternalVoicesPath', {'path': path}) ??
const <String>[];
} on MissingPluginException {
return const <String>[];
} on PlatformException {
return const <String>[];
}
}