Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception in thread “AWT-EventQueue-0” javax.speech.EngineStateError: Invalid EngineState

Subhiksh Kaa
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I'm using VOCE library in my application as I need both speech synthesis and speech recognition.

Here is my speech recognition code

I call this from another java application called StartApplication and in this I continuously check whether the value of count has changed to 0 or 1 and if not main method is called agian.

However when I say login it is recognized and the value of count is changed to 1 but the following exception is generated

Following is the StartApplication code snippet,

Inorder to avoid this I removed this voce.SpeechInterface.destroy(); Now when I call this from some other application it throws the following exception

How to fix this?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic