Home › Forums › OpenEars › Change vocabulary array on the fly? › Reply To: Change vocabulary array on the fly?
January 13, 2014 at 9:43 pm
#1019424
davestrand
Participant
Sure thing.. thank you SOO much for taking the time.
- (void) startListening {
[self.pocketsphinxController startListeningWithLanguageModelAtPath:self.pathToGrammarToStartAppWith dictionaryAtPath:self.pathToDictionaryToStartAppWith acousticModelAtPath:[AcousticModel pathToModel:@"AcousticModelEnglish"] languageModelIsJSGF:FALSE];
}
and in viewDidLoad..
[self startListening];
` [self.pocketsphinxController changeLanguageModelToFile:self.pathToDynamicallyGeneratedGrammar withDictionary:self.pathToDynamicallyGeneratedDictionary]; //I’M FORCING IT into our VoiceGameCorpus.txt.. eventually simplify startup language, or learn how to switch based on city/location.
self.usingStartLanguageModel = FALSE;`