microsoft / BuildAnIntelligentBot

This is the sample of the Talk to My Bot implementation of a smart bot that can interact with other bots.
25 stars 24 forks source link

Change language #9

Open ECocca opened 5 years ago

ECocca commented 5 years ago

Hello, I tried to follow the lab and I got to the part of speech. I would like to try to make the bot speak in Italian. For the part of text to speech I was able to modify the code to let the bot speak in Italian. I would also like the bot to understand Italian, so the part of speech recognition would like to convert it from English into Italian. Is it possible to know in which parts of the code changes must be made to enable recognition of the Italian language? Thanks

ECocca commented 5 years ago

I changed files botchat.js, CognitiveService.js and SpeechModule.js. Now the bot can recognize italian word, but only in the web chat. If i try the "Test in chat" on Azure portal the bot can recognize only english language. Why?

gsegares commented 5 years ago

Hi, the "Test in chat" won't reflect the customizations from your web chat code, this is a component to quickly run tests and is using the default English locale. If you want to see your code in action open a browser and navigate to your bot https://chatbot-<your initials>.azurewebsites.net/