0

Is it possible to convert the SpeechRecognitionResultList to an array? It exposes an item getter and you can iterate over it with for of but i would like to convert to an array so I can use findIndex etc.

    const speechRecognition = new window.webkitSpeechRecognition();
    speechRecognition.onresult = (event: any) => {
      // how to turn this into an array?
      event.results
    };
rssfrncs
  • 991
  • 4
  • 19

0 Answers0