djfink

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)

  • Author
    Posts
  • in reply to: [Resolved] Error in implementing RuleORama #1022567
    djfink
    Participant

    Ok everything looks good, thanks for the help!

    in reply to: [Resolved] Error in implementing RuleORama #1022549
    djfink
    Participant

    Ok the project builds now, thanks for the help!

    Two things:
    1. All of the space characters in the hypothesis have been replaced with ‘#^#’
    2. It seems as if rapid ears guesses a complete statement halfway through hearing it. Is this the correct behavior? Is there some way to return only the part of the statement rapid ears has heard? Here is an extreme example I found while speaking “Greetings robot instruction go 20 left thank you”:

    2014-09-15 14:03:46.059 OpenEarsTest[2555:60b] rapidEarsDidDetectBeginningOfSpeech
    2014-09-15 14:03:48.902 OpenEarsTest[2555:60b] rapidEarsDidReceiveLiveSpeechHypothesis: GREETINGS#^#ROBOT#^#INSTRUCTION#^#MOVE#^#10#^#RIGHT
    2014-09-15 14:03:49.160 OpenEarsTest[2555:60b] rapidEarsDidReceiveLiveSpeechHypothesis: GREETINGS#^#ROBOT#^#INSTRUCTION#^#MOVE#^#10#^#LEFT
    2014-09-15 14:03:49.807 OpenEarsTest[2555:60b] rapidEarsDidReceiveLiveSpeechHypothesis: GREETINGS#^#ROBOT#^#INSTRUCTION#^#MOVE#^#10#^#LEFT#^#THANK#^#YOU
    2014-09-15 14:03:50.065 OpenEarsTest[2555:60b] rapidEarsDidReceiveLiveSpeechHypothesis: GREETINGS#^#ROBOT#^#INSTRUCTION#^#GO#^#20#^#RIGHT
    2014-09-15 14:03:50.321 OpenEarsTest[2555:60b] rapidEarsDidReceiveLiveSpeechHypothesis: GREETINGS#^#ROBOT#^#INSTRUCTION#^#GO#^#20#^#FORWARD
    2014-09-15 14:03:50.324 OpenEarsTest[2555:60b] rapidEarsDidReceiveLiveSpeechHypothesis: GREETINGS#^#ROBOT#^#INSTRUCTION#^#GO#^#20#^#LEFT
    2014-09-15 14:03:50.971 OpenEarsTest[2555:60b] rapidEarsDidReceiveLiveSpeechHypothesis: GREETINGS#^#ROBOT#^#INSTRUCTION#^#GO#^#20#^#LEFT#^#THANK#^#YOU
    2014-09-15 14:03:52.131 OpenEarsTest[2555:60b] Pocketsphinx has detected a period of silence, concluding an utterance.
    2014-09-15 14:03:52.185 OpenEarsTest[2555:60b] rapidEarsDidReceiveFinishedSpeechHypothesis: GREETINGS#^#ROBOT#^#INSTRUCTION#^#GO#^#20#^#LEFT#^#THANK#^#YOU

    in reply to: [Resolved] Error in implementing RuleORama #1022540
    djfink
    Participant

    The log is the same. Is it possible my link is wrong? Is there some simple way to check if the framework I have is up to date?

    in reply to: [Resolved] Error in implementing RuleORama #1022538
    djfink
    Participant

    I get the same error. The log looks the same to me, except the ‘s have been changed to `s. Here’s the complete log:

    2014-09-15 12:02:24.063 OpenEarsTest[2286:60b] Starting OpenEars logging for OpenEars version 1.7 on 32-bit device: iPhone running iOS version: 7.100000
    2014-09-15 12:02:24.167 OpenEarsTest[2286:60b] I’m done running performDictionaryLookup and it took 0.066763 seconds
    2014-09-15 12:02:24.215 OpenEarsTest[2286:60b] Starting dynamic language model generation
    2014-09-15 12:02:24.220 OpenEarsTest[2286:60b] Able to open /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles.corpus for reading
    2014-09-15 12:02:24.221 OpenEarsTest[2286:60b] Able to open /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles_pipe.txt for writing
    2014-09-15 12:02:24.222 OpenEarsTest[2286:60b] Starting text2wfreq_impl
    2014-09-15 12:02:24.237 OpenEarsTest[2286:60b] Done with text2wfreq_impl
    2014-09-15 12:02:24.239 OpenEarsTest[2286:60b] Able to open /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles_pipe.txt for reading.
    2014-09-15 12:02:24.241 OpenEarsTest[2286:60b] Able to open /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles.vocab for reading.
    2014-09-15 12:02:24.242 OpenEarsTest[2286:60b] Starting wfreq2vocab
    2014-09-15 12:02:24.244 OpenEarsTest[2286:60b] Done with wfreq2vocab
    2014-09-15 12:02:24.246 OpenEarsTest[2286:60b] Starting text2idngram
    2014-09-15 12:02:24.265 OpenEarsTest[2286:60b] Done with text2idngram
    2014-09-15 12:02:24.269 OpenEarsTest[2286:60b] Starting idngram2lm

    2014-09-15 12:02:24.281 OpenEarsTest[2286:60b] Done with idngram2lm
    2014-09-15 12:02:24.282 OpenEarsTest[2286:60b] Starting sphinx_lm_convert
    2014-09-15 12:02:24.285 OpenEarsTest[2286:60b] Finishing sphinx_lm_convert
    2014-09-15 12:02:24.290 OpenEarsTest[2286:60b] Done creating language model with CMUCLMTK in 0.073727 seconds.
    2014-09-15 12:02:24.295 OpenEarsTest[2286:60b] Generating fast grammar took 0.208084 seconds
    2014-09-15 12:02:24.297 OpenEarsTest[2286:60b] Starting sphinx_lm_convert
    2014-09-15 12:02:24.300 OpenEarsTest[2286:60b] Finishing sphinx_lm_convert
    2014-09-15 12:02:24.304 OpenEarsTest[2286:60b] Accuracy set to 10.
    2014-09-15 12:02:24.313 OpenEarsTest[2286:60b] User gave mic permission for this app.
    2014-09-15 12:02:24.314 OpenEarsTest[2286:60b] A sample rate was requested that isn’t one of the two supported values of 16000 or 8000 so we will use the default of 16000.
    2014-09-15 12:02:24.316 OpenEarsTest[2286:60b] The audio session has never been initialized so we will do that now.
    2014-09-15 12:02:24.317 OpenEarsTest[2286:60b] Checking and resetting all audio session settings.
    2014-09-15 12:02:24.318 OpenEarsTest[2286:60b] audioCategory is incorrect, we will change it.
    2014-09-15 12:02:24.319 OpenEarsTest[2286:60b] audioCategory is now on the correct setting of kAudioSessionCategory_PlayAndRecord.
    2014-09-15 12:02:24.320 OpenEarsTest[2286:60b] bluetoothInput is incorrect, we will change it.
    2014-09-15 12:02:24.321 OpenEarsTest[2286:60b] bluetooth input is now on the correct setting of 1.
    2014-09-15 12:02:24.323 OpenEarsTest[2286:60b] Output Device: ReceiverAndMicrophone.
    2014-09-15 12:02:24.324 OpenEarsTest[2286:60b] categoryDefaultToSpeaker is incorrect, we will change it.
    2014-09-15 12:02:24.326 OpenEarsTest[2286:60b] CategoryDefaultToSpeaker is now on the correct setting of 1.
    2014-09-15 12:02:24.327 OpenEarsTest[2286:60b] preferredBufferSize is incorrect, we will change it.
    2014-09-15 12:02:24.328 OpenEarsTest[2286:60b] PreferredBufferSize is now on the correct setting of 0.128000.
    2014-09-15 12:02:24.330 OpenEarsTest[2286:60b] preferredSampleRateCheck is incorrect, we will change it.
    2014-09-15 12:02:24.331 OpenEarsTest[2286:60b] preferred hardware sample rate is now on the correct setting of 16000.000000.
    2014-09-15 12:02:24.363 OpenEarsTest[2286:60b] AudioSessionManager startAudioSession has reached the end of the initialization.
    2014-09-15 12:02:24.366 OpenEarsTest[2286:60b] Exiting startAudioSession.
    2014-09-15 12:02:24.374 OpenEarsTest[2286:4507] setSecondsOfSilence value of 0.000000 was too large or too small or was NULL, using default of 0.700000.
    2014-09-15 12:02:24.371 OpenEarsTest[2286:3a03] Audio route has changed for the following reason:
    2014-09-15 12:02:24.377 OpenEarsTest[2286:4507] Project has these words or phrases in its dictionary:
    GREETINGS ROBOT
    GREETINGS ROBOT(2)
    HELLO COMPUTER
    HELLO COMPUTER(2)
    2014-09-15 12:02:24.379 OpenEarsTest[2286:4507] Recognition loop has started
    2014-09-15 12:02:24.376 OpenEarsTest[2286:3a03] There has been a change of category
    INFO: file_omitted(0): Parsing command line:
    \
    -lm /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles.DMP \
    -beam 1e-66 \
    -bestpath yes \
    -dict /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles.dic \
    -hmm /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/OpenEarsTest.app/AcousticModelEnglish.bundle \
    -lw 6.5 \
    -samprate 16000

    Current configuration:
    [NAME] [DEFLT] [VALUE]
    -adchdr 0 0
    -adcin no no
    -agc none none
    -agcthresh 2.0 2.000000e+00
    -align
    -alpha 0.97 9.700000e-01
    -arcdumpdir
    -ascale 20.0 2.000000e+01
    -aw 1 1
    -backtrace no no
    -beam 1e-48 1.000000e-66
    -bestpath yes yes
    -bestpathlw 9.5 9.500000e+00
    -bghist no no
    -cepdir
    -cepext .mfc .mfc
    -ceplen 13 13
    -cmn current current
    -cmninit 8.0 8.0
    -compallsen no no
    -ctl
    -ctlcount -1 -1
    -ctlincr 1 1
    -ctloffset 0 0
    -debug 0
    -dict /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles.dic
    -dictcase no no
    -dither no no
    -doublebw no no
    -ds 1 1
    -fdict
    -feat 1s_c_d_dd 1s_c_d_dd
    -featparams
    -fillprob 1e-8 1.000000e-08
    -frate 100 100
    -fsg
    -fsgusealtpron yes yes
    -fsgusefiller yes yes
    -fwdflat yes yes
    -fwdflatbeam 1e-64 1.000000e-64
    -fwdflatlw 8.5 8.500000e+00
    -fwdflatsfwin 25 25
    -fwdflatwbeam 7e-29 7.000000e-29
    -fwdtree yes yes
    -fwdtreelm
    -hmm /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/OpenEarsTest.app/AcousticModelEnglish.bundle
    -hyp
    -hypprefix
    -input_endian little little
    -jsgf
    -kdmaxbbi -1 -1
    -kdmaxdepth 0 0
    -kdtree
    -latsize 512 512
    -lda
    -ldadim 0 0
    -lextreedump 0 0
    -lifter 0 0
    -lm /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles.DMP
    -lmctl
    -lmname default default
    -logbase 1.0001 1.000100e+00
    -logfn
    -logspec no no
    -lowerf 133.33334 1.333333e+02
    -lpbeam 1e-40 1.000000e-40
    -lponlybeam 7e-29 7.000000e-29
    -lw 6.5 6.500000e+00
    -maxhmmpf -1 -1
    -maxnewoov 20 20
    -maxsilfr -1 -1
    -maxwpf 50 50
    -mdef
    -mean
    -mfclogdir
    -min_endfr 0 0
    -mixw
    -mixwfloor 0.0000001 1.000000e-07
    -mllr
    -mmap yes yes
    -ncep 13 13
    -nfft 512 512
    -nfilt 40 40
    -nwpen 1.0 1.000000e+00
    -pbeam 1e-48 1.000000e-48
    -pip 1.0 1.000000e+00
    -pl_beam 1e-10 1.000000e-10
    -pl_pbeam 1e-5 1.000000e-05
    -pl_window 0 0
    -rawlogdir
    -remove_dc no no
    -round_filters yes yes
    -samprate 16000 1.600000e+04
    -seed -1 -1
    -sendump
    -senlogdir
    -senmgau
    -silprob 0.005 5.000000e-03
    -smoothspec no no
    -svspec
    -tmat
    -tmatfloor 0.0001 1.000000e-04
    -topn 4 4
    -topn_beam 0 0
    -toprule
    -transform legacy legacy
    -unit_area yes yes
    -upperf 6855.4976 6.855498e+03
    -usewdphones no no
    -uw 1.0 1.000000e+00
    -var
    -varfloor 0.0001 1.000000e-04
    -varnorm no no
    -verbose no no
    -vm
    -warp_params
    -warp_type inverse_linear inverse_linear
    -wbeam 7e-29 7.000000e-29
    -wip 0.65 6.500000e-01
    -wlen 0.025625 2.562500e-02

    INFO: file_omitted(0): Parsing command line:
    \
    -nfilt 20 \
    -lowerf 1 \
    -upperf 4000 \
    -wlen 0.025 \
    -transform dct \
    -round_filters no \
    -remove_dc yes \
    -svspec 0-12/13-25/26-38 \
    -feat 1s_c_d_dd \
    -agc none \
    -cmn current \
    -cmninit 47 \
    -varnorm no

    Current configuration:
    [NAME] [DEFLT] [VALUE]
    -agc none none
    -agcthresh 2.0 2.000000e+00
    -alpha 0.97 9.700000e-01
    -ceplen 13 13
    -cmn current current
    -cmninit 8.0 47
    -dither no no
    -doublebw no no
    -feat 1s_c_d_dd 1s_c_d_dd
    -frate 100 100
    -input_endian little little
    -lda
    -ldadim 0 0
    -lifter 0 0
    -logspec no no
    -lowerf 133.33334 1.000000e+00
    -ncep 13 13
    -nfft 512 512
    -nfilt 40 20
    -remove_dc no yes
    -round_filters yes no
    -samprate 16000 1.600000e+04
    -seed -1 -1
    -smoothspec no no
    -svspec 0-12/13-25/26-38
    -transform legacy dct
    -unit_area yes yes
    -upperf 6855.4976 4.000000e+03
    -varnorm no no
    -verbose no no
    -warp_params
    -warp_type inverse_linear inverse_linear
    -wlen 0.025625 2.500000e-02

    INFO: file_omitted(0): Parsed model-specific feature parameters from /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/OpenEarsTest.app/AcousticModelEnglish.bundle/feat.params
    2014-09-15 12:02:24.388 OpenEarsTest[2286:3a03] The previous audio route was Speaker
    2014-09-15 12:02:24.419 OpenEarsTest[2286:3a03] This is not a case in which OpenEars performs a route change voluntarily. At the close of this function, the audio route is SpeakerAndMicrophone
    INFO: file_omitted(0): Reading HMM transition probability matrices: /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/OpenEarsTest.app/AcousticModelEnglish.bundle/transition_matrices
    INFO: file_omitted(0): Loading senones from dump file /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/OpenEarsTest.app/AcousticModelEnglish.bundle/sendump
    INFO: file_omitted(0): BEGIN FILE FORMAT DESCRIPTION
    INFO: file_omitted(0): Using memory-mapped I/O for senones
    INFO: file_omitted(0): Building PID tables for dictionary
    INFO: file_omitted(0): Allocating 50^3 * 2 bytes (244 KiB) for word-initial triphones
    INFO: file_omitted(0): Allocated 30200 bytes (29 KiB) for word-final triphones
    INFO: file_omitted(0): Allocated 30200 bytes (29 KiB) for single-phone word triphones
    ERROR: “file_omitted”, line 0: File /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles.DMP not found
    OpenEarsTest(2286,0x31d1000) malloc: *** mach_vm_map(size=4190957568) failed (error code=3)
    *** error: can’t allocate region
    *** set a breakpoint in malloc_error_break to debug
    calloc(1047739392,4) failed from_re_demo file_omitted(0)

    in reply to: [Resolved] Error in implementing RuleORama #1022521
    djfink
    Participant

    I switched all of the CanBeSaid’s to WillBeSaid’s and also tried trimming the grammar to this:

    NSDictionary *grammar = @{
    ThisWillBeSaidOnce : @[
    @{ OneOfTheseWillBeSaidOnce : @[@”HELLO COMPUTER”, @”GREETINGS ROBOT”]},
    ]
    };

    Both times I get the same error message.

    Here’s the whole dump from the grammar above:

    2014-09-14 12:02:14.711 OpenEarsTest[1711:60b] Starting OpenEars logging for OpenEars version 1.7 on 32-bit device: iPhone running iOS version: 7.100000
    2014-09-14 12:02:14.818 OpenEarsTest[1711:60b] I’m done running performDictionaryLookup and it took 0.066412 seconds
    2014-09-14 12:02:14.868 OpenEarsTest[1711:60b] Starting dynamic language model generation
    2014-09-14 12:02:14.872 OpenEarsTest[1711:60b] Able to open /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles.corpus for reading
    2014-09-14 12:02:14.874 OpenEarsTest[1711:60b] Able to open /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles_pipe.txt for writing
    2014-09-14 12:02:14.875 OpenEarsTest[1711:60b] Starting text2wfreq_impl
    2014-09-14 12:02:14.890 OpenEarsTest[1711:60b] Done with text2wfreq_impl
    2014-09-14 12:02:14.891 OpenEarsTest[1711:60b] Able to open /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles_pipe.txt for reading.
    2014-09-14 12:02:14.893 OpenEarsTest[1711:60b] Able to open /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles.vocab for reading.
    2014-09-14 12:02:14.895 OpenEarsTest[1711:60b] Starting wfreq2vocab
    2014-09-14 12:02:14.896 OpenEarsTest[1711:60b] Done with wfreq2vocab
    2014-09-14 12:02:14.898 OpenEarsTest[1711:60b] Starting text2idngram
    2014-09-14 12:02:14.914 OpenEarsTest[1711:60b] Done with text2idngram
    2014-09-14 12:02:14.918 OpenEarsTest[1711:60b] Starting idngram2lm

    2014-09-14 12:02:14.931 OpenEarsTest[1711:60b] Done with idngram2lm
    2014-09-14 12:02:14.932 OpenEarsTest[1711:60b] Starting sphinx_lm_convert
    2014-09-14 12:02:14.936 OpenEarsTest[1711:60b] Finishing sphinx_lm_convert
    2014-09-14 12:02:14.940 OpenEarsTest[1711:60b] Done creating language model with CMUCLMTK in 0.071698 seconds.
    2014-09-14 12:02:14.945 OpenEarsTest[1711:60b] Generating fast grammar took 0.206224 seconds
    2014-09-14 12:02:14.948 OpenEarsTest[1711:60b] Starting sphinx_lm_convert
    2014-09-14 12:02:14.950 OpenEarsTest[1711:60b] Finishing sphinx_lm_convert
    2014-09-14 12:02:14.954 OpenEarsTest[1711:60b] Accuracy set to 10.
    2014-09-14 12:02:14.963 OpenEarsTest[1711:60b] User gave mic permission for this app.
    2014-09-14 12:02:14.965 OpenEarsTest[1711:60b] A sample rate was requested that isn’t one of the two supported values of 16000 or 8000 so we will use the default of 16000.
    2014-09-14 12:02:14.966 OpenEarsTest[1711:60b] The audio session has never been initialized so we will do that now.
    2014-09-14 12:02:14.967 OpenEarsTest[1711:60b] Checking and resetting all audio session settings.
    2014-09-14 12:02:14.968 OpenEarsTest[1711:60b] audioCategory is incorrect, we will change it.
    2014-09-14 12:02:14.969 OpenEarsTest[1711:60b] audioCategory is now on the correct setting of kAudioSessionCategory_PlayAndRecord.
    2014-09-14 12:02:14.970 OpenEarsTest[1711:60b] bluetoothInput is incorrect, we will change it.
    2014-09-14 12:02:14.971 OpenEarsTest[1711:60b] bluetooth input is now on the correct setting of 1.
    2014-09-14 12:02:14.973 OpenEarsTest[1711:60b] Output Device: ReceiverAndMicrophone.
    2014-09-14 12:02:14.975 OpenEarsTest[1711:60b] categoryDefaultToSpeaker is incorrect, we will change it.
    2014-09-14 12:02:14.976 OpenEarsTest[1711:60b] CategoryDefaultToSpeaker is now on the correct setting of 1.
    2014-09-14 12:02:14.978 OpenEarsTest[1711:60b] preferredBufferSize is incorrect, we will change it.
    2014-09-14 12:02:14.979 OpenEarsTest[1711:60b] PreferredBufferSize is now on the correct setting of 0.128000.
    2014-09-14 12:02:14.980 OpenEarsTest[1711:60b] preferredSampleRateCheck is incorrect, we will change it.
    2014-09-14 12:02:14.981 OpenEarsTest[1711:60b] preferred hardware sample rate is now on the correct setting of 16000.000000.
    2014-09-14 12:02:15.012 OpenEarsTest[1711:60b] AudioSessionManager startAudioSession has reached the end of the initialization.
    2014-09-14 12:02:15.014 OpenEarsTest[1711:60b] Exiting startAudioSession.
    2014-09-14 12:02:15.017 OpenEarsTest[1711:3a03] Audio route has changed for the following reason:
    2014-09-14 12:02:15.021 OpenEarsTest[1711:4507] setSecondsOfSilence value of 0.000000 was too large or too small or was NULL, using default of 0.700000.
    2014-09-14 12:02:15.019 OpenEarsTest[1711:3a03] There has been a change of category
    2014-09-14 12:02:15.024 OpenEarsTest[1711:4507] Project has these words or phrases in its dictionary:
    GREETINGS ROBOT
    GREETINGS ROBOT(2)
    HELLO COMPUTER
    HELLO COMPUTER(2)
    2014-09-14 12:02:15.024 OpenEarsTest[1711:3a03] The previous audio route was Speaker
    2014-09-14 12:02:15.028 OpenEarsTest[1711:4507] Recognition loop has started
    INFO: file_omitted(0): Parsing command line:
    \
    -lm /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles.DMP \
    -beam 1e-66 \
    -bestpath yes \
    -dict /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles.dic \
    -hmm /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/OpenEarsTest.app/AcousticModelEnglish.bundle \
    -lw 6.5 \
    -samprate 16000

    Current configuration:
    [NAME] [DEFLT] [VALUE]
    -adchdr 0 0
    -adcin no no
    -agc none none
    -agcthresh 2.0 2.000000e+00
    -align
    -alpha 0.97 9.700000e-01
    -arcdumpdir
    -ascale 20.0 2.000000e+01
    -aw 1 1
    -backtrace no no
    -beam 1e-48 1.000000e-66
    -bestpath yes yes
    -bestpathlw 9.5 9.500000e+00
    -bghist no no
    -cepdir
    -cepext .mfc .mfc
    -ceplen 13 13
    -cmn current current
    -cmninit 8.0 8.0
    -compallsen no no
    -ctl
    -ctlcount -1 -1
    -ctlincr 1 1
    -ctloffset 0 0
    -debug 0
    -dict /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles.dic
    -dictcase no no
    -dither no no
    -doublebw no no
    -ds 1 1
    -fdict
    -feat 1s_c_d_dd 1s_c_d_dd
    -featparams
    -fillprob 1e-8 1.000000e-08
    -frate 100 100
    -fsg
    -fsgusealtpron yes yes
    -fsgusefiller yes yes
    -fwdflat yes yes
    -fwdflatbeam 1e-64 1.000000e-64
    -fwdflatlw 8.5 8.500000e+00
    -fwdflatsfwin 25 25
    -fwdflatwbeam 7e-29 7.000000e-29
    -fwdtree yes yes
    -fwdtreelm
    -hmm /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/OpenEarsTest.app/AcousticModelEnglish.bundle
    -hyp
    -hypprefix
    -input_endian little little
    -jsgf
    -kdmaxbbi -1 -1
    -kdmaxdepth 0 0
    -kdtree
    -latsize 512 512
    -lda
    -ldadim 0 0
    -lextreedump 0 0
    -lifter 0 0
    -lm /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles.DMP
    -lmctl
    -lmname default default
    -logbase 1.0001 1.000100e+00
    -logfn
    -logspec no no
    -lowerf 133.33334 1.333333e+02
    -lpbeam 1e-40 1.000000e-40
    -lponlybeam 7e-29 7.000000e-29
    -lw 6.5 6.500000e+00
    -maxhmmpf -1 -1
    -maxnewoov 20 20
    -maxsilfr -1 -1
    -maxwpf 50 50
    -mdef
    -mean
    -mfclogdir
    -min_endfr 0 0
    -mixw
    -mixwfloor 0.0000001 1.000000e-07
    -mllr
    -mmap yes yes
    -ncep 13 13
    -nfft 512 512
    -nfilt 40 40
    -nwpen 1.0 1.000000e+00
    -pbeam 1e-48 1.000000e-48
    -pip 1.0 1.000000e+00
    -pl_beam 1e-10 1.000000e-10
    -pl_pbeam 1e-5 1.000000e-05
    -pl_window 0 0
    -rawlogdir
    -remove_dc no no
    -round_filters yes yes
    -samprate 16000 1.600000e+04
    -seed -1 -1
    -sendump
    -senlogdir
    -senmgau
    -silprob 0.005 5.000000e-03
    -smoothspec no no
    -svspec
    -tmat
    -tmatfloor 0.0001 1.000000e-04
    -topn 4 4
    -topn_beam 0 0
    -toprule
    -transform legacy legacy
    -unit_area yes yes
    -upperf 6855.4976 6.855498e+03
    -usewdphones no no
    -uw 1.0 1.000000e+00
    -var
    -varfloor 0.0001 1.000000e-04
    -varnorm no no
    -verbose no no
    -vm
    -warp_params
    -warp_type inverse_linear inverse_linear
    -wbeam 7e-29 7.000000e-29
    -wip 0.65 6.500000e-01
    -wlen 0.025625 2.562500e-02

    INFO: file_omitted(0): Parsing command line:
    \
    -nfilt 20 \
    -lowerf 1 \
    -upperf 4000 \
    -wlen 0.025 \
    -transform dct \
    -round_filters no \
    -remove_dc yes \
    -svspec 0-12/13-25/26-38 \
    -feat 1s_c_d_dd \
    -agc none \
    -cmn current \
    -cmninit 47 \
    -varnorm no

    Current configuration:
    [NAME] [DEFLT] [VALUE]
    -agc none none
    -agcthresh 2.0 2.000000e+00
    -alpha 0.97 9.700000e-01
    -ceplen 13 13
    -cmn current current
    -cmninit 8.0 47
    -dither no no
    -doublebw no no
    -feat 1s_c_d_dd 1s_c_d_dd
    -frate 100 100
    -input_endian little little
    -lda
    -ldadim 0 0
    -lifter 0 0
    -logspec no no
    -lowerf 133.33334 1.000000e+00
    -ncep 13 13
    -nfft 512 512
    -nfilt 40 20
    -remove_dc no yes
    -round_filters yes no
    -samprate 16000 1.600000e+04
    -seed -1 -1
    -smoothspec no no
    -svspec 0-12/13-25/26-38
    -transform legacy dct
    -unit_area yes yes
    -upperf 6855.4976 4.000000e+03
    -varnorm no no
    -verbose no no
    -warp_params
    -warp_type inverse_linear inverse_linear
    -wlen 0.025625 2.500000e-02

    INFO: file_omitted(0): Parsed model-specific feature parameters from /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/OpenEarsTest.app/AcousticModelEnglish.bundle/feat.params
    2014-09-14 12:02:15.033 OpenEarsTest[1711:3a03] This is not a case in which OpenEars performs a route change voluntarily. At the close of this function, the audio route is SpeakerAndMicrophone
    INFO: file_omitted(0): Reading HMM transition probability matrices: /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/OpenEarsTest.app/AcousticModelEnglish.bundle/transition_matrices
    INFO: file_omitted(0): Loading senones from dump file /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/OpenEarsTest.app/AcousticModelEnglish.bundle/sendump
    INFO: file_omitted(0): BEGIN FILE FORMAT DESCRIPTION
    INFO: file_omitted(0): Using memory-mapped I/O for senones
    INFO: file_omitted(0): Building PID tables for dictionary
    INFO: file_omitted(0): Allocating 50^3 * 2 bytes (244 KiB) for word-initial triphones
    INFO: file_omitted(0): Allocated 30200 bytes (29 KiB) for word-final triphones
    INFO: file_omitted(0): Allocated 30200 bytes (29 KiB) for single-phone word triphones
    ERROR: “file_omitted”, line 0: File /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles.DMP not found
    OpenEarsTest(1711,0x313a000) malloc: *** mach_vm_map(size=4190957568) failed (error code=3)
    *** error: can’t allocate region
    *** set a breakpoint in malloc_error_break to debug
    calloc(1047739392,4) failed from_re_demo file_omitted(0)

    in reply to: [Resolved] Error in implementing RuleORama #1022517
    djfink
    Participant

    Sure thing, here’s the new output:

    2014-09-13 16:22:02.291 OpenEarsTest[1289:60b] Starting OpenEars logging for OpenEars version 1.7 on 32-bit device: iPhone running iOS version: 7.100000
    2014-09-13 16:22:02.465 OpenEarsTest[1289:60b] The word 10 was not found in the dictionary /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/OpenEarsTest.app/AcousticModelEnglish.bundle/LanguageModelGeneratorLookupList.text/LanguageModelGeneratorLookupList.text.
    2014-09-13 16:22:02.467 OpenEarsTest[1289:60b] Now using the fallback method to look up the word 10
    2014-09-13 16:22:02.468 OpenEarsTest[1289:60b] If this is happening more frequently than you would expect, the most likely cause for it is since you are using the English phonetic lookup dictionary is that your words are not in English or aren’t dictionary words, or that you are submitting the words in lowercase when they need to be entirely written in uppercase.
    2014-09-13 16:22:02.474 OpenEarsTest[1289:60b] Using convertGraphemes for the word or phrase 10 which doesn’t appear in the dictionary
    2014-09-13 16:22:02.579 OpenEarsTest[1289:60b] The word 20 was not found in the dictionary /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/OpenEarsTest.app/AcousticModelEnglish.bundle/LanguageModelGeneratorLookupList.text/LanguageModelGeneratorLookupList.text.
    2014-09-13 16:22:02.581 OpenEarsTest[1289:60b] Now using the fallback method to look up the word 20
    2014-09-13 16:22:02.582 OpenEarsTest[1289:60b] If this is happening more frequently than you would expect, the most likely cause for it is since you are using the English phonetic lookup dictionary is that your words are not in English or aren’t dictionary words, or that you are submitting the words in lowercase when they need to be entirely written in uppercase.
    2014-09-13 16:22:02.584 OpenEarsTest[1289:60b] Using convertGraphemes for the word or phrase 20 which doesn’t appear in the dictionary
    2014-09-13 16:22:02.678 OpenEarsTest[1289:60b] The word 30 was not found in the dictionary /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/OpenEarsTest.app/AcousticModelEnglish.bundle/LanguageModelGeneratorLookupList.text/LanguageModelGeneratorLookupList.text.
    2014-09-13 16:22:02.679 OpenEarsTest[1289:60b] Now using the fallback method to look up the word 30
    2014-09-13 16:22:02.681 OpenEarsTest[1289:60b] If this is happening more frequently than you would expect, the most likely cause for it is since you are using the English phonetic lookup dictionary is that your words are not in English or aren’t dictionary words, or that you are submitting the words in lowercase when they need to be entirely written in uppercase.
    2014-09-13 16:22:02.682 OpenEarsTest[1289:60b] Using convertGraphemes for the word or phrase 30 which doesn’t appear in the dictionary
    2014-09-13 16:22:02.776 OpenEarsTest[1289:60b] I’m done running performDictionaryLookup and it took 0.393348 seconds
    2014-09-13 16:22:03.015 OpenEarsTest[1289:60b] Starting dynamic language model generation
    2014-09-13 16:22:03.021 OpenEarsTest[1289:60b] Able to open /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles.corpus for reading
    2014-09-13 16:22:03.023 OpenEarsTest[1289:60b] Able to open /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles_pipe.txt for writing
    2014-09-13 16:22:03.024 OpenEarsTest[1289:60b] Starting text2wfreq_impl
    2014-09-13 16:22:03.042 OpenEarsTest[1289:60b] Done with text2wfreq_impl
    2014-09-13 16:22:03.043 OpenEarsTest[1289:60b] Able to open /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles_pipe.txt for reading.
    2014-09-13 16:22:03.045 OpenEarsTest[1289:60b] Able to open /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles.vocab for reading.
    2014-09-13 16:22:03.046 OpenEarsTest[1289:60b] Starting wfreq2vocab
    2014-09-13 16:22:03.050 OpenEarsTest[1289:60b] Done with wfreq2vocab
    2014-09-13 16:22:03.052 OpenEarsTest[1289:60b] Starting text2idngram
    2014-09-13 16:22:03.072 OpenEarsTest[1289:60b] Done with text2idngram
    2014-09-13 16:22:03.080 OpenEarsTest[1289:60b] Starting idngram2lm

    2014-09-13 16:22:03.097 OpenEarsTest[1289:60b] Done with idngram2lm
    2014-09-13 16:22:03.099 OpenEarsTest[1289:60b] Starting sphinx_lm_convert
    2014-09-13 16:22:03.106 OpenEarsTest[1289:60b] Finishing sphinx_lm_convert
    2014-09-13 16:22:03.112 OpenEarsTest[1289:60b] Done creating language model with CMUCLMTK in 0.096545 seconds.
    2014-09-13 16:22:03.128 OpenEarsTest[1289:60b] Generating fast grammar took 0.806542 seconds
    2014-09-13 16:22:03.130 OpenEarsTest[1289:60b] Starting sphinx_lm_convert
    2014-09-13 16:22:03.135 OpenEarsTest[1289:60b] Finishing sphinx_lm_convert
    2014-09-13 16:22:03.138 OpenEarsTest[1289:60b] Accuracy set to 10.
    2014-09-13 16:22:03.147 OpenEarsTest[1289:60b] User gave mic permission for this app.
    2014-09-13 16:22:03.149 OpenEarsTest[1289:60b] A sample rate was requested that isn’t one of the two supported values of 16000 or 8000 so we will use the default of 16000.
    2014-09-13 16:22:03.150 OpenEarsTest[1289:60b] The audio session has never been initialized so we will do that now.
    2014-09-13 16:22:03.151 OpenEarsTest[1289:60b] Checking and resetting all audio session settings.
    2014-09-13 16:22:03.153 OpenEarsTest[1289:60b] audioCategory is incorrect, we will change it.
    2014-09-13 16:22:03.154 OpenEarsTest[1289:60b] audioCategory is now on the correct setting of kAudioSessionCategory_PlayAndRecord.
    2014-09-13 16:22:03.155 OpenEarsTest[1289:60b] bluetoothInput is incorrect, we will change it.
    2014-09-13 16:22:03.156 OpenEarsTest[1289:60b] bluetooth input is now on the correct setting of 1.
    2014-09-13 16:22:03.158 OpenEarsTest[1289:60b] Output Device: ReceiverAndMicrophone.
    2014-09-13 16:22:03.160 OpenEarsTest[1289:60b] categoryDefaultToSpeaker is incorrect, we will change it.
    2014-09-13 16:22:03.161 OpenEarsTest[1289:60b] CategoryDefaultToSpeaker is now on the correct setting of 1.
    2014-09-13 16:22:03.162 OpenEarsTest[1289:60b] preferredBufferSize is incorrect, we will change it.
    2014-09-13 16:22:03.163 OpenEarsTest[1289:60b] PreferredBufferSize is now on the correct setting of 0.128000.
    2014-09-13 16:22:03.165 OpenEarsTest[1289:60b] preferredSampleRateCheck is incorrect, we will change it.
    2014-09-13 16:22:03.166 OpenEarsTest[1289:60b] preferred hardware sample rate is now on the correct setting of 16000.000000.
    2014-09-13 16:22:03.197 OpenEarsTest[1289:60b] AudioSessionManager startAudioSession has reached the end of the initialization.
    2014-09-13 16:22:03.199 OpenEarsTest[1289:60b] Exiting startAudioSession.
    2014-09-13 16:22:03.205 OpenEarsTest[1289:4507] setSecondsOfSilence value of 0.000000 was too large or too small or was NULL, using default of 0.700000.
    2014-09-13 16:22:03.203 OpenEarsTest[1289:3a03] Audio route has changed for the following reason:
    2014-09-13 16:22:03.217 OpenEarsTest[1289:4507] Project has these words or phrases in its dictionary:
    DO THE FOLLOWING GO 10 FORWARD
    DO THE FOLLOWING GO 10 FORWARD(2)
    DO THE FOLLOWING GO 10 FORWARD THANK YOU
    DO THE FOLLOWING GO 10 FORWARD THANK YOU(2)
    DO THE FOLLOWING GO 10 LEFT
    DO THE FOLLOWING GO 10 LEFT(2)
    DO THE FOLLOWING GO 10 LEFT THANK YOU
    DO THE FOLLOWING GO 10 LEFT THANK YOU(2)
    DO THE FOLLOWING GO 10 RIGHT
    DO THE FOLLOWING GO 10 RIGHT(2)
    DO THE FOLLOWING GO 10 RIGHT THANK YOU
    DO THE FOLLOWING GO 10 RIGHT THANK YOU(2)
    DO THE FOLLOWING GO 20 FORWARD
    DO THE FOLLOWING GO 20 FORWARD(2)
    DO THE FOLLOWING GO 20 FORWARD THANK YOU
    DO THE FOLLOWING GO 20 FORWARD THANK YOU(2)
    DO THE FOLLOWING GO 20 LEFT
    DO THE FOLLOWING GO 20 LEFT(2)
    DO THE FOLLOWING GO 20 LEFT THANK YOU
    DO THE FOLLOWING GO 20 LEFT THANK YOU(2)
    DO THE FOLLOWING GO 20 RIGHT
    DO THE FOLLOWING GO 20 RIGHT(2)
    DO THE FOLLOWING GO 20 RIGHT THANK YOU
    DO THE FOLLOWING GO 20 RIGHT THANK YOU(2)
    DO THE FOLLOWING GO 30 FORWARD
    DO THE FOLLOWING GO 30 FORWARD(2)
    DO THE FOLLOWING GO 30 FORWARD THANK YOU
    DO THE FOLLOWING GO 30 FORWARD THANK YOU(2)
    DO THE FOLLOWING GO 30 LEFT
    DO THE FOLLOWING GO 30 LEFT(2)
    DO THE FOLLOWING GO 30 LEFT THANK YOU
    …and 510 more.
    2014-09-13 16:22:03.207 OpenEarsTest[1289:3a03] There has been a change of category
    2014-09-13 16:22:03.236 OpenEarsTest[1289:3a03] The previous audio route was Speaker
    2014-09-13 16:22:03.231 OpenEarsTest[1289:4507] Recognition loop has started
    2014-09-13 16:22:03.248 OpenEarsTest[1289:3a03] This is not a case in which OpenEars performs a route change voluntarily. At the close of this function, the audio route is SpeakerAndMicrophone
    INFO: file_omitted(0): Parsing command line:
    \
    -lm /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles.DMP \
    -beam 1e-66 \
    -bestpath yes \
    -dict /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles.dic \
    -hmm /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/OpenEarsTest.app/AcousticModelEnglish.bundle \
    -lw 6.5 \
    -samprate 16000

    Current configuration:
    [NAME] [DEFLT] [VALUE]
    -adchdr 0 0
    -adcin no no
    -agc none none
    -agcthresh 2.0 2.000000e+00
    -align
    -alpha 0.97 9.700000e-01
    -arcdumpdir
    -ascale 20.0 2.000000e+01
    -aw 1 1
    -backtrace no no
    -beam 1e-48 1.000000e-66
    -bestpath yes yes
    -bestpathlw 9.5 9.500000e+00
    -bghist no no
    -cepdir
    -cepext .mfc .mfc
    -ceplen 13 13
    -cmn current current
    -cmninit 8.0 8.0
    -compallsen no no
    -ctl
    -ctlcount -1 -1
    -ctlincr 1 1
    -ctloffset 0 0
    -debug 0
    -dict /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles.dic
    -dictcase no no
    -dither no no
    -doublebw no no
    -ds 1 1
    -fdict
    -feat 1s_c_d_dd 1s_c_d_dd
    -featparams
    -fillprob 1e-8 1.000000e-08
    -frate 100 100
    -fsg
    -fsgusealtpron yes yes
    -fsgusefiller yes yes
    -fwdflat yes yes
    -fwdflatbeam 1e-64 1.000000e-64
    -fwdflatlw 8.5 8.500000e+00
    -fwdflatsfwin 25 25
    -fwdflatwbeam 7e-29 7.000000e-29
    -fwdtree yes yes
    -fwdtreelm
    -hmm /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/OpenEarsTest.app/AcousticModelEnglish.bundle
    -hyp
    -hypprefix
    -input_endian little little
    -jsgf
    -kdmaxbbi -1 -1
    -kdmaxdepth 0 0
    -kdtree
    -latsize 512 512
    -lda
    -ldadim 0 0
    -lextreedump 0 0
    -lifter 0 0
    -lm /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles.DMP
    -lmctl
    -lmname default default
    -logbase 1.0001 1.000100e+00
    -logfn
    -logspec no no
    -lowerf 133.33334 1.333333e+02
    -lpbeam 1e-40 1.000000e-40
    -lponlybeam 7e-29 7.000000e-29
    -lw 6.5 6.500000e+00
    -maxhmmpf -1 -1
    -maxnewoov 20 20
    -maxsilfr -1 -1
    -maxwpf 50 50
    -mdef
    -mean
    -mfclogdir
    -min_endfr 0 0
    -mixw
    -mixwfloor 0.0000001 1.000000e-07
    -mllr
    -mmap yes yes
    -ncep 13 13
    -nfft 512 512
    -nfilt 40 40
    -nwpen 1.0 1.000000e+00
    -pbeam 1e-48 1.000000e-48
    -pip 1.0 1.000000e+00
    -pl_beam 1e-10 1.000000e-10
    -pl_pbeam 1e-5 1.000000e-05
    -pl_window 0 0
    -rawlogdir
    -remove_dc no no
    -round_filters yes yes
    -samprate 16000 1.600000e+04
    -seed -1 -1
    -sendump
    -senlogdir
    -senmgau
    -silprob 0.005 5.000000e-03
    -smoothspec no no
    -svspec
    -tmat
    -tmatfloor 0.0001 1.000000e-04
    -topn 4 4
    -topn_beam 0 0
    -toprule
    -transform legacy legacy
    -unit_area yes yes
    -upperf 6855.4976 6.855498e+03
    -usewdphones no no
    -uw 1.0 1.000000e+00
    -var
    -varfloor 0.0001 1.000000e-04
    -varnorm no no
    -verbose no no
    -vm
    -warp_params
    -warp_type inverse_linear inverse_linear
    -wbeam 7e-29 7.000000e-29
    -wip 0.65 6.500000e-01
    -wlen 0.025625 2.562500e-02

    INFO: file_omitted(0): Parsing command line:
    \
    -nfilt 20 \
    -lowerf 1 \
    -upperf 4000 \
    -wlen 0.025 \
    -transform dct \
    -round_filters no \
    -remove_dc yes \
    -svspec 0-12/13-25/26-38 \
    -feat 1s_c_d_dd \
    -agc none \
    -cmn current \
    -cmninit 47 \
    -varnorm no

    Current configuration:
    [NAME] [DEFLT] [VALUE]
    -agc none none
    -agcthresh 2.0 2.000000e+00
    -alpha 0.97 9.700000e-01
    -ceplen 13 13
    -cmn current current
    -cmninit 8.0 47
    -dither no no
    -doublebw no no
    -feat 1s_c_d_dd 1s_c_d_dd
    -frate 100 100
    -input_endian little little
    -lda
    -ldadim 0 0
    -lifter 0 0
    -logspec no no
    -lowerf 133.33334 1.000000e+00
    -ncep 13 13
    -nfft 512 512
    -nfilt 40 20
    -remove_dc no yes
    -round_filters yes no
    -samprate 16000 1.600000e+04
    -seed -1 -1
    -smoothspec no no
    -svspec 0-12/13-25/26-38
    -transform legacy dct
    -unit_area yes yes
    -upperf 6855.4976 4.000000e+03
    -varnorm no no
    -verbose no no
    -warp_params
    -warp_type inverse_linear inverse_linear
    -wlen 0.025625 2.500000e-02

    INFO: file_omitted(0): Parsed model-specific feature parameters from /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/OpenEarsTest.app/AcousticModelEnglish.bundle/feat.params
    INFO: file_omitted(0): Reading HMM transition probability matrices: /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/OpenEarsTest.app/AcousticModelEnglish.bundle/transition_matrices
    INFO: file_omitted(0): Loading senones from dump file /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/OpenEarsTest.app/AcousticModelEnglish.bundle/sendump
    INFO: file_omitted(0): BEGIN FILE FORMAT DESCRIPTION
    INFO: file_omitted(0): Using memory-mapped I/O for senones
    INFO: file_omitted(0): Building PID tables for dictionary
    INFO: file_omitted(0): Allocating 50^3 * 2 bytes (244 KiB) for word-initial triphones
    INFO: file_omitted(0): Allocated 30200 bytes (29 KiB) for word-final triphones
    INFO: file_omitted(0): Allocated 30200 bytes (29 KiB) for single-phone word triphones
    ERROR: “file_omitted”, line 0: File /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles.DMP not found
    OpenEarsTest(1289,0x31b4000) malloc: *** mach_vm_map(size=4190957568) failed (error code=3)
    *** error: can’t allocate region
    *** set a breakpoint in malloc_error_break to debug
    calloc(1047739392,4) failed from_re_demo file_omitted(0)

    in reply to: [Resolved] Error in implementing RuleORama #1022515
    djfink
    Participant

    Hello!

    I am having the exact same problem when combining RapidEars with Rule-O-Rama. I’ve implemented the demo pretty much verbatim, here’s my viewDidLoad method:

    ###########################################################################

    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.

    [OpenEarsLogging startOpenEarsLogging];

    self.lmGenerator = [[LanguageModelGenerator alloc] init];

    NSString *name = @”NameIWantForMyLanguageModelFiles”;

    NSDictionary *grammar = @{
    ThisWillBeSaidOnce : @[
    @{ OneOfTheseCanBeSaidOnce : @[@”HELLO COMPUTER”, @”GREETINGS ROBOT”]},
    @{ OneOfTheseWillBeSaidOnce : @[@”DO THE FOLLOWING”, @”INSTRUCTION”]},
    @{ OneOfTheseWillBeSaidOnce : @[@”GO”, @”MOVE”]},
    @{ThisWillBeSaidOnce : @[
    @{ OneOfTheseWillBeSaidOnce : @[@”10″, @”20″,@”30″]},
    @{ OneOfTheseWillBeSaidOnce : @[@”LEFT”, @”RIGHT”, @”FORWARD”]}
    ]},
    @{ ThisCanBeSaidOnce : @[@”THANK YOU”]}
    ]
    };

    NSError *err = [self.lmGenerator generateFastGrammarFromDictionary:grammar withFilesNamed:name forAcousticModelAtPath:[AcousticModel pathToModel:@”AcousticModelEnglish”]];

    NSDictionary *languageGeneratorResults = nil;

    NSString *lmPath = nil;
    NSString *dicPath = nil;

    if([err code] == noErr) {

    languageGeneratorResults = [err userInfo];

    lmPath = [languageGeneratorResults objectForKey:@”LMPath”];
    dicPath = [languageGeneratorResults objectForKey:@”DictionaryPath”];

    } else {
    NSLog(@”Error: %@”,[err localizedDescription]);
    }

    self.openEarsEventObserver = [[OpenEarsEventsObserver alloc] init];
    [self.openEarsEventObserver setDelegate:self];

    self.pocketsphinxController = [[PocketsphinxController alloc] init];

    [self.pocketsphinxController setRapidEarsToVerbose:FALSE];
    [self.pocketsphinxController setRapidEarsAccuracy:10];
    [self.pocketsphinxController setFinalizeHypothesis:TRUE];
    [self.pocketsphinxController setFasterPartials:TRUE];
    [self.pocketsphinxController setFasterFinals:FALSE];

    [self.pocketsphinxController setVerbosePocketSphinx:TRUE];

    [self.pocketsphinxController startRealtimeListeningWithLanguageModelAtPath:lmPath dictionaryAtPath:dicPath acousticModelAtPath:[AcousticModel pathToModel:@”AcousticModelEnglish”]];

    ###########################################################################

    And here is the output with OpenEarsLogging and pocketsphinxControllerVerbose both on:

    ###########################################################################

    2014-09-13 16:03:22.826 OpenEarsTest[1248:60b] Starting OpenEars logging for OpenEars version 1.7 on 32-bit device: iPhone running iOS version: 7.100000
    2014-09-13 16:03:22.981 OpenEarsTest[1248:60b] The word 10 was not found in the dictionary /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/OpenEarsTest.app/AcousticModelEnglish.bundle/LanguageModelGeneratorLookupList.text/LanguageModelGeneratorLookupList.text.
    2014-09-13 16:03:22.982 OpenEarsTest[1248:60b] Now using the fallback method to look up the word 10
    2014-09-13 16:03:22.983 OpenEarsTest[1248:60b] If this is happening more frequently than you would expect, the most likely cause for it is since you are using the English phonetic lookup dictionary is that your words are not in English or aren’t dictionary words, or that you are submitting the words in lowercase when they need to be entirely written in uppercase.
    2014-09-13 16:03:22.989 OpenEarsTest[1248:60b] Using convertGraphemes for the word or phrase 10 which doesn’t appear in the dictionary
    2014-09-13 16:03:23.094 OpenEarsTest[1248:60b] The word 20 was not found in the dictionary /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/OpenEarsTest.app/AcousticModelEnglish.bundle/LanguageModelGeneratorLookupList.text/LanguageModelGeneratorLookupList.text.
    2014-09-13 16:03:23.095 OpenEarsTest[1248:60b] Now using the fallback method to look up the word 20
    2014-09-13 16:03:23.096 OpenEarsTest[1248:60b] If this is happening more frequently than you would expect, the most likely cause for it is since you are using the English phonetic lookup dictionary is that your words are not in English or aren’t dictionary words, or that you are submitting the words in lowercase when they need to be entirely written in uppercase.
    2014-09-13 16:03:23.098 OpenEarsTest[1248:60b] Using convertGraphemes for the word or phrase 20 which doesn’t appear in the dictionary
    2014-09-13 16:03:23.192 OpenEarsTest[1248:60b] The word 30 was not found in the dictionary /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/OpenEarsTest.app/AcousticModelEnglish.bundle/LanguageModelGeneratorLookupList.text/LanguageModelGeneratorLookupList.text.
    2014-09-13 16:03:23.194 OpenEarsTest[1248:60b] Now using the fallback method to look up the word 30
    2014-09-13 16:03:23.195 OpenEarsTest[1248:60b] If this is happening more frequently than you would expect, the most likely cause for it is since you are using the English phonetic lookup dictionary is that your words are not in English or aren’t dictionary words, or that you are submitting the words in lowercase when they need to be entirely written in uppercase.
    2014-09-13 16:03:23.196 OpenEarsTest[1248:60b] Using convertGraphemes for the word or phrase 30 which doesn’t appear in the dictionary
    2014-09-13 16:03:23.290 OpenEarsTest[1248:60b] I’m done running performDictionaryLookup and it took 0.388514 seconds
    2014-09-13 16:03:23.527 OpenEarsTest[1248:60b] Starting dynamic language model generation
    2014-09-13 16:03:23.533 OpenEarsTest[1248:60b] Able to open /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles.corpus for reading
    2014-09-13 16:03:23.535 OpenEarsTest[1248:60b] Able to open /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles_pipe.txt for writing
    2014-09-13 16:03:23.536 OpenEarsTest[1248:60b] Starting text2wfreq_impl
    2014-09-13 16:03:23.554 OpenEarsTest[1248:60b] Done with text2wfreq_impl
    2014-09-13 16:03:23.556 OpenEarsTest[1248:60b] Able to open /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles_pipe.txt for reading.
    2014-09-13 16:03:23.558 OpenEarsTest[1248:60b] Able to open /var/mobile/Applications/93425C65-62E1-4DA3-B72A-CB896693720E/Library/Caches/NameIWantForMyLanguageModelFiles.vocab for reading.
    2014-09-13 16:03:23.559 OpenEarsTest[1248:60b] Starting wfreq2vocab
    2014-09-13 16:03:23.563 OpenEarsTest[1248:60b] Done with wfreq2vocab
    2014-09-13 16:03:23.565 OpenEarsTest[1248:60b] Starting text2idngram
    2014-09-13 16:03:23.585 OpenEarsTest[1248:60b] Done with text2idngram
    2014-09-13 16:03:23.592 OpenEarsTest[1248:60b] Starting idngram2lm

    2014-09-13 16:03:23.610 OpenEarsTest[1248:60b] Done with idngram2lm
    2014-09-13 16:03:23.611 OpenEarsTest[1248:60b] Starting sphinx_lm_convert
    2014-09-13 16:03:23.618 OpenEarsTest[1248:60b] Finishing sphinx_lm_convert
    2014-09-13 16:03:23.624 OpenEarsTest[1248:60b] Done creating language model with CMUCLMTK in 0.096605 seconds.
    2014-09-13 16:03:23.640 OpenEarsTest[1248:60b] Generating fast grammar took 0.784263 seconds
    2014-09-13 16:03:23.642 OpenEarsTest[1248:60b] Starting sphinx_lm_convert
    2014-09-13 16:03:23.648 OpenEarsTest[1248:60b] Finishing sphinx_lm_convert
    2014-09-13 16:03:23.651 OpenEarsTest[1248:60b] Accuracy set to 10.
    2014-09-13 16:03:23.661 OpenEarsTest[1248:60b] User gave mic permission for this app.
    2014-09-13 16:03:23.663 OpenEarsTest[1248:60b] A sample rate was requested that isn’t one of the two supported values of 16000 or 8000 so we will use the default of 16000.
    2014-09-13 16:03:23.664 OpenEarsTest[1248:60b] The audio session has never been initialized so we will do that now.
    2014-09-13 16:03:23.665 OpenEarsTest[1248:60b] Checking and resetting all audio session settings.
    2014-09-13 16:03:23.666 OpenEarsTest[1248:60b] audioCategory is incorrect, we will change it.
    2014-09-13 16:03:23.667 OpenEarsTest[1248:60b] audioCategory is now on the correct setting of kAudioSessionCategory_PlayAndRecord.
    2014-09-13 16:03:23.668 OpenEarsTest[1248:60b] bluetoothInput is incorrect, we will change it.
    2014-09-13 16:03:23.669 OpenEarsTest[1248:60b] bluetooth input is now on the correct setting of 1.
    2014-09-13 16:03:23.671 OpenEarsTest[1248:60b] Output Device: ReceiverAndMicrophone.
    2014-09-13 16:03:23.673 OpenEarsTest[1248:60b] categoryDefaultToSpeaker is incorrect, we will change it.
    2014-09-13 16:03:23.674 OpenEarsTest[1248:60b] CategoryDefaultToSpeaker is now on the correct setting of 1.
    2014-09-13 16:03:23.675 OpenEarsTest[1248:60b] preferredBufferSize is incorrect, we will change it.
    2014-09-13 16:03:23.676 OpenEarsTest[1248:60b] PreferredBufferSize is now on the correct setting of 0.128000.
    2014-09-13 16:03:23.678 OpenEarsTest[1248:60b] preferredSampleRateCheck is incorrect, we will change it.
    2014-09-13 16:03:23.679 OpenEarsTest[1248:60b] preferred hardware sample rate is now on the correct setting of 16000.000000.
    2014-09-13 16:03:23.708 OpenEarsTest[1248:60b] AudioSessionManager startAudioSession has reached the end of the initialization.
    2014-09-13 16:03:23.709 OpenEarsTest[1248:60b] Exiting startAudioSession.
    2014-09-13 16:03:23.713 OpenEarsTest[1248:4507] setSecondsOfSilence value of 0.000000 was too large or too small or was NULL, using default of 0.700000.
    2014-09-13 16:03:23.727 OpenEarsTest[1248:4507] Project has these words or phrases in its dictionary:
    DO THE FOLLOWING GO 10 FORWARD
    DO THE FOLLOWING GO 10 FORWARD(2)
    DO THE FOLLOWING GO 10 FORWARD THANK YOU
    DO THE FOLLOWING GO 10 FORWARD THANK YOU(2)
    DO THE FOLLOWING GO 10 LEFT
    DO THE FOLLOWING GO 10 LEFT(2)
    DO THE FOLLOWING GO 10 LEFT THANK YOU
    DO THE FOLLOWING GO 10 LEFT THANK YOU(2)
    DO THE FOLLOWING GO 10 RIGHT
    DO THE FOLLOWING GO 10 RIGHT(2)
    DO THE FOLLOWING GO 10 RIGHT THANK YOU
    DO THE FOLLOWING GO 10 RIGHT THANK YOU(2)
    DO THE FOLLOWING GO 20 FORWARD
    DO THE FOLLOWING GO 20 FORWARD(2)
    DO THE FOLLOWING GO 20 FORWARD THANK YOU
    DO THE FOLLOWING GO 20 FORWARD THANK YOU(2)
    DO THE FOLLOWING GO 20 LEFT
    DO THE FOLLOWING GO 20 LEFT(2)
    DO THE FOLLOWING GO 20 LEFT THANK YOU
    DO THE FOLLOWING GO 20 LEFT THANK YOU(2)
    DO THE FOLLOWING GO 20 RIGHT
    DO THE FOLLOWING GO 20 RIGHT(2)
    DO THE FOLLOWING GO 20 RIGHT THANK YOU
    DO THE FOLLOWING GO 20 RIGHT THANK YOU(2)
    DO THE FOLLOWING GO 30 FORWARD
    DO THE FOLLOWING GO 30 FORWARD(2)
    DO THE FOLLOWING GO 30 FORWARD THANK YOU
    DO THE FOLLOWING GO 30 FORWARD THANK YOU(2)
    DO THE FOLLOWING GO 30 LEFT
    DO THE FOLLOWING GO 30 LEFT(2)
    DO THE FOLLOWING GO 30 LEFT THANK YOU
    …and 510 more.
    2014-09-13 16:03:23.730 OpenEarsTest[1248:4507] Recognition loop has started
    2014-09-13 16:03:23.742 OpenEarsTest[1248:3a03] Audio route has changed for the following reason:
    2014-09-13 16:03:23.749 OpenEarsTest[1248:3a03] There has been a change of category
    2014-09-13 16:03:23.781 OpenEarsTest[1248:3a03] The previous audio route was Speaker
    2014-09-13 16:03:23.788 OpenEarsTest[1248:3a03] This is not a case in which OpenEars performs a route change voluntarily. At the close of this function, the audio route is SpeakerAndMicrophone
    OpenEarsTest(1248,0x31a0000) malloc: *** mach_vm_map(size=4190957568) failed (error code=3)
    *** error: can’t allocate region
    *** set a breakpoint in malloc_error_break to debug
    calloc(1047739392,4) failed from_re_demo file_omitted(0)

    ###########################################################################

    Any help would be greatly appreciated. Thanks!

Viewing 7 posts - 1 through 7 (of 7 total)