getVoices method
Gets an array of all available voices.
Implementation
Future<List<TtsVoice>> getVoices() async {
var $res = await promiseToFuture<JSArray>($js.chrome.tts.getVoices());
return $res.toDart
.cast<$js.TtsVoice>()
.map((e) => TtsVoice.fromJS(e))
.toList();
}