【问题标题】:how to implemented translator one language to another language in android如何在android中实现将一种语言翻译成另一种语言
【发布时间】:2011-05-07 20:22:57
【问题描述】:

我正在为我的应用实施谷歌翻译模拟器
如何实现有关此应用程序的一些想法 一些类似的源 url 或相关的谷歌 api 请提前转发谢谢

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);

【问题讨论】:

    标签: android google-translate


    【解决方案1】:

    Google Language API

    需要将您的网站或应用程序翻译成一种或多种不同的语言?借助 Google 翻译,您可以在数千种语言对之间动态翻译文本。

    【讨论】:

    • 没关系,我正在使用 google api 翻译文本会完成,但翻译的声音不起作用这是我将在 2 天内尝试但没有解决方案的情况谢谢