We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96d09d0 commit fae97a5Copy full SHA for fae97a5
lib/p5.speech.js
@@ -243,7 +243,7 @@
243
244
// make a recognizer object.
245
if('webkitSpeechRecognition' in window) {
246
- this.rec = new webkitSpeechRecognition();
+ this.rec = new (window.SpeechRecognition || window.webkitSpeechRecognition || window.mozSpeechRecognition || window.msSpeechRecognition)();
247
}
248
else {
249
this.rec = new Object();
@@ -293,7 +293,7 @@
293
// a response from the server. you can construct an if() around this
294
// if you're feeling worried.
295
this.resultValue;
296
- // resultValue:
+ // resultString:
297
// the 'transcript' of the most recently recognized speech as a simple
298
// string. this will be blown out and replaced at every firing of the
299
// onresult() callback.
0 commit comments