lokesh341 commited on
Commit
0e24aef
·
verified ·
1 Parent(s): 961eb91

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +3 -3
templates/index.html CHANGED
@@ -127,7 +127,7 @@
127
  recognition.onresult = function(event) {
128
  let confirmation = event.results[0][0].transcript.trim().toLowerCase();
129
  recognition.stop();
130
- if confirmation.includes("next") {
131
  setTimeout(() => speak("Great! Now, tell me your email.", startListeningForEmail), 500);
132
  } else {
133
  setTimeout(() => speak("Let's try again. Tell me your name.", startListeningForName), 500);
@@ -146,7 +146,7 @@
146
  recognition.onresult = function(event) {
147
  let confirmation = event.results[0][0].transcript.trim().toLowerCase();
148
  recognition.stop();
149
- if confirmation.includes("next") {
150
  setTimeout(() => speak("Great! Now, tell me your mobile number.", startListeningForMobile), 500);
151
  } else {
152
  speak("Let's try again. Tell me your email.", startListeningForEmail);
@@ -166,7 +166,7 @@
166
  recognition.onresult = function(event) {
167
  let confirmation = event.results[0][0].transcript.trim().toLowerCase();
168
  recognition.stop();
169
- if confirmation.includes("next") {
170
  speak("All details are captured. Confirming your registration.", function() {
171
  autoConfirm();
172
  });
 
127
  recognition.onresult = function(event) {
128
  let confirmation = event.results[0][0].transcript.trim().toLowerCase();
129
  recognition.stop();
130
+ if (confirmation.includes("ok") || confirmation.includes("next")) {
131
  setTimeout(() => speak("Great! Now, tell me your email.", startListeningForEmail), 500);
132
  } else {
133
  setTimeout(() => speak("Let's try again. Tell me your name.", startListeningForName), 500);
 
146
  recognition.onresult = function(event) {
147
  let confirmation = event.results[0][0].transcript.trim().toLowerCase();
148
  recognition.stop();
149
+ if (confirmation.includes("ok") || confirmation.includes("next")) {
150
  setTimeout(() => speak("Great! Now, tell me your mobile number.", startListeningForMobile), 500);
151
  } else {
152
  speak("Let's try again. Tell me your email.", startListeningForEmail);
 
166
  recognition.onresult = function(event) {
167
  let confirmation = event.results[0][0].transcript.trim().toLowerCase();
168
  recognition.stop();
169
+ if (confirmation.includes("ok") || confirmation.includes("next")) {
170
  speak("All details are captured. Confirming your registration.", function() {
171
  autoConfirm();
172
  });