lokesh341 commited on
Commit
2b04da2
·
verified ·
1 Parent(s): 40f459d

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +1 -1
templates/index.html CHANGED
@@ -112,7 +112,7 @@
112
 
113
  // If the user says "next", stop and move to email
114
  if (transcript.toLowerCase() === "next") {
115
- recognition.stop();
116
  isNameCaptured = true;
117
  status.textContent = "Your name is captured. Now listening for your email...";
118
  speak("Now, please tell me your email", startListeningForEmail);
 
112
 
113
  // If the user says "next", stop and move to email
114
  if (transcript.toLowerCase() === "next") {
115
+ recognition.stop(); // Stop the recognition for name
116
  isNameCaptured = true;
117
  status.textContent = "Your name is captured. Now listening for your email...";
118
  speak("Now, please tell me your email", startListeningForEmail);