Menu

More than one program using the library at the same time.

2017-04-21
2017-04-21
  • Jamie Marchant

    Jamie Marchant - 2017-04-21

    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?

     
  • Jamie Marchant

    Jamie Marchant - 2017-04-21

    Sorry, the problem is my fault, I seem to have an incorrect setup in the secound program.

     

Log in to post a comment.