File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 243243
244244 // make a recognizer object.
245245 if ( 'webkitSpeechRecognition' in window ) {
246- this . rec = new webkitSpeechRecognition ( ) ;
246+ this . rec = new ( window . SpeechRecognition || window . webkitSpeechRecognition || window . mozSpeechRecognition || window . msSpeechRecognition ) ( ) ;
247247 }
248248 else {
249249 this . rec = new Object ( ) ;
292292 // speech recognition system successfully connected to and received
293293 // a response from the server. you can construct an if() around this
294294 // if you're feeling worried.
295- this . resultValue ;
296- // resultValue :
295+ this . resultValue ;
296+ // resultString :
297297 // the 'transcript' of the most recently recognized speech as a simple
298298 // string. this will be blown out and replaced at every firing of the
299299 // onresult() callback.
You can’t perform that action at this time.
0 commit comments