lokesh341 commited on
Commit
1a8cd91
·
verified ·
1 Parent(s): 3d80d68

Update templates/index.html

Browse files
Files changed (1) hide show
  1. 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