Reply To: How to Initially set language model without listening?

Home Forums OpenEars plugins How to Initially set language model without listening? Reply To: How to Initially set language model without listening?

#1019019
Lann
Participant

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];