Gopikanth123 commited on
Commit
8010b1d
·
verified ·
1 Parent(s): 50419c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -17,6 +17,7 @@ speech_recognition_html = """
17
  var recognition = new webkitSpeechRecognition();
18
  recognition.continuous = false; // Stops after speech input
19
  recognition.interimResults = true;
 
20
 
21
  recognition.onresult = function(event) {
22
  var transcript = event.results[event.resultIndex][0].transcript;
 
17
  var recognition = new webkitSpeechRecognition();
18
  recognition.continuous = false; // Stops after speech input
19
  recognition.interimResults = true;
20
+ recognition.lang = 'en-US'; // Set language for recognition (English)
21
 
22
  recognition.onresult = function(event) {
23
  var transcript = event.results[event.resultIndex][0].transcript;