开发者

how to implemented translator one language to another language in android

i am implementing google translator similator to my app

how can implemented some idea about this app forward some similar source url or related google api please forward advanc开发者_StackOverflow中文版e 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);


There is the 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 language pairs.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜