Friends!
Tell me, please, how to set up a translator?
You speak phrases to the robot in your language, and he immediately pronounces in another language.

kwatters

4 years ago

To make a translator..  you'll need a few things

1. a speech recognition service.

2. a translation service.

3. a speech synthesis service.

4. a little python script to help glue all the parts together.  (or ProgramAB with some AIML)

 

For the speech recognition,  I would recommend using WebKitSpeechRecognizer.  It supports many language and generally works quite well.

For the translation service,  I think the only one we currentl support is the Micrsosoft Azure Translation service.  You will need an API key to use that service.

For the speech synthesis service, there are a few to choose from.  Quality of the voices and the various languages that the voices support are varied.  You'll want to pick a voice that supports your target language.  Perhaps the best voices would be with the Amazon Polly service.  (Again, you'd need an API key to use that one.)

The python script to wire this up should be pretty straight forward..

I don't know how good these examples are. but I found this that might help:

https://github.com/MyRobotLab/pyrobotlab/blob/master/service/AzureTranslator.py

If you combine that script with this one

https://github.com/MyRobotLab/pyrobotlab/blob/master/service/WebkitSpeechRecognition.py

 

I think you'll be pretty close to having it all working as you want.

Good luck!  Report back how you make out.