Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
如果您处于可以进行系统调用的环境中,则可以通过管道输出 Festival 到 lame 中,如下所示:
如果您想进行进一步处理以及转换,您可以将 text2wave 的输出通过管道传输到 SoX,它也可以为您进行转换:
默认 Festival不过,声音似乎有点裤子,所以这篇文章可能值得研究,但是我自己还没有实际尝试过。
我知道你没有使用 ubuntu,但对于其他可能觉得这个答案有帮助的人来说,有一个问题,即使你安装了所有“丑陋”的插件,SoX 仍然无法输出 MP3 文件。您必须手动拆除 .deb 并修改 debian/rules 文件以从 DEB_CONFIGURE_EXTRA_FLAGS 中删除 --without-lame。
If you are in an environment where you can make system calls, you could pipe the output of Festival into lame like so:
If you want to do further processing as well as the conversion, you can pipe the output of text2wave to SoX instead, which can also do the conversion for you:
The default Festival voice seems to be a bit pants though, so this article might be worth investigating, but I haven't actually tried it myself.
I know you aren't using ubuntu but for others who might find this answer helpful, there is a problem where even after you install all the "ugly" plugins, SoX still cannot output MP3 files. You have to manually dismantle the .deb and modify the debian/rules file to remove --without-lame from DEB_CONFIGURE_EXTRA_FLAGS.