getVoices method

dynamic getVoices()

Implementation

getVoices() async {
  var tmpVoices = synth.callMethod("getVoices");
  var voiceList = <Map<String, String>>[];
  for (var voice in tmpVoices) {
    voiceList.add({
      "name": voice["name"] as String,
      "locale": voice["lang"] as String,
    });
  }
  return voiceList;
}