The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 Vocal Java
Subject:  Error on your src
Date:  2006-04-19 21:18:36
From:  afei
Response to: Error on your src


HI,

you said :
I'm sorry you are having trouble with my software, but I stand by my code. Although you can explicitly create a SynthesizerModeDesc, the Java Speech Guide also permits null to be passed to Central's createSynthesizer() method, which (according to the guide) causes Central to choose a suitable engine for the default locale.
-------------------------------------------
it's true... it is not an error. but went i run the application there is no exception occurs ( so may be my configuration is correct ) and then i enter hello to the textfield and click speak button there is no sound! but when i add the desc object , now it can speak hello in Locale.US or UK.
when i change the local to Locale.ITALY there is exception occurs but it did not tell us what is it and your code show JOptionPane.showMessageDialog(null, e.getMessage ()); i think must tell what going on.
I just don't want somebody else try your article get same experience like me! btw how to make sure i have suitable voice installed ? Thank's , i like your article.

Cheers,
HKS ( ID,IDR)

 Feed java.net RSS Feeds