My logs show that it takes 4 seconds to execute the following statement on an iPhone 4S:
[self.pocket_sphinx_controller startListeningWithLanguageModelAtPath:self.path_to_dynamic_language_model dictionaryAtPath:self.path_to_dynamic_grammar acousticModelAtPath:[AcousticModel pathToModel:@”AcousticModelEnglish”] languageModelIsJSGF:NO];
Here is how the language model was earlier initialized (if this is relevant):
NSError *error = [self.language_model_generator generateRejectingLanguageModelFromArray:languageArray
withFilesNamed:@”dynamic”
withOptionalExclusions:nil
usingVowelsOnly:FALSE
withWeight:nil
forAcousticModelAtPath:[AcousticModel pathToModel:@”AcousticModelEnglish”]];
[self.language_model_generator deliverRejectedSpeechInHypotheses:TRUE];