Skip to content

Commit 96e89a7

Browse files
committed
Saying to browser listen for english.
Ihad russian settings on my browser but i wanted to speak english and thats how i have fixed it.
1 parent 00dbfc5 commit 96e89a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

20 - Speech Detection/index-FINISHED.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414

1515
const recognition = new SpeechRecognition();
1616
recognition.interimResults = true;
17-
17+
recognition.lang = 'en-US';
18+
1819
let p = document.createElement('p');
1920
const words = document.querySelector('.words');
2021
words.appendChild(p);

0 commit comments

Comments
 (0)