ailab
ailab copied to clipboard
Change speech recognition language to de-de
I am not managing to make the chatbot recognize my speech input as German. I managed to change the text-to-speech to German, but when I talk into the mic the bot thinks I talk English. I saw that I can possibly change it via config.SpeechRecognitionLanguage = "de-de"; But honestly, I have no clue where to put it. Am I right that I have to change something in the SpeechModule.js?
I solved it by changing o = i.SpeechResultFormat.Simple, s = e.locale || "en-US" to o = i.SpeechResultFormat.Simple, s = "de-DE" in wwwroot/lib/CognitiveServices.js