Spaces:
Sleeping
Sleeping
Update templates/index.html
Browse files- templates/index.html +1 -0
templates/index.html
CHANGED
@@ -108,6 +108,7 @@
|
|
108 |
// Handle recognition results
|
109 |
recognition.onresult = function(event) {
|
110 |
const transcript = event.results[event.resultIndex][0].transcript.trim();
|
|
|
111 |
if (event.results[event.resultIndex].isFinal) {
|
112 |
if (!isNameCaptured) {
|
113 |
// If name is empty, fill it with the recognized text
|
|
|
108 |
// Handle recognition results
|
109 |
recognition.onresult = function(event) {
|
110 |
const transcript = event.results[event.resultIndex][0].transcript.trim();
|
111 |
+
console.log('Recognized Text:', transcript); // Debugging line
|
112 |
if (event.results[event.resultIndex].isFinal) {
|
113 |
if (!isNameCaptured) {
|
114 |
// If name is empty, fill it with the recognized text
|