Reply To: My LanguageModelPath is nil

Home Forums OpenEars My LanguageModelPath is nil Reply To: My LanguageModelPath is nil

#1031770
AlexMe
Participant

Hi,
here’s the log with OELogging turned on from the sample app:

2017-04-20 14:41:21.020 OpenEarsSampleApp[8007:196990] Starting OpenEars logging for OpenEars version 2.504 on 64-bit device (or build): iPhone running iOS version: 10.300000
2017-04-20 14:41:21.021 OpenEarsSampleApp[8007:196990] Creating shared instance of OEPocketsphinxController
2017-04-20 14:41:21.026 OpenEarsSampleApp[8007:196990] Starting dynamic language model generation

2017-04-20 14:41:21.036 OpenEarsSampleApp[8007:196990] Done creating language model with CMUCLMTK in 0.009271 seconds.
2017-04-20 14:41:21.036 OpenEarsSampleApp[8007:196990] Since there is no cached version, loading the language model lookup list for the acoustic model called AcousticModelEnglish
2017-04-20 14:41:21.096 OpenEarsSampleApp[8007:196990] I'm done running performDictionaryLookup and it took 0.031641 seconds
2017-04-20 14:41:21.098 OpenEarsSampleApp[8007:196990] I'm done running dynamic language model generation and it took 0.072660 seconds
2017-04-20 14:41:21.099 OpenEarsSampleApp[8007:196990] Starting dynamic language model generation

2017-04-20 14:41:21.110 OpenEarsSampleApp[8007:196990] Done creating language model with CMUCLMTK in 0.010184 seconds.
2017-04-20 14:41:21.110 OpenEarsSampleApp[8007:196990] Returning a cached version of LanguageModelGeneratorLookupList.text
2017-04-20 14:41:21.145 OpenEarsSampleApp[8007:196990] The word Quidnunc was not found in the dictionary of the acoustic model /Users/entwicklung/Library/Developer/CoreSimulator/Devices/D5E4F19E-7990-4A44-87AC-0710872F52F3/data/Containers/Bundle/Application/69ACA303-E3A0-4FE7-96BB-48DD14F7E840/OpenEarsSampleApp.app/AcousticModelEnglish.bundle. Now using the fallback method to look it up. If this is happening more frequently than you would expect, likely causes can be that you are entering words in another language from the one you are recognizing, or that there are symbols (including numbers) that need to be spelled out or cleaned up, or you are using your own acoustic model and there is an issue with either its phonetic dictionary or it lacks a g2p file. Please get in touch at the forums for assistance with the last two possible issues.
2017-04-20 14:41:21.145 OpenEarsSampleApp[8007:196990] Using convertGraphemes for the word or phrase quidnunc which doesn't appear in the dictionary
2017-04-20 14:41:21.146 OpenEarsSampleApp[8007:196990] Elapsed time to generate unknown word phonemes in English is 0.001343
2017-04-20 14:41:21.147 OpenEarsSampleApp[8007:196990] the graphemes "K W IH D N AH NG K" were created for the word Quidnunc using the fallback method.
2017-04-20 14:41:21.159 OpenEarsSampleApp[8007:196990] I'm done running performDictionaryLookup and it took 0.048424 seconds
2017-04-20 14:41:21.160 OpenEarsSampleApp[8007:196990] I'm done running dynamic language model generation and it took 0.061761 seconds
2017-04-20 14:41:21.160 OpenEarsSampleApp[8007:196990] 

Welcome to the OpenEars sample project. This project understands the words:
(
    backward,
    change,
    forward,
    go,
    left,
    model,
    right,
    turn
),
and if you say "change model" (assuming you haven't altered that trigger phrase in this sample app) it will switch to its dynamically-generated model which understands the words:
(
    Sunday,
    Monday,
    Tuesday,
    Wednesday,
    Thursday,
    Friday,
    Saturday,
    Quidnunc,
    "change model"
)
2017-04-20 14:41:21.161 OpenEarsSampleApp[8007:196990] Attempting to start listening session from startListeningWithLanguageModelAtPath:
2017-04-20 14:41:21.162 OpenEarsSampleApp[8007:196990] User gave mic permission for this app.
2017-04-20 14:41:21.162 OpenEarsSampleApp[8007:196990] setSecondsOfSilence wasn't set, using default of 0.700000.
2017-04-20 14:41:21.163 OpenEarsSampleApp[8007:197089] Starting listening.
2017-04-20 14:41:21.163 OpenEarsSampleApp[8007:197089] About to set up audio session
2017-04-20 14:41:21.164 OpenEarsSampleApp[8007:197089] Creating audio session with default settings.
2017-04-20 14:41:21.164 OpenEarsSampleApp[8007:197089] Done setting audio session category.
2017-04-20 14:41:21.164 OpenEarsSampleApp[8007:197089] Done setting preferred sample rate to 16000.000000 – now the real sample rate is 16000.000000
2017-04-20 14:41:21.165 OpenEarsSampleApp[8007:197089] Done setting preferred number of channels to 1 – now the actual input number of channels is 2
2017-04-20 14:41:21.165 OpenEarsSampleApp[8007:197089] Done setting session's preferred I/O buffer duration to 0.128000 – now the actual buffer duration is 0.128000
2017-04-20 14:41:21.165 OpenEarsSampleApp[8007:197089] Done setting up audio session
2017-04-20 14:41:21.166 OpenEarsSampleApp[8007:197089] About to set up audio IO unit in a session with a sample rate of 16000.000000, a channel number of 2 and a buffer duration of 0.128000.
2017-04-20 14:41:21.326 OpenEarsSampleApp[8007:197089] Done setting up audio unit
2017-04-20 14:41:21.326 OpenEarsSampleApp[8007:197089] About to start audio IO unit
2017-04-20 14:41:22.663 OpenEarsSampleApp[8007:197089] Done starting audio unit
2017-04-20 14:41:22.705 OpenEarsSampleApp[8007:197089] There is no CMN plist so we are using the fresh CMN value 40.000000.
2017-04-20 14:41:22.706 OpenEarsSampleApp[8007:197089] Listening.
2017-04-20 14:41:22.707 OpenEarsSampleApp[8007:197089] Project has these words or phrases in its dictionary:
backward
change
forward
go
left
model
right
turn

2017-04-20 14:41:22.707 OpenEarsSampleApp[8007:197089] Recognition loop has started
2017-04-20 14:41:22.707 OpenEarsSampleApp[8007:196990] Successfully started listening session from startListeningWithLanguageModelAtPath:
2017-04-20 14:41:22.718 OpenEarsSampleApp[8007:196990] Local callback: Pocketsphinx is now listening.
2017-04-20 14:41:22.720 OpenEarsSampleApp[8007:196990] Local callback: Pocketsphinx started.
2017-04-20 14:41:22.890 OpenEarsSampleApp[8007:197089] Speech detected...
2017-04-20 14:41:22.890 OpenEarsSampleApp[8007:196990] Local callback: Pocketsphinx has detected speech.
2017-04-20 14:41:26.988 OpenEarsSampleApp[8007:197089] End of speech detected...
2017-04-20 14:41:26.989 OpenEarsSampleApp[8007:196990] Local callback: Pocketsphinx has detected a second of silence, concluding an utterance.
2017-04-20 14:41:27.023 OpenEarsSampleApp[8007:197089] Pocketsphinx heard "go" with a score of (-172492) and an utterance ID of 0.
2017-04-20 14:41:27.024 OpenEarsSampleApp[8007:196990] Flite sending interrupt speech request.
2017-04-20 14:41:27.024 OpenEarsSampleApp[8007:196990] Local callback: The received hypothesis is go with a score of -172492 and an ID of 0
2017-04-20 14:41:27.025 OpenEarsSampleApp[8007:196990] I'm running flite
2017-04-20 14:41:27.053 OpenEarsSampleApp[8007:196990] I'm done running flite and it took 0.027457 seconds
2017-04-20 14:41:27.053 OpenEarsSampleApp[8007:196990] Flite audio player was nil when referenced so attempting to allocate a new audio player.
2017-04-20 14:41:27.054 OpenEarsSampleApp[8007:196990] Loading speech data for Flite concluded successfully.
2017-04-20 14:41:27.080 OpenEarsSampleApp[8007:196990] Flite sending suspend recognition notification.
2017-04-20 14:41:27.082 OpenEarsSampleApp[8007:196990] Local callback: Flite has started speaking
2017-04-20 14:41:27.084 OpenEarsSampleApp[8007:196990] Local callback: Pocketsphinx has suspended recognition.
2017-04-20 14:41:28.270 OpenEarsSampleApp[8007:196990] AVAudioPlayer did finish playing with success flag of 1
2017-04-20 14:41:28.422 OpenEarsSampleApp[8007:196990] Flite sending resume recognition notification.
2017-04-20 14:41:28.923 OpenEarsSampleApp[8007:196990] Local callback: Flite has finished speaking
2017-04-20 14:41:28.925 OpenEarsSampleApp[8007:196990] setSecondsOfSilence wasn't set, using default of 0.700000.
2017-04-20 14:41:28.926 OpenEarsSampleApp[8007:196990] Local callback: Pocketsphinx has resumed recognition.
2017-04-20 14:41:29.165 OpenEarsSampleApp[8007:197089] Speech detected...
2017-04-20 14:41:29.165 OpenEarsSampleApp[8007:196990] Local callback: Pocketsphinx has detected speech.
2017-04-20 14:41:34.154 OpenEarsSampleApp[8007:197089] End of speech detected...
2017-04-20 14:41:34.155 OpenEarsSampleApp[8007:196990] Local callback: Pocketsphinx has detected a second of silence, concluding an utterance.
2017-04-20 14:41:34.203 OpenEarsSampleApp[8007:197089] Pocketsphinx heard "model" with a score of (-273805) and an utterance ID of 1.
2017-04-20 14:41:34.204 OpenEarsSampleApp[8007:196990] Flite sending interrupt speech request.
2017-04-20 14:41:34.204 OpenEarsSampleApp[8007:196990] Local callback: The received hypothesis is model with a score of -273805 and an ID of 1
2017-04-20 14:41:34.205 OpenEarsSampleApp[8007:196990] I'm running flite
2017-04-20 14:41:34.272 OpenEarsSampleApp[8007:196990] I'm done running flite and it took 0.066067 seconds
2017-04-20 14:41:34.272 OpenEarsSampleApp[8007:196990] Flite audio player was nil when referenced so attempting to allocate a new audio player.
2017-04-20 14:41:34.272 OpenEarsSampleApp[8007:196990] Loading speech data for Flite concluded successfully.
2017-04-20 14:41:34.289 OpenEarsSampleApp[8007:196990] Flite sending suspend recognition notification.
2017-04-20 14:41:34.291 OpenEarsSampleApp[8007:196990] Local callback: Flite has started speaking
2017-04-20 14:41:34.292 OpenEarsSampleApp[8007:196990] Local callback: Pocketsphinx has suspended recognition.
2017-04-20 14:41:35.712 OpenEarsSampleApp[8007:196990] AVAudioPlayer did finish playing with success flag of 1
2017-04-20 14:41:35.864 OpenEarsSampleApp[8007:196990] Flite sending resume recognition notification.
2017-04-20 14:41:47.211 OpenEarsSampleApp[8007:197089] End of speech detected...
2017-04-20 14:41:47.211 OpenEarsSampleApp[8007:196990] Local callback: Pocketsphinx has detected a second of silence, concluding an utterance.
2017-04-20 14:41:47.363 OpenEarsSampleApp[8007:197089] Pocketsphinx heard "go" with a score of (-610129) and an utterance ID of 2.
2017-04-20 14:41:47.363 OpenEarsSampleApp[8007:196990] Flite sending interrupt speech request.
2017-04-20 14:41:47.364 OpenEarsSampleApp[8007:196990] Local callback: The received hypothesis is go with a score of -610129 and an ID of 2
2017-04-20 14:41:47.365 OpenEarsSampleApp[8007:196990] I'm running flite
2017-04-20 14:41:47.387 OpenEarsSampleApp[8007:196990] I'm done running flite and it took 0.022564 seconds
2017-04-20 14:41:47.388 OpenEarsSampleApp[8007:196990] Flite audio player was nil when referenced so attempting to allocate a new audio player.
2017-04-20 14:41:47.388 OpenEarsSampleApp[8007:196990] Loading speech data for Flite concluded successfully.
2017-04-20 14:41:47.408 OpenEarsSampleApp[8007:196990] Flite sending suspend recognition notification.
2017-04-20 14:41:48.360 OpenEarsSampleApp[8007:197088] Speech detected...
2017-04-20 14:41:54.493 OpenEarsSampleApp[8007:196990] AVAudioPlayer did finish playing with success flag of 1
2017-04-20 14:41:54.644 OpenEarsSampleApp[8007:196990] Local callback: Pocketsphinx has detected speech.
2017-04-20 14:41:54.646 OpenEarsSampleApp[8007:196990] Local callback: Flite has started speaking
2017-04-20 14:41:54.647 OpenEarsSampleApp[8007:196990] Flite sending resume recognition notification.
2017-04-20 14:41:54.647 OpenEarsSampleApp[8007:196990] Local callback: Pocketsphinx has suspended recognition.
2017-04-20 14:41:55.148 OpenEarsSampleApp[8007:196990] Local callback: Flite has finished speaking
2017-04-20 14:41:55.149 OpenEarsSampleApp[8007:196990] setSecondsOfSilence wasn't set, using default of 0.700000.
2017-04-20 14:41:55.150 OpenEarsSampleApp[8007:196990] Local callback: Pocketsphinx has resumed recognition.
2017-04-20 14:42:01.280 OpenEarsSampleApp[8007:197088] Speech detected...
2017-04-20 14:42:01.281 OpenEarsSampleApp[8007:196990] Local callback: Pocketsphinx has detected speech.
2017-04-20 14:42:03.332 OpenEarsSampleApp[8007:197088] End of speech detected...
2017-04-20 14:42:03.333 OpenEarsSampleApp[8007:196990] Local callback: Pocketsphinx has detected a second of silence, concluding an utterance.
2017-04-20 14:42:03.353 OpenEarsSampleApp[8007:197088] Pocketsphinx heard "" with a score of (-81394) and an utterance ID of 3.
2017-04-20 14:42:03.353 OpenEarsSampleApp[8007:197088] Hypothesis was null so we aren't returning it. If you want null hypotheses to also be returned, set OEPocketsphinxController's property returnNullHypotheses to TRUE before starting OEPocketsphinxController.
2017-04-20 14:42:03.454 OpenEarsSampleApp[8007:197088] Speech detected...
2017-04-20 14:42:03.455 OpenEarsSampleApp[8007:196990] Local callback: Pocketsphinx has detected speech.
2017-04-20 14:41:36.365 OpenEarsSampleApp[8007:196990] Local callback: Flite has finished speaking
2017-04-20 14:41:36.366 OpenEarsSampleApp[8007:196990] setSecondsOfSilence wasn't set, using default of 0.700000.
2017-04-20 14:41:36.367 OpenEarsSampleApp[8007:196990] Local callback: Pocketsphinx has resumed recognition.
2017-04-20 14:41:36.589 OpenEarsSampleApp[8007:197089] Speech detected...
2017-04-20 14:41:36.590 OpenEarsSampleApp[8007:196990] Local callback: Pocketsphinx has detected speech.