Spaces:
Sleeping
Sleeping
Update templates/index.html
Browse files- templates/index.html +3 -2
templates/index.html
CHANGED
@@ -203,7 +203,7 @@
|
|
203 |
let confirmation = event.results[0][0].transcript.trim().toLowerCase();
|
204 |
recognition.stop();
|
205 |
if (confirmation.includes("ok") || confirmation.includes("yes")) {
|
206 |
-
startListeningForMobileLogin();
|
207 |
} else {
|
208 |
speak("Let's try again. Please tell your email.", startListeningForLogin);
|
209 |
}
|
@@ -244,7 +244,7 @@
|
|
244 |
}
|
245 |
|
246 |
function confirmName() {
|
247 |
-
speak("You said " + nameCaptured + ". Is it
|
248 |
recognition.start();
|
249 |
recognition.onresult = function(event) {
|
250 |
let confirmation = event.results[0][0].transcript.trim().toLowerCase();
|
@@ -338,3 +338,4 @@
|
|
338 |
</script>
|
339 |
</body>
|
340 |
</html>
|
|
|
|
203 |
let confirmation = event.results[0][0].transcript.trim().toLowerCase();
|
204 |
recognition.stop();
|
205 |
if (confirmation.includes("ok") || confirmation.includes("yes")) {
|
206 |
+
startListeningForMobileLogin(); // Proceed to mobile number input
|
207 |
} else {
|
208 |
speak("Let's try again. Please tell your email.", startListeningForLogin);
|
209 |
}
|
|
|
244 |
}
|
245 |
|
246 |
function confirmName() {
|
247 |
+
speak("You said " + nameCaptured + ". Is it okay?", function() {
|
248 |
recognition.start();
|
249 |
recognition.onresult = function(event) {
|
250 |
let confirmation = event.results[0][0].transcript.trim().toLowerCase();
|
|
|
338 |
</script>
|
339 |
</body>
|
340 |
</html>
|
341 |
+
|