如何在FreeTTS中更改语音-Java [英] How to change voice in FreeTTS - Java

查看:554
本文介绍了如何在FreeTTS中更改语音-Java的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用Java运行一个使用FreeTTS Voices的程序,我想要的是更改声音. 当我运行程序时,它显示:

I am running a program in java in which i use FreeTTS Voices, what i want is to change the voice. when i run the program it shows:

系统属性"mbrola.base"未定义.将不使用MBROLA 声音."

"System property "mbrola.base" is undefined. Will not use MBROLA voices."

我使用以下代码说出我想要的文字

I use the following code to speak up the text i want

Voice voice;
voice = voiceManager.getVoice(VOICENAME);
voice.allocate();

然后

voice.speak(t4.getText()); 

我试图找到插入MBROLA声音的教程.我发现的教程之一是在他们的网页上: http://freetts.sourceforge.net/mbrola/README.html 但我在Windows中不知道MAC的任何信息,因此我不知道该怎么做.其他教程是在Linux上进行的,因此我什至不理解它们.我在Windows上使用Netbeans,我希望有人清楚地向我解释如何执行此操作.我是14岁的新手.

I tried to find tutorials to insert MBROLA voices. One of the tutorial i found was on their web page: http://freetts.sourceforge.net/mbrola/README.html but i am in windows not don't know anything of MAC therefore i am unable to know how to do it. Other tutorials were on Linux and i therefore even don't understand them. I am using netbeans on windows and i want someone to clearly explain me how to do this. I am a newbie and 14 year old.

推荐答案

如果您查看所提交的链接,则有一条大消息说:注意:过去,Windows平台上对MBROLA的FreeTTS支持一直很麻烦. ,但似乎已由MBROLA团队修复.请参阅FreeTTS论坛以获取更多信息."

If you look at the link you submitted, there's a big message that says: "NOTE: FreeTTS support for MBROLA on the Windows platform has been troublesome in the past, but appears to have been fixed by the MBROLA team. Please refer to the FreeTTS Forum for more information."

这里是到论坛的直接链接: http://sourceforge.net/p/freetts/discussion/137669/thread/848a09ab

Here's a direct link to the forums: http://sourceforge.net/p/freetts/discussion/137669/thread/848a09ab

这篇关于如何在FreeTTS中更改语音-Java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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