+ 1

Error in Website

Why isnt it console.logging event and only logging the onstart function Code: https://repl.it/@KunshTyagi/SpeechApp#script.js

5th Sep 2020, 2:03 PM
Kunsh-Tyagi
Kunsh-Tyagi - avatar
3 Answers
0
I don't know the syntax of the speech recognition in JS but i will try to help you as i can, It seems like you're supplying the click event listener with only the start function and not the stop function, You should toggle between them with an if statement like: if (isRecording) { //stop and print } else { //start recording } OR you can put another button for stopping, OR you can make it stop on release Hope that helps 🙂
7th Sep 2020, 6:57 AM
Mouhammed Nashat Helmi
0
Nope it didnt.
7th Sep 2020, 1:18 PM
Kunsh-Tyagi
Kunsh-Tyagi - avatar
0
How did you tried that? Can i see your progress? (Personal preference)Can you put the code on sololearn playground? Edit: Thanks for replying :)
7th Sep 2020, 6:07 PM
Mouhammed Nashat Helmi