Home › Forums › OpenEars plugins › Using RapidEars and the SampleApp › Reply To: Using RapidEars and the SampleApp
Based on the log, the plugin isn’t being used at all in the project since the error is that a method that is in the plugin isn’t available to the project. Can you elaborate on your comment:
had to adapt the guide slightly this line is not right:
“Then replace all of the other occurences of startListeningWithLanguageModelAtPath: with startRealtimeListeningWithLanguageModelAtPath:”
Instead I replaced it with
[self.pocketsphinxController startRealtimeListeningWithLanguageModelAtPath:self.pathToGrammarToStartAppWith andDictionaryAtPath:self.pathToDictionaryToStartAppWith]; // Starts the rapid recognition loop.
Since the instructions say to replace all of the references to startListeningWithLanguageModelAtPath: with startRealtimeListeningWithLanguageModelAtPath:, which appears to be what you did? I’m still confused about what part of the instructions you are saying wasn’t right and I think maybe this could be related to the issue you’re experiencing.
My impression is that the plugin isn’t added to the project target, or it isn’t being imported into the class in which you are using it by following these lines from the instructions:
1. Open up ViewController.m in the editor and up at the top where the header imports are, after the line:
#import <OpenEars/PocketsphinxController.h>
add the following lines:#import <RapidEarsDemo/PocketsphinxController+RapidEars.h>
#import <RapidEarsDemo/OpenEarsEventsObserver+RapidEars.h>