Reply To: ConvertInput error in pocketsphinxDidReceiveHypothesis

Home Forums OpenEars ConvertInput error in pocketsphinxDidReceiveHypothesis Reply To: ConvertInput error in pocketsphinxDidReceiveHypothesis

#11605
cgunn
Participant

OK, I’ve discovered something more about this. This error seems to occur because the class that this code is in is both an OpenEarsEventsObserverDelegate and an AVAudioPlayerDelegate.

@interface Speech : NSObject

This is because it plays some pre-recorded sound clips as well as fliteController output, and I want to know when the clips are started and finished so i can turn off speech recognition during those sounds.
If I remove the ‘AVAudioPlayerDelegate’, I seem to be able run consistently without the error occurring.

Is it valid to have the class as a delegate of both? Could there be some conflict that is causing this error and lock-up?