TextoToSpeech in another language - android

I'm trying to do a TextoToSpeech program in Android Studio but I want it to get a word and say it in another language(portuguese) that is not listed when I hit CTRL+SPACE.
How do I set this new language?

Well, It's related to the TTS Engine, there is a lot of engines like the Google TTS Engine, You can change language to speak by using setLanguage() function. Lot of languages are supported like Canada, French, Chinese, Germany etc.,but if the 'portuguese' language does not appear so you can not add it using this engine, so i suggest you to change your engine, there are a lot of engines, try to use Ekho engine, or find what engine support the portuguese language!!
tts.setLanguage(Locale.CHINESE); // Chinese language
I hope it will help you, best regards

Related

What typeface/fonts are working with international languages on Android?

I'm not sure how or where to ask this question, but I guess lots of experienced android developers here could point me in the correct direction.
What I would like is to give my users to customize their type of font/typeface. But, as the application got users from all around the world, with all kind of languages and charsets, I don't know what typefaces/fonts that supports this. I need fonts that support chinese, english/latin, cryllic, russian, arabic, etc etc... For now, I only use the default font on android, as Im not sure if any other fonts supports all these international characters. (I use utf8)
Anyone got some tips ?

Using text from Google translate

This is regarding android application.
As per my analysis, the translation from Google translate is not perfect.
Will it be ok show non-english users a dialog with the following content:
This application has been translated by using Google Translate and
hence could have translation issues. If you see translation problems
in your language, please switch to English locale on your device. If
possible, help us in fixing language translation problems noticed by
you
This question is from the perspective to quality and usability of app by non-english speakers who have set the locale as non-english on their android device.
I would try to find somebody that can translate it into proper English.
Expensive: Supertext
Cheap: MyGengo
But even the cheapest MyGengo translations are normally better than Google. If you app is something professional, I would invest into a real professional translation. Otherwise your usability goes down the drain.

TTS for Indian languages

I want to develop an Android application (using some library) which displays and reads text in Indian languages. Mainly in Devanagari (Sanskrit/Hindi/Marathi etc.) what would be the best way to go about it? Should i specify Phonetics for each word and feed it to Pico? Or can anyone please suggest a better and a simpler library. (Which even sounds natural).
Thanks in advance. :)
This may work.... Try to customize your TTS Locale as
Locale loc=new Locale("en","IN");
tts.setLanguage(loc);

How to use Hindi(Indian Mother Tongue) language in Text-To-Speech?

I am creating an application for student. I need to enter data in Hindi or Marathi.
When user clicks on specific topic then user should be able to listen this topic in Hindi Or Marathi.
I know How to set Language in TextToSpeech like
Tts.setLanguage(Locale.US);
I need to set Hindi or Marathi Language. My question is that how to use Marathi or Hindi
Language in TextToSpeech. Please give me any reference or hint.
You need a text-to-speech (TTS) engine that supports Hindi. Each TTS engine has specific languages that it supports. Here is a TTS engine that supports Hindi, but this runs on Windows. I see from the tags that you want to support this on Android. Here is a post about supporting Hindi TTS on an Android. The native TTS on Android does not support Hindi. What you may have to do is create a service that uses the Hindi text and translates it to an audio file. You would then stream the audio file to your Android application.
In my opinion though you will not want to use TTS for an educational application. I think you will find the output from the TTS very robotic and hard to understand by the students. I would record the lessons/information and just stream it in your application. Before you purchase any TTS engine I would try it out first to make sure that the generated voice is acceptable. Most of the top educational application today (ex: Khan Academy) use pre-recorded audio and/or video.
you should use
msg.lang = 'hi-IN';
you should have to use :-
tts.setLanguage(Locale.forLanguageTag("hin-IND"));
or
tts.setLanguage(new Locale("hin","IND",null));

How to audibly play IPA pronunciation on Android?

I have the IPA pronunciation for a word which I would like to audibly play back to the user.
Can this be done using the built-in TTS engine? If not, is there a TTS engine out there that does support it?
As far as I know, this cannot be done and there is no app that supports this. The TTS engine supports only English, French, German, Italian, and Spanish (EFIGS).
Unless you have some linguistic knowledge, you are probably out of luck. If you do, you could probably try to map the IPA to the most appropriate language (or maybe try Italian) and see how bad it is.
Ivona supports this. They do have a free app for Android. It is a bit hard to setup, but perhaps this will get you going in a helpful direction.

Categories

Resources