How to implement a translator of one language to another language in android

I am introducing a Google translation simulator for my application,
    how can I get some idea of ​​this application forward some similar source URL or the google api associated with it, please forward forward thanks

screenshot of this app

http://www.freeimagehosting.net/uploads/73620ad386.png

input:
from any language <-----translate----------->to any language 
output:
translation of text and  voice of translate text

this app same as google translator
checkIntent.setAction(TextToSpeech.Engine.ACTION_CHECK_TTS_DATA);
startActivityForResult(checkIntent,1);  
 private TextToSpeech mTts;
    protected void onActivityResult(
            int requestCode, int resultCode, Intent data) {
        if (requestCode == 1) {
            if (resultCode == TextToSpeech.Engine.CHECK_VOICE_DATA_PASS) {
                // success, create the TTS instance
                mTts = new TextToSpeech(this, null);
            } else {
                // missing data, install it
                Intent installIntent = new Intent();
                installIntent.setAction(
                    TextToSpeech.Engine.ACTION_INSTALL_TTS_DATA);
                startActivity(installIntent);
            }
        }
        mTts.setLanguage(Locale.US);
+3
source share
1 answer

There is a Google Language API .

Need to translate your website or application into one or more different languages? With Google Translate, you can dynamically translate text between thousands of pairs of languages.

+4
source

Source: https://habr.com/ru/post/1774082/


All Articles