setExternalVoicesPath method

  1. @override
Future<List<String>> setExternalVoicesPath(
  1. String? path
)
override

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>[];
  }
}