Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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;
|