Reply To: Error loading Lookup Dictionary

Home Forums OpenEars Error loading Lookup Dictionary Reply To: Error loading Lookup Dictionary

#1029997
Powerkey
Participant

Just in case I did accidentally delete something, here is the log as-is…

2016-04-08 10:33:02.560 TalkApp[2769:807010] Starting OpenEars logging for OpenEars version 2.501 on 64-bit device (or build): iPhone running iOS version: 9.300000
2016-04-08 10:33:04.202 TalkApp[2769:807010] Starting dynamic language model generation

2016-04-08 10:33:04.293 TalkApp[2769:807010] Done creating language model with CMUCLMTK in 0.091069 seconds.
2016-04-08 10:33:04.294 TalkApp[2769:807010] Since there is no cached version, loading the language model lookup list for the acoustic model called AcousticModelEnglish
2016-04-08 10:33:04.295 TalkApp[2769:807010] Error: an attempt was made to load the lookup dictionary for the acoustic model at the path AcousticModelEnglish and it wasn't possible to complete.  This file does not appear to exist. Please ask for help in the forums and be sure to turn on all logging. An exception or unpredictable behavior should be expected now since this file is a requirement.
2016-04-08 10:33:04.298 TalkApp[2769:807010] Additionally, there was an error of Error Domain=NSCocoaErrorDomain Code=260 "The file “LanguageModelGeneratorLookupList.text” couldn’t be opened because there is no such file." UserInfo={NSFilePath=AcousticModelEnglish/LanguageModelGeneratorLookupList.text, NSUnderlyingError=0x15457add0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
2016-04-08 10:33:10.254 TalkApp[2769:807010] Creating shared instance of OEPocketsphinxController
2016-04-08 10:33:10.266 TalkApp[2769:807010] Attempting to start listening session from startListeningWithLanguageModelAtPath:
2016-04-08 10:33:10.267 TalkApp[2769:807010] Error: you have invoked the method:

startListeningWithLanguageModelAtPath:(NSString *)languageModelPath dictionaryAtPath:(NSString *)dictionaryPath acousticModelAtPath:(NSString *)acousticModelPath languageModelIsJSGF:(BOOL)languageModelIsJSGF

with a dictionaryPath which is nil. If your call to OELanguageModelGenerator did not return an error when you generated this language model or grammar, that means the correct path to your phonetic dictionary that you should pass to this method's dictionaryPath argument is as follows:

NSString *correctPathToMyPhoneticDictionaryFile = [myLanguageModelGenerator pathToSuccessfullyGeneratedDictionaryWithRequestedName:@"TheNameIChoseForMyVocabulary"];

Feel free to copy and paste this code for your path to your phonetic dictionary, but remember to replace the part that says "TheNameIChoseForMyVocabulary" with the name you actually chose for your grammar or language model or you will get this error again (and replace myLanguageModelGenerator with the name of your OELanguageModelGenerator instance). Since this file is required, expect an exception or undocumented behavior shortly.