Spaces:
Sleeping
Sleeping
Update templates/index.html
Browse files- templates/index.html +3 -3
templates/index.html
CHANGED
@@ -110,12 +110,12 @@
|
|
110 |
// Optionally, speak out the name as it's being typed
|
111 |
speak(transcript, null); // Say the captured letter
|
112 |
|
113 |
-
// If
|
114 |
if (transcript.toLowerCase() === "next") {
|
115 |
recognition.stop();
|
116 |
isNameCaptured = true;
|
117 |
-
status.textContent = "
|
118 |
-
speak("
|
119 |
}
|
120 |
};
|
121 |
}
|
|
|
110 |
// Optionally, speak out the name as it's being typed
|
111 |
speak(transcript, null); // Say the captured letter
|
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);
|
119 |
}
|
120 |
};
|
121 |
}
|