Cloudgarden's Discussion Board
Forums: Search: Several forums are available for people to post questions/comments about Java Speech or any of the CloudGarden products. As more messages are posted this discussion board should provide a useful, searchable, support database.
o AliceTalker (42)
o JSAPI Projects (69)
o Java Speech API (857)
o Jigloo GUI Builder for Eclipse (3322)
o SwingScroller (0)
o US Election 2004 (3)
Searches text and subject fields in all forums. The search matches as many words as possible. Don't use "AND" or "OR".
Latest "Java Speech API" Topics [ Start new "Java Speech API" Topic  ]

Cloudgarden Discussion Board  
This topic has 0 replies.       [ << Previous Topic | Start of Thread | >> Next Topic ]
No resultAccepted/resultRejected events
Author: Clifton Craig
06/25/11 23:11 Reply
I have 2 unit tests which exercises the recognizer with a simple grammar and prerecorded ".aif" and ".wav" files as input. The problem I see is that depending on some unknown circumstance a particular unit test execution will hang indefinitely due to the recognizer not sending resultAccepted or resultRejected events. In my component I use these events in the ResultListener to signal the recognizer to pause. The behavior is not consistant in that it does send on certain executions but not always. I am executing the unit tests from within an IntelliJ Idea project both individually (using the execute individual test config) and all together by running the entire TestCase class. When I run the entire test case class the 1st test passes quite often as it receives the resultAccepted event while the 2nd test fails every time. The behavior is such that I am believing it to be caused by something outside of my components, the unit tests and the JSAPI. It almost feels like the underlying recognizer gets thrown off somehow. I am using the Microsoft SAPI 5.1 running on WinXP.