Reply To: Mimic Pocketsphinx's handling of background noise

Home Forums OpenEars Mimic Pocketsphinx's handling of background noise Reply To: Mimic Pocketsphinx's handling of background noise

#1031838
JeroenNX
Participant

Thanks for your reply.

Language: English.

Rejecto settings/relevant code snippets:

OELanguageModelGenerator *lmGenerator = [[OELanguageModelGenerator alloc] init];
NSString *name = @"NameIWantForMyLanguageModelFiles";
NSArray *words = [NSArray arrayWithObjects:@"CAROLINE", nil];
NSError *err = [lmGenerator generateRejectingLanguageModelFromArray:words withFilesNamed:name withOptionalExclusions:nil usingVowelsOnly:FALSE withWeight:nil forAcousticModelAtPath:[OEAcousticModel pathToModel:@"AcousticModelEnglish"]];
if (err == nil)
{
    lmPath = [lmGenerator pathToSuccessfullyGeneratedLanguageModelWithRequestedName:name];
    dicPath = [lmGenerator pathToSuccessfullyGeneratedDictionaryWithRequestedName:name];
        
} else
{
    NSLog(@"Error: %@",[err localizedDescription]);
}
    
self.openEarsEventsObserver = [[OEEventsObserver alloc] init];
[self.openEarsEventsObserver setDelegate:self];
[[OEPocketsphinxController sharedInstance] setActive:TRUE error:nil];
[[OEPocketsphinxController sharedInstance] startListeningWithLanguageModelAtPath:lmPath dictionaryAtPath:dicPath acousticModelAtPath:[OEAcousticModel pathToModel:@"AcousticModelEnglish"] languageModelIsJSGF:NO];