如何在安卓系统中实现一种语言到另一种语言的翻译器

3
我正在将Google翻译器模拟器应用到我的应用程序中,有什么关于这个应用的想法可以实现吗?请提供一些类似的源URL或相关的Google 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);
1个回答

4

有一个Google语言API

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


1
没问题,我正在使用谷歌API翻译文本将完成,但翻译的语音不起作用。这是我的情况,我会再试两天,但是没有解决方案。我将提供一些源代码,请转发一些有价值的解决方案。提前致谢。 - Narasimha

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接