Joshagibby commited on
Commit
611fdf4
1 Parent(s): a386ac8

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +2 -2
index.html CHANGED
@@ -16,7 +16,7 @@
16
  let recognition;
17
  let isListening = false;
18
  let inactivityTimeout;
19
- let previousSentences = []; // List to keep track of previously appended sentences
20
 
21
  function startRecognition() {
22
  if (!('webkitSpeechRecognition' in window)) {
@@ -31,7 +31,7 @@
31
  recognition.lang = 'en-US';
32
  recognition.interimResults = true;
33
  recognition.continuous = true;
34
- recognition.maxAlternatives = 0; // Increase the number of alternatives considered
35
 
36
  recognition.onstart = function() {
37
  isListening = true;
 
16
  let recognition;
17
  let isListening = false;
18
  let inactivityTimeout;
19
+ let previousSentences = []; // List to keep track of previously recognized sentences
20
 
21
  function startRecognition() {
22
  if (!('webkitSpeechRecognition' in window)) {
 
31
  recognition.lang = 'en-US';
32
  recognition.interimResults = true;
33
  recognition.continuous = true;
34
+ recognition.maxAlternatives = 5; // Increase the number of alternatives considered
35
 
36
  recognition.onstart = function() {
37
  isListening = true;