Reply To: Does stopListening retain observers?

Home Forums OpenEars Does stopListening retain observers? Reply To: Does stopListening retain observers?

Halle Winkler

I wanted to mention that OEEventsObserver has to be a property of your class in which you are using it, and that it needs to be instantiated before any calls to begin OEPocketsphinxController listening in order to provide information about the listening startup process. It is usually instantiated when the hosting view controller is initialized or when its view is loaded.

Creating them at the moment of need and then uncreating them isn’t how they are designed – instead, management of which events to react to and when is handled by choosing the callbacks to use and having logic within them for what to do under which circumstance.

You can check out the tutorial or the sample app in order to see how OEEventsObserver is managed in them.