Text translation using Microsoft Azure Cognitive service Text_Translate
How to add the Translate robot skill
- Load the most recent release of ARC (Get ARC).
- Press the Project tab from the top menu bar in ARC.
- Press Add Robot Skill from the button ribbon bar in ARC.
- Choose the Artificial Intelligence category tab.
- Press the Translate icon to add the robot skill to your project.
Don't have a robot yet?
Follow the Getting Started Guide to build a robot and use the Translate robot skill.
How to use the Translate robot skill
Use the Microsoft Translate Text cloud service to translate text in any other languages supported by the API. Input text language is auto detected. For example , you can translate English only responses returned by Microsoft Cognitive Vision plugin. This service requires an internet connection. That means your EZ-B will need to be put into Wi-Fi Client Mode. Consult the appropiate learn tutorial for changing the EZ-B to Wi-Fi Client Mode or add a second USB WiFi adapter from here: http://www.ez-robot.com/Tutorials/Course/5
What Can You Do?
You will need this plugin added to the project. And with this simple line of code in a script ....
translate("I see an humanoid robot across the windows","fr")
result will be :
and EZB result variables will be set.
With ControlCommand() and Blocky :
Example to translate in a script English only responses returned by Microsoft Cognitive Vision plugin.
$result =("I am " + $VisionConfidence + " percent certain that i see " + $VisionDescription)
translate($result,"fr")
SayEZB($translatedtext)
If language to translate is not entered , plugin configuration default will be used
translate("If omitted the plugin default language will be used for translation")
You can also test translation directly in the plugin console :
Recording Settings
Default Translated Language - Code of the default language in which the input text to translate will be translated - can be selected in a list of the languages supported by the API
Translated Text Variable - The variable which holds the translated text. This can be used in your Scripts.
Detected Language Variable - The variable which holds the detected language code of the input text to translate. This can be used in your Scripts.
API Key - Your key for using the Microsoft Text Translate service. There are instructions in this document below for signing up and obtaining a key.
Create Subscription The subscription that you will need from Microsoft is called Translator Text API It's free until 2 000 000 characters translated every month.
To get the subscription , you need if you don't have already one , to create an Azure account
Visit the Microsoft Azure site azure.microsoft.com/en-us/?v=17.14 and create a free try account. After 1 month , you will be asked to transform your try account in a normal one but free service option will stay available. Follow the Azure Account subscription process until you get your account.
Access to Azure Portal ( Click Portal on left up of the Azure home window) - after authentification you access to your Azure Portal. In the Dashboard , you will see all the Azure Services you have subscribed even when they are free.
Add the Translator Text service. To illustrate the add service process - see below how I add a new free service to my account Vocal_translator
Copy the Key 1
Paste the Key in the API key field of the plugin configuration form and Save
Disclaimer This service is provided by Microsoft, and not owned by Synthiam or the plugin author. Microsoft may change their terms of use and operational behavior without warnings.
The information contained in this website is for general information purposes only. The information is provided by Jean-Luc Bénard and while we endeavour to keep the information up to date and correct, we make no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, suitability or availability with respect to the website or the information, products, services, or related graphics contained on the website for any purpose. Any reliance you place on such information is therefore strictly at your own risk.
In no event will we be liable for any loss or damage including without limitation, indirect or consequential loss or damage, or any loss or damage whatsoever arising from loss of data or profits arising out of, or in connection with, the use of this website.
When I load the skill this error appears:
what am I wrong?
thanks!
You aren't doing anything wrong
The owner of this plug-in hasn't had a chance to update it yet.
but with the non beta version would it work?
No, it won’t work in either ARC version until it’s updated
thanks a lot
Hi @Jlucben
is there any possibility that you could upgrade your extension?
thanks
Luca
HI all
Sorry as I was in holidays
Skill is upgraded to V1 , just a remaining bug if you use blocky.