However, the following (switching parameters to spoken English) works just fine:
Note that I change the variables "language", "country", "setance", and "hebrew_sentance" to switch between spoken English (which succeeds) and spoken Hebrew (which fails).
Is it possible to get ai2 to speak Hebrew?
Here are the language and country codes you can use. The codes are organized first by language; then, in each language section are a list of possible country codes:
For this app to work, you'll need to load a text-to-speech module, Text-To-Speech Extended , on your phone. App Inventor and other apps rely on this module for the underlying voice synthesis. If you don't already have it, you can download onto your phone using the Android Market:
Once the Text-To-Speech module is installed, open it to test its features. When it opens, set the default language as desired. Then select "Listen to Preview". If you don't hear anything, make sure the volume on your phone is turned on. You can also change the default Engine which can enhance the quality of the spoken words.
Once the Text-To-Speech module is installed and configured as desired, you can use the TextToSpeech component within App Inventor.
1) Can you verify if I understand all the above correctly:
the reason I hear nothing when the input for AI2 Text to Speech is in Hebrew is because AI2 TTS does not support Hebrew?Possibly correct, AI2's TextToSpeech component does not support Hebrew. However, you should hear something. Perhaps your Android device does not have a TTS engine installed?
...
There may be alternatives to using TTS with Hebrew in an AI2 app (or perhaps not). I mentioned in a previous post: Here are some possibilities for TTS, perhaps by substitution one of these TTS engines in your device, you might get a Hebrew capability: https://www.google.com/search?q=android+translate+hebrew&oq=android+translate+hebrew&aqs=chrome..69i57.5231j0j7&sourceid=chrome&es_sm=93&ie=UTF-8#q=android+hebrew+text+to+speech
...Steve
Use this component to translate words and sentences between different languages. This component needs Internet access, as it will request translations to the Yandex.Translate service. Specify the source and target language in the form source-target using two letter language codes. So"en-es" will translate from English to Spanish while "es-ru" will translate from Spanish to Russian. If you leave out the source language, the service will attempt to detect the source language. So providing just "es" will attempt to detect the source language and translate it to Spanish.
This component is powered by the Yandex translation service. See http://api.yandex.com/translate/ for more information, including the list of available languages and the meanings of the language codes and status codes. You will need to find the codes from here for Hebrew, then try some blocks... if you have issues, post a screen capture of your Yandex blocks and someone will probably provide some advice
Note: Translation happens asynchronously in the background. When the translation is complete, the "GotTranslation" event is triggered.
GotTranslation(text responseCode, text translation)RequestTranslation(text languageToTranslateTo, text textToTranslate)Regarding:
- As for translating to Hebrew: I can give back to ai2, but am not sure what it entails and if my skill-set is up to the task. Can you detail the requirements and expectations?
Like to keep the discussion here in the forum Ron. Translating should be possible using the Yandtex component which is described Here: http://ai2.appinventor.mit.edu/reference/components/media.html#YandexTranslate
...
Regarding your offer to translate the AI2 documentation/buttons etc. to Hebrew ...