getVoices method

Future<List<Map<String, String>>> getVoices()

Implementation

Future<List<Map<String, String>>> getVoices() async {
  var tmpVoices = synth.getVoices().toDart;
  return tmpVoices
      .map((voice) => {"name": voice.name, "locale": voice.lang})
      .toList();
}