文本到语音转换器

发布于 2024-11-17 21:13:03 字数 1537 浏览 1 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

甜柠檬 2024-11-24 21:13:03
  1. 使用您最熟悉的语言。当我尝试用 C++ 重新编码我的光线追踪器(来自 Python 背景)时,我经历了惨痛的教训。我花了几周时间才让它发挥作用......

    基本上,在开始编写代码之前,您会因新语言的细微差别而感到沮丧,因此我建议您坚持使用您所知道的内容。

  2. 这与语言无关。只需确保以块的形式读取数据(例如一次读取 2048 千字节)。将大文件读取到 RAM 并不是一个好主意,因为您无法确定最终用户是否有足够的 RAM(音频文件可能会变得很大)。

  3. 这是微不足道的。我无法帮助您编程良好的音质。这取决于你。

  4. Linux 上存在一些 TTS 实现,因此我只能推荐这些。看看节日,因为它是您真正可以理解的节日之一。

  1. Use the language you're most comfortable with. I learned the hard way when I tried to re-code my raytracer in C++, coming from a Python background. It took me weeks to get it to function...

    Basically, you'll get frustrated by the nuances of a new language before you can get to coding something, so I suggest you stick with what you know.

  2. That's independent of the language. Just makes sure to read the data in chunks (like 2048 kilobytes at a time). Reading a big file to RAM is not a great idea, as you can't be sure your end user has enough RAM (audio files can get BIG).

  3. This is trivial. I can't help you program good sound quality. That's up to you.

  4. There exist a few implementations of TTS for Linux, so that's all I can recommend. Look at Festival, as it is one of the ones you can actually understand.

白馒头 2024-11-24 21:13:03

很久以前我也有同样的想法。我觉得不是太复杂,是可以做到的。这就是我的做法:

1- 我会使用 Java,因为它是独立于平台的。

2- 如果您要创建独立应用程序,则将由本地计算机进行处理,而不是应用程序服务器,就像 Web 应用程序一样。我还认为您的程序一次只能由一个用户使用。我认为,如果您实现某种缓冲机制,那么要处理的数据量不会有大问题。

3- 声音的质量取决于多种因素,例如:录音时的噪音、格式、声音的速度...请注意,网络上存在的许多文本到语音应用程序、声音质量还可以,但你永远不会感觉到这是一个真人在读书。 (我推荐你用女声,听起来更好)。

4- 关于库和其他小工具,我认为您可能需要:

-Java 标准开发套件(能够使用 java)

- 一个好的 IDE:有很多你可以免费获得。我最喜欢的是 eclipse 但如果您是 java 初学者,您可能会想从 netbeans 很多人说学习起来比较直观。

-JLayer Mp3 库 这将帮助您播放声音爪哇。

-javax.swing是一个包含在开发套件中的 java 库,允许您创建丰富的图形用户界面。另外,如果您是 swing 新手,我会向您推荐一个很棒的 swing IDE,名为 JFormDesigner,看看对此,我确信它将大大加快您的开发速度(这是一个很棒的工具)。

更新

我认为还应该提及的是,您的应用程序的用户运行该应用程序的唯一最低要求是:

JRE(Java运行环境)

Long time ago i had that same idea. I think it is not too complicated and can be done. This is how i would do it:

1- I would use Java, because it is platform independent.

2- If you are going to create an standalone application, it will be the local computer that will do the processing an not an application server, as in the case of web apps. Also i suppose that your program, will be used only by one user at a time. I think you will not have big issues with the amount data to process, if u implement some buffering mechanism.

3- The quality of the sound will depend in various factors such as: noise when recording,format, speed of the sound... Notice that many text to speech applications that exist on the web, the sound quality is ok, but you will never get the feeling that it is a real person, who is reading. (I recommend you a female voice, it sounds better).

4- Regarding to the libraries and another gadgets, this is what i think you might need:

-Java Standard Development Kit(To be able to work with java)

-A good IDE: There a many out there you can get for free. My favourite is eclipse but if you are a beginer with java, you might like to start with netbeans many people say it is more intuitive for learning.

-JLayer Mp3 library This will help you play the sounds in java.

-javax.swing Is a java library that is included in the development kit and allows you to create rich graphical user interfaces. Also if you are new to swing, i would recommend you a great swing IDE, called JFormDesigner, have a look at it, im sure it will speed your development alot(It is a great tool).

Update

I think it would be correct to mention also, that the only minimum requirement the users of your app will have in order to run the app is:

JRE(Java runtime enviroment)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文