You can now translate text between languages using the YandexTranslator component. You can also use the TextToSpeech to have it spoken in the translated language.
For example, you can have a sentence translated from English to French and have it spoken in French using the TextToSpeech. The blocks below show how you can accomplish this translation service. The first block translates from English (en) to French (fre). Once the translation service is invoked, the GotTranslation block will be invoked. In that block, the language and country codes are setup and we then use the TextToSpeech component to speak the translation.
NOTE for AiLiveComplete:
If you are using AiLiveComplete, you’ll have to request an API key from Yandex HERE and. You will also note that for this platform, there is a property and blocks for specifying the key. If the key is not used, then translation will not go through and you will receive an error during translation. To specify key, use the property or the blocks like below: