0

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.

TM.
  • 102,836
  • 30
  • 121
  • 127
dnawab
  • 113
  • 1
  • 2
  • 8
  • possible duplicates : http://stackoverflow.com/questions/143390/java-text-to-speech-engines-overview – Ankit Jun 11 '12 at 19:32

2 Answers2

2

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/

Bart Platak
  • 4,177
  • 5
  • 24
  • 46
0

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.

Roddy of the Frozen Peas
  • 12,995
  • 9
  • 43
  • 86