Emacs中的文本到语音 [英] Text-to-Speech in Emacs

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

问题描述

我不是盲目的,我只想有一种方式让我的Windows机器大量读取缓冲区的内容。以下是基本要求:




  • 阅读任何英文文本缓冲区。

  • 暂停阅读时间和简历(当有人走进我的办公室时,不要等待几分钟的时间才能完成)。

  • 在播放时调整回读速度。 li>
  • 突出显示正在读取的文本(可选)



我发现了几个可能的解决方案: / p>


  • Emacspeak :设计为盲人。看起来像一个独立的程序,而不是Emacs插件

  • festival.el :需要节日。我找不到Windows二进制节。有人有他们吗?

  • 我也可以写我自己的。文字转语音(TTS)图书馆现在很多。交互式暂停功能可能是最大的伎俩,但必须有一些库可以做到。



哪个选项是最好的计划?我不想在这里一个星期的项目。在Windows编译节目一直是一个痛苦的实验。 Emacspeak看起来像我想要的overkill。

解决方案

Windows的节日可用rel =noreferrer>guideog.sourceforge.net/download.php。我不能保证festival.el将与这些二进制文件一起工作。我确实有使用这些二进制文件的经验,所以如果你有麻烦让他们在Emacs之外工作,我可以帮忙。



我不认为您可以控制播放速度与节日,虽然我可能会误会。为了保持对它的控制,我想说,你最好的打算是编程,以便它一次只发送一小部分到节日。否则,在完成之前真的没有办法阻止它阅读。



基本上,我不认为有什么可以满足你的最低限度要求没有一些工作。



编辑:在回顾您的要求后,我会说最好的方法是劫持festival.el一次发一个句子到节日。然后你可以编程一个将会杀死它的按键,这样它只会完成当前的句子。同时,您的脚本可以突出显示当前发送到Festival的句子。


I'm not blind, I just want to have a way to have my Windows machine read the contents of a buffer outloud. Here are the basic requirements:

  • Read any English text buffer.
  • Pause the reading at any time and resume at any time (not wait a few minutes for a big buffer to finish when someone walks into my office).
  • Adjust the read-back speed at play-time.
  • Highlight the text currently being read (optional)

I found a couple of possible solutions:

  • Emacspeak: Designed for the blind. Looks like a stand-alone program, not an Emacs plug-in
  • festival.el: Requires Festival. I can't find Windows Binaries for Festival. Anyone have them?
  • I could also write my own. Text-To-Speech (TTS) libraries are a plenty these days. The interactive pause feature may be the biggest trick, but there must be some libraries that can do it.

Which option is the best plan? I don't want a week-long project here. Compiling Festival in Windows has been a painful experiment. Emacspeak looks like overkill for what I want.

解决方案

Festival for Windows is available here. I can't guarantee that festival.el will work with these binaries. I do have experience working with these binaries, though, so if you have problems getting them to work outside of Emacs, I may be able to help.

I don't think you will have control over playback speed with festival, though I could be mistaken. As far as retaining control over it, I'd say your best bet is to program it so that it is only sending small portions at a time to festival. Otherwise, there really isn't any way to prevent it from reading until done.

Basically, I don't think that there is anything out there that would meet your minimum requirements without some work.

Edit: after looking back over your requirements, I'd say the best approach would be to hack festival.el to send a sentence at a time to Festival. Then you can program a keystroke that will kill it, so that it will only finish the current sentence. At the same time, your script could highlight the sentence that is currently being sent to Festival.

这篇关于Emacs中的文本到语音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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