HI;
I have 2 programs that use FreeTTS, it seems that if the first is running and reading to me. Useing the secound will cause it to crash with this error:
Exception in thread "main" javax.speech.EngineStateError: Invalid EngineState: expected=( DEALLOCATED DEALLOCATING_RESOURCES ) current state=( DEALLOCATED QUEUE_EMPTY )
at com.sun.speech.engine.BaseEngine.checkEngineState(BaseEngine.java:705)
at com.sun.speech.engine.synthesis.BaseSynthesizer.speakPlainText(BaseSynthesizer.java:148)
at TalkBot.SpeechController.read(SpeechController.java:287)
at TalkBot.SpeechController.read(SpeechController.java:234)
at TalkBot.Program.Main(Program.java:101)
at TalkBot.Program.main(Program.java:33)
How do I detect the other program to avoid this?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
HI;
I have 2 programs that use FreeTTS, it seems that if the first is running and reading to me. Useing the secound will cause it to crash with this error:
Exception in thread "main" javax.speech.EngineStateError: Invalid EngineState: expected=( DEALLOCATED DEALLOCATING_RESOURCES ) current state=( DEALLOCATED QUEUE_EMPTY )
at com.sun.speech.engine.BaseEngine.checkEngineState(BaseEngine.java:705)
at com.sun.speech.engine.synthesis.BaseSynthesizer.speakPlainText(BaseSynthesizer.java:148)
at TalkBot.SpeechController.read(SpeechController.java:287)
at TalkBot.SpeechController.read(SpeechController.java:234)
at TalkBot.Program.Main(Program.java:101)
at TalkBot.Program.main(Program.java:33)
How do I detect the other program to avoid this?
Sorry, the problem is my fault, I seem to have an incorrect setup in the secound program.