Android的TTS男女变声 [英] Android TTS Male Female Voice Change

查看:767
本文介绍了Android的TTS男女变声的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正与TTS。

不过,我需要从女性到男性,反之亦然改变TTS的声音。

But i need to change the voice of the tts from female to male and vice versa.

我知道我可以通过espeak的做到这一点。但问题是,。在设置页面时,我选择espeak的TTS语音变为男性,当我选择微微TTS语音变为女性。 但是,当改变发动机的设置页面,当我尝试改变声音,并尝试使用该更改的声音在我的应用程序,只说在男性的声音后。

I know i can do it by eSpeak. But problem is that. In the setting page when i select the eSpeak TTS the voice changes to male and when i choose the Pico TTS the voice turns to female. But when after changing the engine in the setting page when i try to change the voice and try to use that changed voice in my app it only speaks in male voice.

我从<一个下载第三方应用程序href="http://eyes-free.google$c$c.com/svn/trunk/tts/">http://eyes-free.google$c$c.com/svn/trunk/tts/

然后在我的应用程序的MainActivity我做以下,

Then in my app's MainActivity i do the below,

    editText = (EditText) findViewById(R.id.EditText01);

    Button speak = (Button) findViewById(R.id.SpeakButton);
    speak.setOnClickListener(new OnClickListener() {

        public void onClick(View v) {
            // TODO Auto-generated method stub

            if(editText.getText().toString().equalsIgnoreCase(""))
                startActivity(new Intent(Main.this, ConfigurationManager.class));
            else {
                tts = new TTS(Main.this, ttsInitListener, true );
            }

        }

    });

但我试图做的是没有进入到TextToSpeech设置页面,只改变一个男/女按钮我要改变声音的TTS。

But what i am trying to do is without entering to the TextToSpeech Setting page, only changing a male/female button i want to change the voice for TTS.

请帮我这样做。我已经试过很多次了。

Please help me to do so. I have tried lots of times.

推荐答案

显然,你可以从默认的女声在Android TTS,你将需要使用另一个引擎切换。 iSpeech和Nuance的有很好的引擎,并支持男性和女性的声音。

Apparently you can not switch from the default female voice on the android TTS you will need to use another engine. iSpeech and Nuance have really good engines and support male and female voices.

这篇关于Android的TTS男女变声的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆