Deadlock still observable?
Hi,
When I try this:
java -jar lib/freetts.jar -text hello
I can't hear any output, and the process appears to be dead locked (just like the original project).
However, when I run this:
java -jar bin/FreeTTSHelloWorld.jar
it works perfectly fine. The voice is audible.
Can you please help me solve this problem? I am using Oracle JDK 1.7 on Ubuntu 13.04.
PS. Thanks for helping to revive this project!
I dig a bit into the code.
In FreeTTS.startup() an audioplayer is being allocated. In my simple test, a Java Clip Audio Player gets instantiated. This is then set as the audio player in the voice object.
But the Java Clip Audio Player doesn't seem to work, and from the sound of it (pun alert), doesn't seem like the right player when playing to the sound card.
If I comment out this line:
voice.setAudioPlayer(audioPlayer);
... sound plays perfectly fine.
Can you tell me why Java Clip Audio Player is required? And whether disabling it might solve the problems?
Thanks for looking at this. I don't claim to know much about FreeTTS, I just needed the fix for my own project so don't expect too much from me :-)
I hadn't tried the alternate test you mention, but now I try it I see the same as you.
I'm more than happy to look at pull requests if you have changes you'd like to make. Personally I've been concentrating on trying to get the unit tests to run from eclipse, but annoyingly the ant build creates the binary lexicons that the tests rely on and it's a bit of a rat's nest.
I hope to get to the point of releasing a proper build of the library that others can depend on. I'd be interested to know what you are using it for as FreeTTS looked pretty unloved to me. Also do let me know if you find anything better.
I am using it as part of a cronjob that reads out the time to me every 20 minutes. (I sometimes tend to lose track of time)
If I knew more about the logic of that part of the code, I might have submitted a pull request. But I don't :cry: