getVoices method

  1. @DomName('SpeechSynthesis.getVoices')
  2. @DocsEditable()
List<SpeechSynthesisVoice> getVoices ()

Implementation

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