Spaces:
Sleeping
Sleeping
Update templates/index.html
Browse files- templates/index.html +1 -1
templates/index.html
CHANGED
@@ -111,7 +111,7 @@
|
|
111 |
speak(transcript, null); // Say the captured letter
|
112 |
|
113 |
// If a space or "next" word is detected, stop and move to email
|
114 |
-
if (transcript === "next"
|
115 |
recognition.stop();
|
116 |
isNameCaptured = true;
|
117 |
status.textContent = "Listening for your email...";
|
|
|
111 |
speak(transcript, null); // Say the captured letter
|
112 |
|
113 |
// If a space or "next" word is detected, stop and move to email
|
114 |
+
if (transcript.toLowerCase() === "next") {
|
115 |
recognition.stop();
|
116 |
isNameCaptured = true;
|
117 |
status.textContent = "Listening for your email...";
|