File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other JSE/JEE APIs and the fly likes Java Speech API: Changing the voice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Java Speech API: Changing the voice" Watch "Java Speech API: Changing the voice" New topic

Java Speech API: Changing the voice

Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 507

Hi, please have a look at the following code, which I found in a book web site

I don't have the MBROLLA voices, so this code is not working (I tried to install mbrola, but that is not working too. The software is updated while the definition, documentation, guidance are not!). The only way to make this work is changing the voice to "kevin16" the default voice. Is there any way to set that voice to the previous application? I can do that by the following code,

but it destroyed the use of "Synthesizer " class which most of the examples are based. So, I must use the "Synthesizer " class to too because it is a good way to make my application powerful. Please help....

Are you better than me? Then please show me my mistakes..
I agree. Here's the link:
subject: Java Speech API: Changing the voice
jQuery in Action, 3rd edition