tafalk / tafalk-web

A no-look-back site for streams of consciousness to be grown by Woolfies
https://tafalk.com
MIT License
1 stars 0 forks source link

Add fully functional speech-to-text capability #69

Open vahdet opened 4 years ago

vahdet commented 4 years ago

Adding it would totaly be fine. Here is an example walkthrough:

https://tutorialzine.com/2017/08/converting-from-speech-to-text-with-javascript

vahdet commented 4 years ago

Made the recognition button clickable on Edge! But recognition.current.onresult does not fire:

recognition.current.onresult = (event) => {
      var transcript = event.results[0][0].transcript
      console.log('You told: ' + transcript)
    }
vahdet commented 4 years ago

Only Chrome apparently functions&fires events. See the Caniuse table:

https://caniuse.com/#feat=speech-recognition

Edge supports SpeechRecognition but does not fire events as note #4 tells on that page