File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes speech Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "speech" Watch "speech" New topic
Author

speech

Amod Gupta
Greenhorn

Joined: Oct 16, 2009
Posts: 28
i am trying to add speech synthesis to my application.I am using freetts to convert text to speech.till here everything is fine.Now to use a new voice I am using MBROLA VOICES.When I am using the included example in form of a jar file,it is executing fine,but if I try to execute the class file or any of my files then i get the following error:
COULD not validate any MBlora voices at ./mblora
and also could not find the voice named mblora_us1.please specify a different voice.
Now what i cant figure out is if examples are working fine what is the problem with class files.The code i am using is:


Also bin contains mbrola folder containing voices us1,us3.
please help.
Amod Gupta
Greenhorn

Joined: Oct 16, 2009
Posts: 28
also can someone help me with this exception:
Processing Utterance: com.sun.speech.freetts.ProcessException: Cannot start mbrola program: [Ljava.lang.String;@911f71
this is where i reached trying to solve my problem
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42950
    
  70
Seeing a full stack trace, along with a description of the related files and directory layout would help. Also, what are the specific differences between "When I am using the included example in form of a jar file" and "if I try to execute the class file or any of my files" - post the commands you're using and all pertinent information.
Amod Gupta
Greenhorn

Joined: Oct 16, 2009
Posts: 28
thanks Ulf Dittmer but finally i managed to solve the problem,it was because of the directory in which the mbrola database files were kept.
John JohanssonJohn
Greenhorn

Joined: Jul 28, 2011
Posts: 1
have the exactly same problem and can't find any logic in it..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: speech