From 96e89a7b5f32ad1b34263f552bf5a723777d5b38 Mon Sep 17 00:00:00 2001 From: Stanislau Niadbailau Date: Fri, 11 Aug 2017 08:00:56 -0400 Subject: [PATCH] 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. --- 20 - Speech Detection/index-FINISHED.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/20 - Speech Detection/index-FINISHED.html b/20 - Speech Detection/index-FINISHED.html index a5f17da93d..a2722140da 100644 --- a/20 - Speech Detection/index-FINISHED.html +++ b/20 - Speech Detection/index-FINISHED.html @@ -14,7 +14,8 @@ const recognition = new SpeechRecognition(); recognition.interimResults = true; - + recognition.lang = 'en-US'; + let p = document.createElement('p'); const words = document.querySelector('.words'); words.appendChild(p);