getVoices 方法

List<SpeechSynthesisVoice> getVoices()

实现方式

List<SpeechSynthesisVoice> getVoices() {
  List<SpeechSynthesisVoice> voices = _getVoices();
  if (voices.length > 0) applyExtension('SpeechSynthesisVoice', voices[0]);
  return voices;
}