3

私は自分のアプリにグーグル翻訳シミレーターを実装し
ていますこのアプリについてのアイデアをどのように実装できますか類似のソース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);
4

1 に答える 1

4

GoogleLanguageAPIがあります

Webサイトまたはアプリケーションを1つ以上の異なる言語に翻訳する必要がありますか?Google翻訳を使用すると、何千もの言語ペア間でテキストを動的に翻訳できます。

于 2010-11-10T14:16:02.950 に答える