开发者

Text to speech converter

I am going to create a Text to speech converter, which can be executed in both Windows, and Linux based systems. Can someone please help me answer the following questions;

  1. What langua开发者_开发知识库ge should i use; Java, C++ or any other?
  2. The program i am going to create should be able to read large chunks of data.
  3. There should be good sound quality.
  4. What are the libraries available to achieve this?

Please share your experiences as well.


  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.


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).

I hope my answers can give you some tips.

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)


This project of text to speech can be made using computer generated voice so no problem of storing a database for each word and its pronunciation. Just use the language in which u feel master to urself and apply the concept.....


I do not know anything about text to speech except that it's not easy. That being said, I suggest you stick with the language you are most familiar with. I'm sure Java and C can do it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜