Reply To: [Resolved] Error in implementing RuleORama

Home Forums OpenEars plugins [Resolved] Error in implementing RuleORama 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)