Changed window to this when getting SpeechRecognition