dnawab
dnawab

Reputation: 123

Text to Speech conversion in Java

I am currently working to create a multilingual dictionary. I am thinking of adding a pronunciation feature to it too.

I need to know if there is some functionality to do so in Java. What I want is some function that takes a word as a parameter and speaks it out.

Upvotes: 0

Views: 1063

Answers (2)

Bart Platak
Bart Platak

Reputation: 4475

If you want something closer to the proper pronunciation, you may want to try Google Text-to-Speech (assuming your application can access network freely). Although there isn't an official API it's fairly simple to use:

Simply request:

http://translate.google.com/translate_tts?tl=en&q=[TEXT]

which will return audio/mpeg file.

http://techcrunch.com/2009/12/14/the-unofficial-google-text-to-speech-api/

Upvotes: 2

Roddy of the Frozen Peas
Roddy of the Frozen Peas

Reputation: 15219

There is a Java Speech API you may want to consider looking into. I've personally never used it, but it may be a good place to start.

Upvotes: 0

Related Questions