Without more code it's hard to say exactly what your problem is, but here are a few things I would try:
Ensure your OpenEarsEventObserver object is not nil when you set the delegate:
OpenEarsEventsObserver* openEarsEventsObserver = [[OpenEarsEventsObserver alloc] init];
[openEarsEventsObserver setDelegate:self];
Make sure your pocketsphinxController is not nil and that you have correctly started listening, for this I use lazy instantiation:
- (PocketsphinxController *)pocketsphinxController {
if (_pocketsphinxController == nil) {
_pocketsphinxController = [[PocketsphinxController alloc] init];
}
return _pocketsphinxController;
}
Then when you would like to start recognizing speech use:
[self.pocketsphinxController startListeningWithLanguageModelAtPath:<#(NSString *)#> dictionaryAtPath:<#(NSString *)#> acousticModelAtPath:<#(NSString *)#> languageModelIsJSGF:<#(BOOL)#>];
// Change "AcousticModelEnglish" to "AcousticModelSpanish" to perform Spanish recognition instead of English.
All of this info can be found at: OpenEars Tutorials