+ 1
Error in Website
Why isnt it console.logging event and only logging the onstart function Code: https://repl.it/@KunshTyagi/SpeechApp#script.js
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 đ
0
Nope it didnt.
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 :)