Hi Halle,
Do you have any suggestions on what I can do to stop this from happening?
0:07.294 pocketsphinxDidStartListening
0:07.304 pocketsphinxDidSuspendRecognition
0:07.317 play_audio 000098.m4a
0:07.366 pocketsphinxDidDetectSpeech
I’m waiting for DidSuspendRecognition before I fire an AVAudioPlayer. The docs say that suspendRecognition “takes effect instantly” but that doesn’t seem to be the case – in this example, suspendRecognition was called from within the pocketSphinxDidStartListening function and it takes about 110ms to fire the DidSuspendRecognition event. But then after that, it still detects speech from the audio being played. I’ve tried sleeping for various times but I can’t seem to get a robust, consistent behaviour.
Is this a bug or am I expecting too much of it?
Thanks again
Matt.