just-ai / aimybox-android-assistant

Embeddable custom voice assistant for Android applications
https://aimybox.com
Apache License 2.0
226 stars 52 forks source link

Using the same chatbot with another language #55

Open mellahysf opened 3 years ago

mellahysf commented 3 years ago

Hi,

I made a chatbot with english language and i integrated it with aimybox and its works. Now i want to use the same chatbot but with french language (maybe with using translator API !! but how to do that ?)

Thanks for help !

morfeusys commented 3 years ago

Aimybox console supports only English and Russian languages for now. You could create another chatbot using any other supported tools like Dialogflow or Rasa and connect your Aimybox based application directly to it using an appropriate library from Aimybox repostory.

mellahysf commented 3 years ago

Thanks @morfeusys for your reply. Yes im created 2 chatbots in Rasa; One in english and another in french language. But how to distinguish between them in the aimAbox based application? In term of speech to text and text to speech methods, we specify only one local language !!

morfeusys commented 3 years ago

@mellahysf you can create two separate Rasa webhooks and determine language on the application starting and initialise Aimybox with an appropriate webhook URL.

mellahysf commented 3 years ago

@morfeusys can you tell me please how can I add 2 buttons in running Aimybox, and according to the clicked button call an appropriate URL (treatment should be in the method createAimybox of class AimyboxApplication of file AimyboxApplication.kt) ?