Home › Forums › OpenEars › Delay pocketsphinxDidDetectSpeech › Reply To: Delay pocketsphinxDidDetectSpeech
December 22, 2012 at 3:37 pm #15078
pocketsphinxDidDetectSpeech is a delegate method, so you don’t want to delay it since you don’t call it directly, you just want to address the underlying functionality that you control directly which is whether recognition is engaged or not. Suspending recognition before playing your sound and resuming it afterwards should work perfectly for the goal of halting recognition during other media playback, so if it isn’t working perfectly we should figure out why. What happens when you suspend before you play your sound back and resume after your sound is done playing?