Menu

pocket pocketsphinx in android- file input

Help
royi beni
2016-12-27
2017-01-02
  • royi beni

    royi beni - 2016-12-27

    hi,
    i am trying to use pocketsphinx in xamarin android. i was able to load the library and everything seems to work weel(there are no errors) but the result is always empy.
    i am working with wav file with 16000 sample rate, 16 bit encoding and mono channel.
    hope someone could help :(
    this is my code :

    private string  setUpRecognizer()
            {
                Java.Lang.JavaSystem.LoadLibrary("pocketsphinx_jni");
                Assets assets = new Assets(this);
                File assetDir = assets.SyncAssets();
    
                var recognizer = SpeechRecognizerSetup.DefaultSetup()
                    .SetAcousticModel(new File(assetDir, "en-us-ptm"))
                    .SetDictionary(new File(assetDir, "cmudict-en-us.dict"))
                    .SetRawLogDir(assetDir) // To disable logging of raw audio comment out this call (takes a lot of space on the device)
                    .Recognizer;
    
                Edu.Cmu.Pocketsphinx.Config config = Decoder.DefaultConfig();
                config.SetString("-hmm", new File(assetDir, "en-us-ptm").Path);
                config.SetString("-dict", new File(assetDir, "cmudict-en-us.dict").Path);
                config.SetBoolean("-allphone_ci", true);
                config.SetString("-lm", new File(assetDir, "en-phone.dmp").Path);
                Decoder decoder = new Decoder(config);
    
                string filePath = System.IO.Path.Combine(global::Android.OS.Environment.ExternalStorageDirectory.AbsolutePath, "testAudio.mp4");
                FileInputStream stream = new FileInputStream(new Java.IO.File(filePath));
    
                decoder.StartUtt();
                byte[] b = new byte[4096];
                int nbytes;
                while ((nbytes = stream.Read(b)) >= 0)
                {
                    ByteBuffer byteBuffer = ByteBuffer.Wrap(b, 0, nbytes);
    
                    // Not needed on desktop but required on android
                    byteBuffer.Order(ByteOrder.LittleEndian);
    
                    short[] s = new short[nbytes / 2];
                    byteBuffer.AsShortBuffer().Get(s);
                    decoder.ProcessRaw(s, nbytes / 2, false, false);
                }
                decoder.EndUtt();
                Log.Debug("decoder",decoder.Hyp().Hypstr);
                string result= decoder.Hyp().Hypstr;
                //var a = decoder.Seg();
                //Segment[] array = a.ToArray<Segment>();
                //foreach (Segment seg in array)
                //{
                //    result += seg.Word;
                //}
                return result;
            }
    

    this is log for the run:

    12-27 17:21:46.109 I/Assets  (13553): Skipping asset cmudict-en-us.dict: checksums are equal
    12-27 17:21:46.110 I/Assets  (13553): Skipping asset en-us-ptm/transition_matrices: checksums are equal
    12-27 17:21:46.110 I/Assets  (13553): Skipping asset en-us-ptm/mdef: checksums are equal
    12-27 17:21:46.110 I/Assets  (13553): Skipping asset en-us-ptm/README: checksums are equal
    12-27 17:21:46.110 I/Assets  (13553): Skipping asset en-us-ptm/sendump: checksums are equal
    Current configuration:
    12-27 17:21:46.111 I/Assets  (13553): Skipping asset weather.dmp: checksums are equal
    [NAME]          [DEFLT]     [VALUE]
    -agc            none        none
    -agcthresh      2.0     2.000000e+00
    -allphone               
    -allphone_ci        yes     yes
    -alpha          0.97        
    12-27 17:21:46.111 I/Assets  (13553): Skipping asset en-us-ptm/noisedict: checksums are equal
    12-27 17:21:46.111 I/Assets  (13553): Skipping asset en-phone.dmp: checksums are equal
    12-27 17:21:46.112 I/Assets  (13553): Skipping asset en-us-ptm/means: checksums are equal
    12-27 17:21:46.112 I/Assets  (13553): Skipping asset digits.gram: checksums are equal
    12-27 17:21:46.112 I/Assets  (13553): Skipping asset menu.gram: checksums are equal
    12-27 17:21:46.113 I/Assets  (13553): Skipping asset en-us-ptm/variances: checksums are equal
    12-27 17:21:46.113 I/Assets  (13553): Skipping asset en-us-ptm/feat.params: checksums are equal
    12-27 17:21:46.129 D/Mono    (13553): DllImport searching in: '__Internal' ('(null)').
    9.700000e-01
    -ascale         20.0
    12-27 17:21:46.129 D/Mono    (13553): Searching for 'java_interop_jnienv_call_static_object_method'.
    12-27 17:21:46.129 D/Mono    (13553): Probing 'java_interop_jnienv_call_static_object_method'.
    12-27 17:21:46.129 D/Mono    (13553): Found as 'java_interop_jnienv_call_static_object_method'.
    12-27 17:21:46.155 I/cmusphinx(13553): INFO: pocketsphinx.c(152): Parsed model-specific feature parameters from /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/feat.params
            2.000000e+01
    -aw         1       1
    -backtrace      no      no
    -beam           1e-48       1.000000e-48
    -bestpath       yes     yes
    -bestpathlw     9.5     9.500000e+00
    -ceplen         13      13
    -cmn            live        batch
    -cmninit        40,3,-1     40,10,10
    -compallsen     no      no
    -debug                  0
    -dict                   /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/cmudict-en-us.dict
    -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
    -fwdflatefwid       4       4
    -fwdflatlw      8.5     8.500000e+00
    -fwdflatsfwin       25      25
    -fwdflatwbeam       7e-29       7.000000e-29
    -fwdtree        yes     yes
    -hmm                    /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm
    -input_endian       little      little
    -jsgf                   
    -keyphrase              
    -kws                    
    -kws_delay      10      10
    -kws_plp        1e-1        1.000000e-01
    -kws_threshold      1e-30       1.000000e-30
    -latsize        5000        5000
    -lda                    
    -ldadim         0       0
    -lifter         0       22
    -lm                 
    -lmctl                  
    -lmname                 
    -logbase        1.0001      1.000100e+00
    -logfn  
    
    -logspec        no      no
    -lowerf         133.33334   1.300000e+02
    -lpbeam         1e-40       1.000000e-40
    -lponlybeam     7e-29       7.000000e-29
    -lw         6.5     6.500000e+00
    -maxhmmpf       30000       30000
    -maxwpf         -1      -1
    -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      25
    -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-10       1.000000e-10
    -pl_pip         1.0     1.000000e+00
    -pl_weight      3.0     3.000000e+00
    -pl_window      5       5
    -rawlogdir              /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync
    -remove_dc      no      no
    -remove_noise       yes     yes
    -remove_silence     yes     yes
    -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                 0-12/13-25/26-38
    -tmat                   
    -tmatfloor      0.0001      1.000000e-04
    -topn           4       4
    -topn_beam      0       0
    -toprule
    
    -transform      legacy      dct
    -unit_area      yes     yes
    -upperf         6855.4976   6.800000e+03
    -uw         1.0     1.000000e+00
    -vad_postspeech     50      50
    -vad_prespeech      20      20
    -vad_startspeech    10      10
    -vad_threshold      3.0     3.000000e+00
    -var                    
    -varfloor       0.0001      1.000000e-04
    -varnorm        no      no
    -verbose        no      no
    -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
    12-27 17:21:46.183 I/cmusphinx(13553): INFO: feat.c(715): Initializing feature stream to type: '1s_c_d_dd', ceplen=13, CMN='batch', VARNORM='no', AGC='none'
    12-27 17:21:46.183 I/cmusphinx(13553): INFO: acmod.c(162): Using subvector specification 0-12/13-25/26-38
    12-27 17:21:46.183 I/cmusphinx(13553): INFO: mdef.c(518): Reading model definition: /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/mdef
    12-27 17:21:46.184 I/cmusphinx(13553): INFO: mdef.c(531): Found byte-order mark BMDF, assuming this is a binary mdef file
    12-27 17:21:46.184 I/cmusphinx(13553): INFO: bin_mdef.c(336): Reading binary model definition: /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/mdef
    12-27 17:21:46.213 I/cmusphinx(13553): INFO: bin_mdef.c(516): 42 CI-phone, 137053 CD-phone, 3 emitstate/phone, 126 CI-sen, 5126 Sen, 29324 Sen-Seq
    12-27 17:21:46.213 I/cmusphinx(13553): INFO: tmat.c(149): Reading HMM transition probability matrices: /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/transition_matrices
    12-27 17:21:46.214 I/cmusphinx(13553): INFO: acmod.c(113): Attempting to use PTM computation module
    12-27 17:21:46.220 I/cmusphinx(13553): INFO: ms_gauden.c(127): Reading mixture gaussian parameter: /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/means
    12-27 17:21:46.225 I/cmusphinx(13553): INFO: ms_gauden.c(242): 42 codebook, 3 feature, size: 
    12-27 17:21:46.225 I/cmusphinx(13553): INFO: ms_gauden.c(244):  128x13
    12-27 17:21:46.225 I/cmusphinx(13553): INFO: ms_gauden.c(244):  128x13
    12-27 17:21:46.225 I/cmusphinx(13553): INFO: ms_gauden.c(244):  128x13
    12-27 17:21:46.225 I/cmusphinx(13553): INFO: ms_gauden.c(127): Reading mixture gaussian parameter: /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/variances
    12-27 17:21:46.230 I/cmusphinx(13553): INFO: ms_gauden.c(242): 42 codebook, 3 feature, size: 
    12-27 17:21:46.230 I/cmusphinx(13553): INFO: ms_gauden.c(244):  128x13
    12-27 17:21:46.230 I/cmusphinx(13553): INFO: ms_gauden.c(244):  128x13
    12-27 17:21:46.230 I/cmusphinx(13553): INFO: ms_gauden.c(244):  128x13
    12-27 17:21:46.277 I/cmusphinx(13553): INFO: ms_gauden.c(304): 222 variance values floored
    12-27 17:21:46.277 I/cmusphinx(13553): INFO: ptm_mgau.c(476): Loading senones from dump file /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/sendump
    12-27 17:21:46.277 I/cmusphinx(13553): INFO: ptm_mgau.c(500): BEGIN FILE FORMAT DESCRIPTION
    12-27 17:21:46.277 I/cmusphinx(13553): INFO: ptm_mgau.c(563): Rows: 128, Columns: 5126
    12-27 17:21:46.277 I/cmusphinx(13553): INFO: ptm_mgau.c(595): Using memory-mapped I/O for senones
    12-27 17:21:46.278 I/cmusphinx(13553): INFO: ptm_mgau.c(838): Maximum top-N: 4
    12-27 17:21:46.278 I/cmusphinx(13553): INFO: phone_loop_search.c(114): State beam -225 Phone exit beam -225 Insertion penalty 0
    12-27 17:21:46.316 I/cmusphinx(13553): INFO: dict.c(320): Allocating 137521 * 32 bytes (4297 KiB) for word entries
    12-27 17:21:46.316 I/cmusphinx(13553): INFO: dict.c(333): Reading main dictionary: /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/cmudict-en-us.dict
    12-27 17:21:46.626 I/cmusphinx(13553): INFO: dict.c(213): Dictionary size 133420, allocated 1007 KiB for strings, 1662 KiB for phones
    12-27 17:21:46.627 I/cmusphinx(13553): INFO: dict.c(336): 133420 words read
    12-27 17:21:46.627 I/cmusphinx(13553): INFO: dict.c(358): Reading filler dictionary: /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/noisedict
    12-27 17:21:46.627 I/cmusphinx(13553): INFO: dict.c(213): Dictionary size 133425, allocated 0 KiB for strings, 0 KiB for phones
    12-27 17:21:46.627 I/cmusphinx(13553): INFO: dict.c(361): 5 words read
    12-27 17:21:46.627 I/cmusphinx(13553): INFO: dict2pid.c(396): Building PID tables for dictionary
    12-27 17:21:46.627 I/cmusphinx(13553): INFO: dict2pid.c(406): Allocating 42^3 * 2 bytes (144 KiB) for word-initial triphones
    12-27 17:21:46.674 I/cmusphinx(13553): INFO: dict2pid.c(132): Allocated 42672 bytes (41 KiB) for word-final triphones
    Current configuration:
    [NAME]          [DEFLT]     [VALUE]
    -agc            none        none
    -agcthresh
            2.0     2.000000e+00
    -allphone               
    -allphone_ci        yes     yes
    -alpha          0.97        9.700000e-01
    -ascale         20.0        2.000000e+01
    -aw         1       1
    -backtrace      no      no
    -beam           1e-48       1.000000e-48
    -bestpath       yes     yes
    -bestpathlw     9.5     9.500000e+00
    -ceplen         13      13
    -cmn            live        batch
    -cmninit        40,3,-1     40,10,10
    -compallsen     no      no
    -debug                  0
    -dict                   /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/cmudict-en-us.dict
    -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
    -fwdflatefwid       4       4
    -fwdflatlw      8.5     8.500000e+00
    -fwdflatsfwin       25      25
    -fwdflatwbeam       7e-29       7.000000e-29
    -fwdtree        yes     yes
    -hmm                    /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm
    -input_endian       little      little
    -jsgf                   
    -keyphrase              
    -kws                
    
    -kws_delay      10      10
    -kws_plp        1e-1        1.000000e-01
    -kws_threshold      1e-30       1.000000e-30
    -latsize        5000        5000
    -lda                    
    -ldadim         0       0
    -lifter         0       22
    -lm                 /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-phone.dmp
    -lmctl                  
    -lmname                 
    -logbase        1.0001      1.000100e+00
    -logfn                  
    -logspec        no      no
    -lowerf         133.33334   1.300000e+02
    -lpbeam         1e-40       1.000000e-40
    -lponlybeam     7e-29       7.000000e-29
    -lw         6.5     6.500000e+00
    -maxhmmpf       30000       30000
    -maxwpf         -1      -1
    -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      25
    -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-10       1.000000e-10
    -pl_pip         1.0     1.000000e+00
    -pl_weight      3.0     3.000000e+00
    -pl_window      5       5
    -rawlogdir              
    -remove_dc      no      no
    -remove_noise       yes     yes
    -remove_silence     yes     yes
    -round_filters      yes     yes
    -samprate       16000       1.600000e+04
    -see
    d           -1      -1
    -sendump                
    -senlogdir              
    -senmgau                
    -silprob        0.005       5.000000e-03
    -smoothspec     no      no
    -svspec                 0-12/13-25/26-38
    -tmat                   
    -tmatfloor      0.0001      1.000000e-04
    
    -topn           4       4
    -topn_beam      0       0
    -toprule                
    -transform      legacy      dct
    -unit_area      yes     yes
    -upperf         6855.4976   6.800000e+03
    -uw         1.0     1.000000e+00
    -vad_postspeech     50      50
    -vad_prespeech      20      20
    -vad_startspeech    10      10
    -vad_threshold      3.0     3.000000e+00
    -var                    
    -varfloor       0.0001      1.000000e-04
    -varnorm        no      no
    -verbose        no      no
    -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
    12-27 17:21:46.676 I/cmusphinx(13553): INFO: dict2pid.c(196): Allocated 42672 bytes (41 KiB) for single-phone word triphones
    12-27 17:21:46.677 V/AudioRecord(13553): set(): inputSource 6, sampleRate 16000, format 0x1, channelMask 0x10, frameCount 6400, notificationFrames 0, sessionId 0, transferType 0, flags 0, opPackageName TestTranslate.TestTranslate uid -1, pid -1
    12-27 17:21:46.677 V/AudioRecord(13553): Building AudioRecord with attributes: source=6 flags=0x0 tags=[]
    12-27 17:21:46.680 V/AudioSystem(13553): ioConfigChanged() new output opened 2 samplingRate 48000, format 0x5 channel mask 0x3 frameCount 960 deviceId 1
    12-27 17:21:46.684 V/AudioSystem(13553): ioConfigChanged() new output opened 6 samplingRate 48000, format 0x5 channel mask 0x3 frameCount 1152 deviceId 5
    12-27 17:21:46.684 V/AudioSystem(13553): ioConfigChanged() new output opened 4 samplingRate 48000, format 0x1 channel mask 0x3 frameCount 960 deviceId 1
    12-27 17:21:46.684 V/AudioRecord(13553): set(): mSessionId 2426
    12-27 17:21:46.692 V/AudioSystem(13553): ioConfigChanged() new input opened 2427 samplingRate 16000, format 0x1 channel mask 0x10 frameCount 320 deviceId 0
    12-27 17:21:46.711 I/cmusphinx(13553): INFO: pocketsphinx.c(152): Parsed model-specific feature parameters from /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/feat.params
    12-27 17:21:46.738 I/cmusphinx(13553): INFO: feat.c(715): Initializing feature stream to type: '1s_c_d_dd', ceplen=13, CMN='batch', VARNORM='no', AGC='none'
    12-27 17:21:46.738 I/cmusphinx(13553): INFO: acmod.c(162): Using subvector specification 0-12/13-25/26-38
    12-27 17:21:46.738 I/cmusphinx(13553): INFO: mdef.c(518): Reading model definition: /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/mdef
    12-27 17:21:46.738 I/cmusphinx(13553): INFO: mdef.c(531): Found byte-order mark BMDF, assuming this is a binary mdef file
    12-27 17:21:46.738 I/cmusphinx(13553): INFO: bin_mdef.c(336): Reading binary model definition: /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/mdef
    12-27 17:21:46.760 I/cmusphinx(13553): INFO: bin_mdef.c(516): 42 CI-phone, 137053 CD-phone, 3 emitstate/phone, 126 CI-sen, 5126 Sen, 29324 Sen-Seq
    12-27 17:21:46.760 I/cmusphinx(13553): INFO: tmat.c(149): Reading HMM transition probability matrices: /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/transition_matrices
    12-27 17:21:46.760 I/cmusphinx(13553): INFO: acmod.c(113): Attempting to use PTM computation module
    12-27 17:21:46.767 I/cmusphinx(13553): INFO: ms_gauden.c(127): Reading mixture gaussian parameter: /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/means
    12-27 17:21:46.770 I/cmusphinx(13553): INFO: ms_gauden.c(242): 42 codebook, 3 feature, size: 
    12-27 17:21:46.770 I/cmusphinx(13553): INFO: ms_gauden.c(244):  128x13
    12-27 17:21:46.770 I/cmusphinx(13553): INFO: ms_gauden.c(244):  128x13
    12-27 17:21:46.770 I/cmusphinx(13553): INFO: ms_gauden.c(244):  128x13
    12-27 17:21:46.770 I/cmusphinx(13553): INFO: ms_gauden.c(127): Reading mixture gaussian parameter: /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/variances
    12-27 17:21:46.772 I/cmusphinx(13553): INFO: ms_gauden.c(242): 42 codebook, 3 feature, size: 
    12-27 17:21:46.772 I/cmusphinx(13553): INFO: ms_gauden.c(244):  128x13
    12-27 17:21:46.772 I/cmusphinx(13553): INFO: ms_gauden.c(244):  128x13
    12-27 17:21:46.772 I/cmusphinx(13553): INFO: ms_gauden.c(244):  128x13
    12-27 17:21:46.805 I/cmusphinx(13553): INFO: ms_gauden.c(304): 222 variance values floored
    12-27 17:21:46.805 I/cmusphinx(13553): INFO: ptm_mgau.c(476): Loading senones from dump file /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/sendump
    12-27 17:21:46.805 I/cmusphinx(13553): INFO: ptm_mgau.c(500): BEGIN FILE FORMAT DESCRIPTION
    12-27 17:21:46.805 I/cmusphinx(13553): INFO: ptm_mgau.c(563): Rows: 128, Columns: 5126
    12-27 17:21:46.805 I/cmusphinx(13553): INFO: ptm_mgau.c(595): Using memory-mapped I/O for senones
    12-27 17:21:46.806 I/cmusphinx(13553): INFO: ptm_mgau.c(838): Maximum top-N: 4
    12-27 17:21:46.806 I/cmusphinx(13553): INFO: phone_loop_search.c(114): State beam -225 Phone exit beam -225 Insertion penalty 0
    12-27 17:21:46.837 I/cmusphinx(13553): INFO: dict.c(320): Allocating 137521 * 32 bytes (4297 KiB) for word entries
    12-27 17:21:46.837 I/cmusphinx(13553): INFO: dict.c(333): Reading main dictionary: /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/cmudict-en-us.dict
    12-27 17:21:47.210 I/cmusphinx(13553): INFO: dict.c(213): Dictionary size 133420, allocated 1007 KiB for strings, 1662 KiB for phones
    12-27 17:21:47.210 I/cmusphinx(13553): INFO: dict.c(336): 133420 words read
    12-27 17:21:47.210 I/cmusphinx(13553): INFO: dict.c(358): Reading filler dictionary: /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/noisedict
    12-27 17:21:47.210 I/cmusphinx(13553): INFO: dict.c(213): Dictionary size 133425, allocated 0 KiB for strings, 0 KiB for phones
    12-27 17:21:47.211 I/cmusphinx(13553): INFO: dict.c(361): 5 words read
    12-27 17:21:47.211 I/cmusphinx(13553): INFO: dict2pid.c(396): Building PID tables for dictionary
    12-27 17:21:47.211 I/cmusphinx(13553): INFO: dict2pid.c(406): Allocating 42^3 * 2 bytes (144 KiB) for word-initial triphones
    12-27 17:21:47.260 I/cmusphinx(13553): INFO: dict2pid.c(132): Allocated 42672 bytes (41 KiB) for word-final triphones
    12-27 17:21:47.262 I/cmusphinx(13553): INFO: dict2pid.c(196): Allocated 42672 bytes (41 KiB) for single-phone word triphones
    12-27 17:21:47.262 I/cmusphinx(13553): INFO: ngram_model_trie.c(354): Trying to read LM in trie binary format
    12-27 17:21:47.263 I/cmusphinx(13553): INFO: ngram_model_trie.c(365): Header doesn't match
    12-27 17:21:47.263 I/cmusphinx(13553): INFO: ngram_model_trie.c(177): Trying to read LM in arpa format
    12-27 17:21:47.264 I/cmusphinx(13553): INFO: ngram_model_trie.c(70): No \data\ mark in LM file
    12-27 17:21:47.264 I/cmusphinx(13553): INFO: ngram_model_trie.c(445): Trying to read LM in dmp format
    12-27 17:21:47.264 I/cmusphinx(13553): INFO: ngram_model_trie.c(527): ngrams 1=43, 2=1509, 3=21837
    12-27 17:21:47.288 I/cmusphinx(13553): INFO: lm_trie.c(474): Training quantizer
    12-27 17:21:47.300 I/cmusphinx(13553): INFO: lm_trie.c(482): Building LM trie
    12-27 17:22:02.878 I/cmusphinx(13553): INFO: ngram_search_fwdtree.c(74): Initializing search tree
    12-27 17:22:02.882 I/cmusphinx(13553): INFO: ngram_search_fwdtree.c(101): 788 unique initial diphones
    12-27 17:22:02.887 I/cmusphinx(13553): INFO: ngram_search_fwdtree.c(186): Creating search channels
    12-27 17:22:02.901 I/cmusphinx(13553): INFO: ngram_search_fwdtree.c(323): Max nonroot chan increased to 128
    12-27 17:22:02.901 I/cmusphinx(13553): INFO: ngram_search_fwdtree.c(333): Created 0 root, 0 non-root channels, 5 single-phone words
    12-27 17:22:02.901 I/cmusphinx(13553): INFO: ngram_search_fwdflat.c(157): fwdflat: min_ef_width = 4, max_sf_win = 25
    12-27 17:22:02.911 D/Mono    (13553): DllImport searching in: '__Internal' ('(null)').
    12-27 17:22:02.911 D/Mono    (13553): Searching for 'java_interop_jnienv_call_void_method'.
    12-27 17:22:02.911 D/Mono    (13553): Probing 'java_interop_jnienv_call_void_method'.
    12-27 17:22:02.911 D/Mono    (13553): Found as 'java_interop_jnienv_call_void_method'.
    12-27 17:22:02.915 D/Mono    (13553): DllImport searching in: '__Internal' ('(null)').
    12-27 17:22:02.915 D/Mono    (13553): Searching for 'java_interop_jnienv_new_byte_array'.
    12-27 17:22:02.915 D/Mono    (13553): Probing 'java_interop_jnienv_new_byte_array'.
    12-27 17:22:02.915 D/Mono    (13553): Found as 'java_interop_jnienv_new_byte_array'.
    12-27 17:22:02.915 D/Mono    (13553): DllImport searching in: '__Internal' ('(null)').
    12-27 17:22:02.915 D/Mono    (13553): Searching for 'java_interop_jnienv_set_byte_array_region'.
    12-27 17:22:02.915 D/Mono    (13553): Probing 'java_interop_jnienv_set_byte_array_region'.
    12-27 17:22:02.915 D/Mono    (13553): Found as 'java_interop_jnienv_set_byte_array_region'.
    12-27 17:22:02.917 D/Mono    (13553): DllImport searching in: '__Internal' ('(null)').
    12-27 17:22:02.917 D/Mono    (13553): Searching for 'java_interop_jnienv_call_int_method_a'.
    12-27 17:22:02.917 D/Mono    (13553): Probing 'java_interop_jnienv_call_int_method_a'.
    12-27 17:22:02.917 D/Mono    (13553): Found as 'java_interop_jnienv_call_int_method_a'.
    12-27 17:22:02.918 D/Mono    (13553): DllImport searching in: '__Internal' ('(null)').
    12-27 17:22:02.918 D/Mono    (13553): Searching for 'java_interop_jnienv_get_byte_array_region'.
    12-27 17:22:02.918 D/Mono    (13553): Probing 'java_interop_jnienv_get_byte_array_region'.
    12-27 17:22:02.918 D/Mono    (13553): Found as 'java_interop_jnienv_get_byte_array_region'.
    12-27 17:22:02.925 D/Mono    (13553): DllImport searching in: '__Internal' ('(null)').
    12-27 17:22:02.925 D/Mono    (13553): Searching for 'java_interop_jnienv_get_static_field_id'.
    12-27 17:22:02.925 D/Mono    (13553): Probing 'java_interop_jnienv_get_static_field_id'.
    12-27 17:22:02.925 D/Mono    (13553): Found as 'java_interop_jnienv_get_static_field_id'.
    12-27 17:22:02.926 D/Mono    (13553): DllImport searching in: '__Internal' ('(null)').
    12-27 17:22:02.927 D/Mono    (13553): Searching for 'java_interop_jnienv_get_static_object_field'.
    12-27 17:22:02.927 D/Mono    (13553): Probing 'java_interop_jnienv_get_static_object_field'.
    12-27 17:22:02.927 D/Mono    (13553): Found as 'java_interop_jnienv_get_static_object_field'.
    12-27 17:22:02.932 D/Mono    (13553): DllImport searching in: '__Internal' ('(null)').
    12-27 17:22:02.932 D/Mono    (13553): Searching for 'java_interop_jnienv_new_short_array'.
    12-27 17:22:02.932 D/Mono    (13553): Probing 'java_interop_jnienv_new_short_array'.
    12-27 17:22:02.932 D/Mono    (13553): Found as 'java_interop_jnienv_new_short_array'.
    12-27 17:22:02.933 D/Mono    (13553): DllImport searching in: '__Internal' ('(null)').
    12-27 17:22:02.933 D/Mono    (13553): Searching for 'java_interop_jnienv_set_short_array_region'.
    12-27 17:22:02.933 D/Mono    (13553): Probing 'java_interop_jnienv_set_short_array_region'.
    12-27 17:22:02.933 D/Mono    (13553): Found as 'java_interop_jnienv_set_short_array_region'.
    12-27 17:22:02.934 D/Mono    (13553): DllImport searching in: '__Internal' ('(null)').
    12-27 17:22:02.934 D/Mono    (13553): Searching for 'java_interop_jnienv_get_short_array_region'.
    12-27 17:22:02.934 D/Mono    (13553): Probing 'java_interop_jnienv_get_short_array_region'.
    12-27 17:22:02.934 D/Mono    (13553): Found as 'java_interop_jnienv_get_short_array_region'.
    12-27 17:22:03.376 I/cmusphinx(13553): INFO: cmn_live.c(120): Update from < 
    12-27 17:22:03.376 I/cmusphinx(13553): 40.00 
    12-27 17:22:03.376 I/cmusphinx(13553): 10.00 
    12-27 17:22:03.376 I/cmusphinx(13553): 10.00 
    12-27 17:22:03.376 I/cmusphinx(13553):  0.00 
    12-27 17:22:03.376 I/cmusphinx(13553):  0.00 
    12-27 17:22:03.376 I/cmusphinx(13553):  0.00 
    12-27 17:22:03.376 I/cmusphinx(13553):  0.00 
    12-27 17:22:03.376 I/cmusphinx(13553):  0.00 
    12-27 17:22:03.376 I/cmusphinx(13553):  0.00 
    12-27 17:22:03.376 I/cmusphinx(13553):  0.00 
    12-27 17:22:03.376 I/cmusphinx(13553):  0.00 
    12-27 17:22:03.376 I/cmusphinx(13553):  0.00 
    12-27 17:22:03.376 I/cmusphinx(13553):  0.00 
    12-27 17:22:03.376 I/cmusphinx(13553): >
    12-27 17:22:03.376 I/cmusphinx(13553): INFO: cmn_live.c(138): Update to   < 
    12-27 17:22:03.376 I/cmusphinx(13553): 52.91 
    12-27 17:22:03.376 I/cmusphinx(13553):  1.44 
    12-27 17:22:03.376 I/cmusphinx(13553):  0.49 
    12-27 17:22:03.376 I/cmusphinx(13553): 22.26 
    12-27 17:22:03.376 I/cmusphinx(13553): -1.42 
    12-27 17:22:03.376 I/cmusphinx(13553): -1.70 
    12-27 17:22:03.376 I/cmusphinx(13553):  0.98 
    12-27 17:22:03.376 I/cmusphinx(13553): -15.21 
    12-27 17:22:03.376 I/cmusphinx(13553): -3.08 
    12-27 17:22:03.376 I/cmusphinx(13553): -9.04 
    12-27 17:22:03.377 I/cmusphinx(13553):  2.31 
    12-27 17:22:03.377 I/cmusphinx(13553): -10.18 
    12-27 17:22:03.377 I/cmusphinx(13553): -4.27 
    12-27 17:22:03.377 I/cmusphinx(13553): >
    12-27 17:22:03.377 I/cmusphinx(13553): INFO: ngram_search_fwdtree.c(1550):     1164 words recognized (5/fr)
    12-27 17:22:03.377 I/cmusphinx(13553): INFO: ngram_search_fwdtree.c(1552):     2151 senones evaluated (9/fr)
    12-27 17:22:03.377 I/cmusphinx(13553): INFO: ngram_search_fwdtree.c(1556):     1188 channels searched (4/fr), 0 1st, 1188 last
    12-27 17:22:03.377 I/cmusphinx(13553): INFO: ngram_search_fwdtree.c(1559):     1188 words for which last channels evaluated (4/fr)
    12-27 17:22:03.377 I/cmusphinx(13553): INFO: ngram_search_fwdtree.c(1561):        0 candidate words for entering last phone (0/fr)
    12-27 17:22:03.377 I/cmusphinx(13553): INFO: ngram_search_fwdtree.c(1564): fwdtree 0.45 CPU 0.185 xRT
    12-27 17:22:03.377 I/cmusphinx(13553): INFO: ngram_search_fwdtree.c(1567): fwdtree 0.46 wall 0.191 xRT
    12-27 17:22:03.377 I/cmusphinx(13553): INFO: ngram_search_fwdflat.c(302): Utterance vocabulary contains 2 words
    12-27 17:22:03.427 I/cmusphinx(13553): INFO: ngram_search_fwdflat.c(948):     1151 words recognized (5/fr)
    12-27 17:22:03.427 I/cmusphinx(13553): INFO: ngram_search_fwdflat.c(950):     2160 senones evaluated (9/fr)
    12-27 17:22:03.427 I/cmusphinx(13553): INFO: ngram_search_fwdflat.c(952):     1198 channels searched (4/fr)
    12-27 17:22:03.427 I/cmusphinx(13553): INFO: ngram_search_fwdflat.c(954):     1198 words searched (4/fr)
    12-27 17:22:03.427 I/cmusphinx(13553): INFO: ngram_search_fwdflat.c(957):       76 word transitions (0/fr)
    12-27 17:22:03.427 I/cmusphinx(13553): INFO: ngram_search_fwdflat.c(960): fwdflat 0.05 CPU 0.021 xRT
    12-27 17:22:03.427 I/cmusphinx(13553): INFO: ngram_search_fwdflat.c(963): fwdflat 0.05 wall 0.021 xRT
    
     
    • Nickolay V. Shmyrev

      From your code it seems you are trying to decode mp4 file, you need to feed in raw PCM data, not compressed sound.

       
  • royi beni

    royi beni - 2016-12-27

    thanks for your answer,
    sorry for that, it is from all my expirimats
    i convert the file to wave file and still the same problem

                string filePathWave = System.IO.Path.Combine(global::Android.OS.Environment.ExternalStorageDirectory.AbsolutePath, "testAudioLLWave.wav");
    
     
    • Nickolay V. Shmyrev

      Provide an updated log please.

       
      • royi beni

        royi beni - 2016-12-28

        hi,
        posted the new log below,
        i also tried the file in the windows version and it return an answer, not what i said:) but something
        thanks

         
  • royi beni

    royi beni - 2016-12-28

    Hi,
    this is the new line:

    string filePathWave = System.IO.Path.Combine(global::Android.OS.Environment.ExternalStorageDirectory.AbsolutePath, "RecordSound", "testAudioLLWave.wav");
    

    and this is the new log:

    12-28 09:04:07.708 I/Assets  (10549): Skipping asset cmudict-en-us.dict: checksums are equal
    Current configuration:
    [NAME]          [DEFLT]     [VALUE]
    -agc            none        none
    -agcthresh
            2.0     2.000000e+00
    -allphone               
    -allphone_ci        yes     yes
    -alpha          0.97        9.700000e-01
    -ascale         20.0
            2.000000e+01
    -aw         1       1
    -backtrace      no      no
    -beam           1e-48       1.000000e-48
    -bestpath       yes     yes
    -bestpathlw     9.5     9.500000e+00
    -ceplen         13      13
    -cmn            live        batch
    -cmninit        40,3,-1     40,10,10
    -compallsen     no      no
    -debug                  0
    -dict                   /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/cmudict-en-us.dict
    -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
    -fwdflatefwid       4       4
    -fwdflatlw      8.5     8.500000e+00
    -fwdflatsfwin       25      25
    -fwdflatwbeam       7e-29       7.000000e-29
    -fwdtree        yes     yes
    -hmm                    /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm
    -input_endian       little      little
    -jsgf                   
    -keyphrase              
    -kws                    
    -kws_delay      10      10
    -kws_plp        1e-1        1.000000e-01
    -kws_threshold      1e-30       1.000000e-30
    -latsize        5000        5000
    -lda                    
    -ldadim         0       0
    -lifter     
        0       22
    -lm                 
    -lmctl                  
    -lmname                 
    -logbase        1.0001      1.000100e+00
    -logfn                  
    -logspec        no      no
    -lowerf         133.33334   1.300000e+02
    -lpbeam         1e-40       1.000000e-40
    -lponlybeam     7e-29       7.000000e-29
    -lw         6.5     6.500000e+00
    -maxhmmpf       30000       30000
    -maxwpf         -1      -1
    -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      25
    -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-10       1.000000e-10
    -pl_pip         1.0     1.000000e+00
    -pl_weight      3.0     3.000000e+00
    -pl_window      5       5
    -rawlogdir              /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync
    -remove_dc      no      no
    -remove_noise       yes     yes
    -remove_silence     yes     yes
    -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                 0-12/13-25/26-38
    -tmat                   
    -tmatfloor      0.0001      1.000000e-04
    -topn           4       4
    -topn_beam      0       0
    -toprule                
    -transform      legacy      dct
    -unit_area      yes     yes
    -upperf         6855.4976   6.800000e+03
    -uw         1.0     1.000000e+00
    -vad_postspeech     50      50
    -vad_prespeech      20      20
    -vad_startspeech    10      10
    -vad_threshold      3.0     3.000000e+00
    -var                    
    -varfloor       0.0001      1.000000e-04
    -varnorm        no      no
    -verbose        no      no
    -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
    12-28 09:04:07.709 I/Assets  (10549): Skipping asset en-us-ptm/transition_matrices: checksums are equal
    12-28 09:04:07.710 I/Assets  (10549): Skipping asset en-us-ptm/mdef: checksums are equal
    12-28 09:04:07.710 I/Assets  (10549): Skipping asset en-us-ptm/README: checksums are equal
    12-28 09:04:07.711 I/Assets  (10549): Skipping asset en-us-ptm/sendump: checksums are equal
    12-28 09:04:07.711 I/Assets  (10549): Skipping asset weather.dmp: checksums are equal
    12-28 09:04:07.711 I/Assets  (10549): Skipping asset en-us-ptm/noisedict: checksums are equal
    12-28 09:04:07.711 I/Assets  (10549): Skipping asset en-phone.dmp: checksums are equal
    12-28 09:04:07.711 I/Assets  (10549): Skipping asset en-us-ptm/means: checksums are equal
    12-28 09:04:07.712 I/Assets  (10549): Skipping asset digits.gram: checksums are equal
    12-28 09:04:07.712 I/Assets  (10549): Skipping asset menu.gram: checksums are equal
    12-28 09:04:07.712 I/Assets  (10549): Skipping asset en-us-ptm/variances: checksums are equal
    12-28 09:04:07.712 I/Assets  (10549): Skipping asset en-us-ptm/feat.params: checksums are equal
    12-28 09:04:07.729 D/Mono    (10549): DllImport searching in: '__Internal' ('(null)').
    12-28 09:04:07.729 D/Mono    (10549): Searching for 'java_interop_jnienv_call_static_object_method'.
    12-28 09:04:07.729 D/Mono    (10549): Probing 'java_interop_jnienv_call_static_object_method'.
    12-28 09:04:07.729 D/Mono    (10549): Found as 'java_interop_jnienv_call_static_object_method'.
    12-28 09:04:07.751 I/cmusphinx(10549): INFO: pocketsphinx.c(152): Parsed model-specific feature parameters from /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/feat.params
    12-28 09:04:07.778 I/cmusphinx(10549): INFO: feat.c(715): Initializing feature stream to type: '1s_c_d_dd', ceplen=13, CMN='batch', VARNORM='no', AGC='none'
    12-28 09:04:07.779 I/cmusphinx(10549): INFO: acmod.c(162): Using subvector specification 0-12/13-25/26-38
    12-28 09:04:07.779 I/cmusphinx(10549): INFO: mdef.c(518): Reading model definition: /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/mdef
    12-28 09:04:07.780 I/cmusphinx(10549): INFO: mdef.c(531): Found byte-order mark BMDF, assuming this is a binary mdef file
    12-28 09:04:07.780 I/cmusphinx(10549): INFO: bin_mdef.c(336): Reading binary model definition: /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/mdef
    12-28 09:04:07.813 I/cmusphinx(10549): INFO: bin_mdef.c(516): 42 CI-phone, 137053 CD-phone, 3 emitstate/phone, 126 CI-sen, 5126 Sen, 29324 Sen-Seq
    12-28 09:04:07.813 I/cmusphinx(10549): INFO: tmat.c(149): Reading HMM transition probability matrices: /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/transition_matrices
    12-28 09:04:07.815 I/cmusphinx(10549): INFO: acmod.c(113): Attempting to use PTM computation module
    12-28 09:04:07.821 I/cmusphinx(10549): INFO: ms_gauden.c(127): Reading mixture gaussian parameter: /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/means
    12-28 09:04:07.828 I/cmusphinx(10549): INFO: ms_gauden.c(242): 42 codebook, 3 feature, size: 
    12-28 09:04:07.828 I/cmusphinx(10549): INFO: ms_gauden.c(244):  128x13
    12-28 09:04:07.828 I/cmusphinx(10549): INFO: ms_gauden.c(244):  128x13
    12-28 09:04:07.828 I/cmusphinx(10549): INFO: ms_gauden.c(244):  128x13
    12-28 09:04:07.828 I/cmusphinx(10549): INFO: ms_gauden.c(127): Reading mixture gaussian parameter: /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/variances
    12-28 09:04:07.834 I/cmusphinx(10549): INFO: ms_gauden.c(242): 42 codebook, 3 feature, size: 
    12-28 09:04:07.834 I/cmusphinx(10549): INFO: ms_gauden.c(244):  128x13
    12-28 09:04:07.834 I/cmusphinx(10549): INFO: ms_gauden.c(244):  128x13
    12-28 09:04:07.834 I/cmusphinx(10549): INFO: ms_gauden.c(244):  128x13
    12-28 09:04:07.871 I/cmusphinx(10549): INFO: ms_gauden.c(304): 222 variance values floored
    12-28 09:04:07.871 I/cmusphinx(10549): INFO: ptm_mgau.c(476): Loading senones from dump file /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/sendump
    12-28 09:04:07.872 I/cmusphinx(10549): INFO: ptm_mgau.c(500): BEGIN FILE FORMAT DESCRIPTION
    12-28 09:04:07.872 I/cmusphinx(10549): INFO: ptm_mgau.c(563): Rows: 128, Columns: 5126
    12-28 09:04:07.872 I/cmusphinx(10549): INFO: ptm_mgau.c(595): Using memory-mapped I/O for senones
    12-28 09:04:07.872 I/cmusphinx(10549): INFO: ptm_mgau.c(838): Maximum top-N: 4
    12-28 09:04:07.873 I/cmusphinx(10549): INFO: phone_loop_search.c(114): State beam -225 Phone exit beam -225 Insertion penalty 0
    12-28 09:04:07.922 I/cmusphinx(10549): INFO: dict.c(320): Allocating 137521 * 32 bytes (4297 KiB) for word entries
    12-28 09:04:07.922 I/cmusphinx(10549): INFO: dict.c(333): Reading main dictionary: /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/cmudict-en-us.dict
    12-28 09:04:08.206 I/cmusphinx(10549): INFO: dict.c(213): Dictionary size 133420, allocated 1007 KiB for strings, 1662 KiB for phones
    12-28 09:04:08.207 I/cmusphinx(10549): INFO: dict.c(336): 133420 words read
    12-28 09:04:08.207 I/cmusphinx(10549): INFO: dict.c(358): Reading filler dictionary: /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/noisedict
    12-28 09:04:08.207 I/cmusphinx(10549): INFO: dict.c(213): Dictionary size 133425, allocated 0 KiB for strings, 0 KiB for phones
    12-28 09:04:08.208 I/cmusphinx(10549): INFO: dict.c(361): 5 words read
    12-28 09:04:08.208 I/cmusphinx(10549): INFO: dict2pid.c(396): Building PID tables for dictionary
    12-28 09:04:08.208 I/cmusphinx(10549): INFO: dict2pid.c(406): Allocating 42^3 * 2 bytes (144 KiB) for word-initial triphones
    12-28 09:04:08.306 I/cmusphinx(10549): INFO: dict2pid.c(132): Allocated 42672 bytes (41 KiB) for word-final triphones
    Current configuration:
    [NAME]          [DEFLT]     [VALUE]
    -agc            none        none
    -agcthresh      2.0     2.000000e+00
    -allphone               
    -allphone_ci        yes     yes
    -alpha          0.97        9.700000e-01
    -ascale         20.0        2.000000e+01
    -aw         1       1
    -backtrace      no      no
    -beam           1e-48       1.000000e-48
    -bestpath       yes     yes
    -bestpathlw     9.5     9.500000e+00
    -ceplen         13      13
    
    -cmn            live        batch
    -cmninit        40,3,-1     40,10,10
    -compallsen     no      no
    -debug                  0
    -dict                   /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/cmudict-en-us.dict
    -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
    -fwdflatefwid       4       4
    -fwdflatlw      8.5     8.500000e+00
    -fwdflatsfwin       25      25
    -fwdflatwbeam       7e-29       7.000000e-29
    -fwdtree        yes     yes
    -hmm                    /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm
    -input_endian       little      little
    -jsgf                   
    -keyphrase              
    -kws                    
    -kws_delay      10      10
    -kws_plp        1e-1        1.000000e-01
    
    -kws_threshold      1e-30       1.000000e-30
    -latsize        5000        5000
    -lda                    
    -ldadim         0       0
    -lifter         0       22
    -lm                 /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-phone.dmp
    -lmctl                  
    -lmname                 
    -logbase        1.0001      1.000100e+00
    -logfn                  
    -logspec        no      no
    -lowerf         133.33334   1.300000e+02
    -lpbeam         1e-40       1.000000e-40
    -lponlybeam     7e-29       7.000000e-29
    -lw         6.5     6.500000e+00
    -maxhmmpf       30000       30000
    -maxwpf         -1      -1
    -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      25
    -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-10       1.000000e-10
    -pl_pip         1.0     1.000000e+00
    -pl_weight      3.0     3.000000e+00
    -pl_window      5       5
    -rawlogdir              
    -remove_dc      no      no
    -remove_noise       yes     yes
    -remove_silence     yes     yes
    -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                 0-12/13-25/26-38
    -tmat                   
    -tmatfloor      0.0001      1.000000e-04
    -topn           4       4
    -topn_beam      0       0
    -toprule                
    -transform      legacy      dct
    -unit_area      yes     yes
    -upperf         6855.4976   6.800000e+03
    -uw         1.0     1.000000e+00
    -vad_postspeech     50      50
    -vad_prespeech      20      20
    -vad_startspeech    10      10
    -vad_threshold      3.0     3.000000e+00
    -var                    
    -varfloor       0.0001      1.000000e-04
    -varnorm        no      no
    -verbose        no      no
    -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
    12-28 09:04:08.309 I/cmusphinx(10549): INFO: dict2pid.c(196): Allocated 42672 bytes (41 KiB) for single-phone word triphones
    12-28 09:04:08.310 V/AudioRecord(10549): set(): inputSource 6, sampleRate 16000, format 0x1, channelMask 0x10, frameCount 6400, notificationFrames 0, sessionId 0, transferType 0, flags 0, opPackageName TestTranslate.TestTranslate uid -1, pid -1
    12-28 09:04:08.310 V/AudioRecord(10549): Building AudioRecord with attributes: source=6 flags=0x0 tags=[]
    12-28 09:04:08.311 V/AudioSystem(10549): ioConfigChanged() new output opened 2 samplingRate 48000, format 0x5 channel mask 0x3 frameCount 960 deviceId 1
    12-28 09:04:08.314 V/AudioRecord(10549): set(): mSessionId 3003
    12-28 09:04:08.314 V/AudioSystem(10549): ioConfigChanged() new output opened 6 samplingRate 48000, format 0x5 channel mask 0x3 frameCount 1152 deviceId 5
    12-28 09:04:08.314 V/AudioSystem(10549): ioConfigChanged() new output opened 4 samplingRate 48000, format 0x1 channel mask 0x3 frameCount 960 deviceId 1
    12-28 09:04:08.317 V/AudioSystem(10549): ioConfigChanged() new input opened 3004 samplingRate 16000, format 0x1 channel mask 0x10 frameCount 320 deviceId 0
    12-28 09:04:08.341 I/cmusphinx(10549): INFO: pocketsphinx.c(152): Parsed model-specific feature parameters from /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/feat.params
    12-28 09:04:08.367 I/cmusphinx(10549): INFO: feat.c(715): Initializing feature stream to type: '1s_c_d_dd', ceplen=13, CMN='batch', VARNORM='no', AGC='none'
    12-28 09:04:08.367 I/cmusphinx(10549): INFO: acmod.c(162): Using subvector specification 0-12/13-25/26-38
    12-28 09:04:08.367 I/cmusphinx(10549): INFO: mdef.c(518): Reading model definition: /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/mdef
    12-28 09:04:08.367 I/cmusphinx(10549): INFO: mdef.c(531): Found byte-order mark BMDF, assuming this is a binary mdef file
    12-28 09:04:08.367 I/cmusphinx(10549): INFO: bin_mdef.c(336): Reading binary model definition: /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/mdef
    12-28 09:04:08.395 I/cmusphinx(10549): INFO: bin_mdef.c(516): 42 CI-phone, 137053 CD-phone, 3 emitstate/phone, 126 CI-sen, 5126 Sen, 29324 Sen-Seq
    12-28 09:04:08.395 I/cmusphinx(10549): INFO: tmat.c(149): Reading HMM transition probability matrices: /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/transition_matrices
    12-28 09:04:08.395 I/cmusphinx(10549): INFO: acmod.c(113): Attempting to use PTM computation module
    12-28 09:04:08.401 I/cmusphinx(10549): INFO: ms_gauden.c(127): Reading mixture gaussian parameter: /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/means
    12-28 09:04:08.404 I/cmusphinx(10549): INFO: ms_gauden.c(242): 42 codebook, 3 feature, size: 
    12-28 09:04:08.404 I/cmusphinx(10549): INFO: ms_gauden.c(244):  128x13
    12-28 09:04:08.405 I/cmusphinx(10549): INFO: ms_gauden.c(244):  128x13
    12-28 09:04:08.405 I/cmusphinx(10549): INFO: ms_gauden.c(244):  128x13
    12-28 09:04:08.405 I/cmusphinx(10549): INFO: ms_gauden.c(127): Reading mixture gaussian parameter: /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/variances
    12-28 09:04:08.417 I/cmusphinx(10549): INFO: ms_gauden.c(242): 42 codebook, 3 feature, size: 
    12-28 09:04:08.417 I/cmusphinx(10549): INFO: ms_gauden.c(244):  128x13
    12-28 09:04:08.417 I/cmusphinx(10549): INFO: ms_gauden.c(244):  128x13
    12-28 09:04:08.417 I/cmusphinx(10549): INFO: ms_gauden.c(244):  128x13
    12-28 09:04:08.456 I/cmusphinx(10549): INFO: ms_gauden.c(304): 222 variance values floored
    12-28 09:04:08.457 I/cmusphinx(10549): INFO: ptm_mgau.c(476): Loading senones from dump file /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/sendump
    12-28 09:04:08.457 I/cmusphinx(10549): INFO: ptm_mgau.c(500): BEGIN FILE FORMAT DESCRIPTION
    12-28 09:04:08.457 I/cmusphinx(10549): INFO: ptm_mgau.c(563): Rows: 128, Columns: 5126
    12-28 09:04:08.457 I/cmusphinx(10549): INFO: ptm_mgau.c(595): Using memory-mapped I/O for senones
    12-28 09:04:08.457 I/cmusphinx(10549): INFO: ptm_mgau.c(838): Maximum top-N: 4
    12-28 09:04:08.458 I/cmusphinx(10549): INFO: phone_loop_search.c(114): State beam -225 Phone exit beam -225 Insertion penalty 0
    12-28 09:04:08.506 I/cmusphinx(10549): INFO: dict.c(320): Allocating 137521 * 32 bytes (4297 KiB) for word entries
    12-28 09:04:08.506 I/cmusphinx(10549): INFO: dict.c(333): Reading main dictionary: /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/cmudict-en-us.dict
    12-28 09:04:08.811 I/cmusphinx(10549): INFO: dict.c(213): Dictionary size 133420, allocated 1007 KiB for strings, 1662 KiB for phones
    12-28 09:04:08.811 I/cmusphinx(10549): INFO: dict.c(336): 133420 words read
    12-28 09:04:08.811 I/cmusphinx(10549): INFO: dict.c(358): Reading filler dictionary: /storage/emulated/0/Android/data/TestTranslate.TestTranslate/files/sync/en-us-ptm/noisedict
    12-28 09:04:08.812 I/cmusphinx(10549): INFO: dict.c(213): Dictionary size 133425, allocated 0 KiB for strings, 0 KiB for phones
    12-28 09:04:08.812 I/cmusphinx(10549): INFO: dict.c(361): 5 words read
    12-28 09:04:08.812 I/cmusphinx(10549): INFO: dict2pid.c(396): Building PID tables for dictionary
    12-28 09:04:08.812 I/cmusphinx(10549): INFO: dict2pid.c(406): Allocating 42^3 * 2 bytes (144 KiB) for word-initial triphones
    12-28 09:04:08.857 I/cmusphinx(10549): INFO: dict2pid.c(132): Allocated 42672 bytes (41 KiB) for word-final triphones
    12-28 09:04:08.859 I/cmusphinx(10549): INFO: dict2pid.c(196): Allocated 42672 bytes (41 KiB) for single-phone word triphones
    12-28 09:04:08.859 I/cmusphinx(10549): INFO: ngram_model_trie.c(354): Trying to read LM in trie binary format
    12-28 09:04:08.861 I/cmusphinx(10549): INFO: ngram_model_trie.c(365): Header doesn't match
    12-28 09:04:08.861 I/cmusphinx(10549): INFO: ngram_model_trie.c(177): Trying to read LM in arpa format
    12-28 09:04:08.863 I/cmusphinx(10549): INFO: ngram_model_trie.c(70): No \data\ mark in LM file
    12-28 09:04:08.863 I/cmusphinx(10549): INFO: ngram_model_trie.c(445): Trying to read LM in dmp format
    12-28 09:04:08.864 I/cmusphinx(10549): INFO: ngram_model_trie.c(527): ngrams 1=43, 2=1509, 3=21837
    12-28 09:04:08.889 I/cmusphinx(10549): INFO: lm_trie.c(474): Training quantizer
    12-28 09:04:08.899 I/cmusphinx(10549): INFO: lm_trie.c(482): Building LM trie
    12-28 09:04:20.361 I/cmusphinx(10549): INFO: ngram_search_fwdtree.c(74): Initializing search tree
    12-28 09:04:20.365 I/cmusphinx(10549): INFO: ngram_search_fwdtree.c(101): 788 unique initial diphones
    12-28 09:04:20.369 I/cmusphinx(10549): INFO: ngram_search_fwdtree.c(186): Creating search channels
    12-28 09:04:20.381 I/cmusphinx(10549): INFO: ngram_search_fwdtree.c(323): Max nonroot chan increased to 128
    12-28 09:04:20.381 I/cmusphinx(10549): INFO: ngram_search_fwdtree.c(333): Created 0 root, 0 non-root channels, 5 single-phone words
    12-28 09:04:20.382 I/cmusphinx(10549): INFO: ngram_search_fwdflat.c(157): fwdflat: min_ef_width = 4, max_sf_win = 25
    12-28 09:04:20.409 D/Mono    (10549): DllImport searching in: '__Internal' ('(null)').
    12-28 09:04:20.409 D/Mono    (10549): Searching for 'java_interop_jnienv_call_void_method'.
    12-28 09:04:20.409 D/Mono    (10549): Probing 'java_interop_jnienv_call_void_method'.
    12-28 09:04:20.409 D/Mono    (10549): Found as 'java_interop_jnienv_call_void_method'.
    12-28 09:04:20.413 D/Mono    (10549): DllImport searching in: '__Internal' ('(null)').
    12-28 09:04:20.413 D/Mono    (10549): Searching for 'java_interop_jnienv_new_byte_array'.
    12-28 09:04:20.413 D/Mono    (10549): Probing 'java_interop_jnienv_new_byte_array'.
    12-28 09:04:20.413 D/Mono    (10549): Found as 'java_interop_jnienv_new_byte_array'.
    12-28 09:04:20.414 D/Mono    (10549): DllImport searching in: '__Internal' ('(null)').
    12-28 09:04:20.414 D/Mono    (10549): Searching for 'java_interop_jnienv_set_byte_array_region'.
    12-28 09:04:20.414 D/Mono    (10549): Probing 'java_interop_jnienv_set_byte_array_region'.
    12-28 09:04:20.414 D/Mono    (10549): Found as 'java_interop_jnienv_set_byte_array_region'.
    12-28 09:04:20.416 D/Mono    (10549): DllImport searching in: '__Internal' ('(null)').
    12-28 09:04:20.416 D/Mono    (10549): Searching for 'java_interop_jnienv_call_int_method_a'.
    12-28 09:04:20.416 D/Mono    (10549): Probing 'java_interop_jnienv_call_int_method_a'.
    12-28 09:04:20.416 D/Mono    (10549): Found as 'java_interop_jnienv_call_int_method_a'.
    12-28 09:04:20.417 D/Mono    (10549): DllImport searching in: '__Internal' ('(null)').
    12-28 09:04:20.417 D/Mono    (10549): Searching for 'java_interop_jnienv_get_byte_array_region'.
    12-28 09:04:20.417 D/Mono    (10549): Probing 'java_interop_jnienv_get_byte_array_region'.
    12-28 09:04:20.417 D/Mono    (10549): Found as 'java_interop_jnienv_get_byte_array_region'.
    12-28 09:04:20.425 D/Mono    (10549): DllImport searching in: '__Internal' ('(null)').
    12-28 09:04:20.425 D/Mono    (10549): Searching for 'java_interop_jnienv_get_static_field_id'.
    12-28 09:04:20.425 D/Mono    (10549): Probing 'java_interop_jnienv_get_static_field_id'.
    12-28 09:04:20.425 D/Mono    (10549): Found as 'java_interop_jnienv_get_static_field_id'.
    12-28 09:04:20.427 D/Mono    (10549): DllImport searching in: '__Internal' ('(null)').
    12-28 09:04:20.427 D/Mono    (10549): Searching for 'java_interop_jnienv_get_static_object_field'.
    12-28 09:04:20.427 D/Mono    (10549): Probing 'java_interop_jnienv_get_static_object_field'.
    12-28 09:04:20.427 D/Mono    (10549): Found as 'java_interop_jnienv_get_static_object_field'.
    12-28 09:04:20.437 D/Mono    (10549): DllImport searching in: '__Internal' ('(null)').
    12-28 09:04:20.438 D/Mono    (10549): Searching for 'java_interop_jnienv_new_short_array'.
    12-28 09:04:20.438 D/Mono    (10549): Probing 'java_interop_jnienv_new_short_array'.
    12-28 09:04:20.438 D/Mono    (10549): Found as 'java_interop_jnienv_new_short_array'.
    12-28 09:04:20.438 D/Mono    (10549): DllImport searching in: '__Internal' ('(null)').
    12-28 09:04:20.438 D/Mono    (10549): Searching for 'java_interop_jnienv_set_short_array_region'.
    12-28 09:04:20.438 D/Mono    (10549): Probing 'java_interop_jnienv_set_short_array_region'.
    12-28 09:04:20.438 D/Mono    (10549): Found as 'java_interop_jnienv_set_short_array_region'.
    12-28 09:04:20.440 D/Mono    (10549): DllImport searching in: '__Internal' ('(null)').
    12-28 09:04:20.440 D/Mono    (10549): Searching for 'java_interop_jnienv_get_short_array_region'.
    12-28 09:04:20.440 D/Mono    (10549): Probing 'java_interop_jnienv_get_short_array_region'.
    12-28 09:04:20.440 D/Mono    (10549): Found as 'java_interop_jnienv_get_short_array_region'.
    12-28 09:04:21.046 I/cmusphinx(10549): INFO: cmn_live.c(120): Update from < 
    12-28 09:04:21.046 I/cmusphinx(10549): 40.00 
    12-28 09:04:21.046 I/cmusphinx(10549): 10.00 
    12-28 09:04:21.046 I/cmusphinx(10549): 10.00 
    12-28 09:04:21.046 I/cmusphinx(10549):  0.00 
    12-28 09:04:21.046 I/cmusphinx(10549):  0.00 
    12-28 09:04:21.046 I/cmusphinx(10549):  0.00 
    12-28 09:04:21.046 I/cmusphinx(10549):  0.00 
    12-28 09:04:21.046 I/cmusphinx(10549):  0.00 
    12-28 09:04:21.046 I/cmusphinx(10549):  0.00 
    12-28 09:04:21.046 I/cmusphinx(10549):  0.00 
    12-28 09:04:21.046 I/cmusphinx(10549):  0.00 
    12-28 09:04:21.046 I/cmusphinx(10549):  0.00 
    12-28 09:04:21.046 I/cmusphinx(10549):  0.00 
    12-28 09:04:21.046 I/cmusphinx(10549): >
    12-28 09:04:21.046 I/cmusphinx(10549): INFO: cmn_live.c(138): Update to   < 
    12-28 09:04:21.046 I/cmusphinx(10549): 56.85 
    12-28 09:04:21.046 I/cmusphinx(10549):  1.17 
    12-28 09:04:21.046 I/cmusphinx(10549):  7.37 
    12-28 09:04:21.046 I/cmusphinx(10549): 17.52 
    12-28 09:04:21.046 I/cmusphinx(10549): -3.39 
    12-28 09:04:21.046 I/cmusphinx(10549): -7.65 
    12-28 09:04:21.046 I/cmusphinx(10549): -11.69 
    12-28 09:04:21.046 I/cmusphinx(10549): -9.98 
    12-28 09:04:21.046 I/cmusphinx(10549): -1.97 
    12-28 09:04:21.046 I/cmusphinx(10549): -12.43 
    12-28 09:04:21.046 I/cmusphinx(10549):  2.34 
    12-28 09:04:21.046 I/cmusphinx(10549): -17.29 
    12-28 09:04:21.046 I/cmusphinx(10549): -5.97 
    12-28 09:04:21.046 I/cmusphinx(10549): >
    12-28 09:04:21.046 I/cmusphinx(10549): INFO: ngram_search_fwdtree.c(1550):     1513 words recognized (5/fr)
    12-28 09:04:21.046 I/cmusphinx(10549): INFO: ngram_search_fwdtree.c(1552):     2763 senones evaluated (9/fr)
    12-28 09:04:21.046 I/cmusphinx(10549): INFO: ngram_search_fwdtree.c(1556):     1538 channels searched (4/fr), 0 1st, 1538 last
    12-28 09:04:21.046 I/cmusphinx(10549): INFO: ngram_search_fwdtree.c(1559):     1538 words for which last channels evaluated (4/fr)
    12-28 09:04:21.046 I/cmusphinx(10549): INFO: ngram_search_fwdtree.c(1561):        0 candidate words for entering last phone (0/fr)
    12-28 09:04:21.046 I/cmusphinx(10549): INFO: ngram_search_fwdtree.c(1564): fwdtree 0.55 CPU 0.177 xRT
    12-28 09:04:21.046 I/cmusphinx(10549): INFO: ngram_search_fwdtree.c(1567): fwdtree 0.64 wall 0.205 xRT
    12-28 09:04:21.047 I/cmusphinx(10549): INFO: ngram_search_fwdflat.c(302): Utterance vocabulary contains 2 words
    12-28 09:04:21.090 I/cmusphinx(10549): INFO: ngram_search_fwdflat.c(948):     1449 words recognized (5/fr)
    12-28 09:04:21.090 I/cmusphinx(10549): INFO: ngram_search_fwdflat.c(950):     2772 senones evaluated (9/fr)
    12-28 09:04:21.090 I/cmusphinx(10549): INFO: ngram_search_fwdflat.c(952):     1538 channels searched (4/fr)
    12-28 09:04:21.090 I/cmusphinx(10549): INFO: ngram_search_fwdflat.c(954):     1538 words searched (4/fr)
    12-28 09:04:21.090 I/cmusphinx(10549): INFO: ngram_search_fwdflat.c(957):       76 word transitions (0/fr)
    12-28 09:04:21.090 I/cmusphinx(10549): INFO: ngram_search_fwdflat.c(960): fwdflat 0.04 CPU 0.013 xRT
    12-28 09:04:21.090 I/cmusphinx(10549): INFO: ngram_search_fwdflat.c(963): fwdflat 0.04 wall 0.014 xRT
    12-28 09:04:27.558 I/cmusphinx(10549): INFO: ngram_search.c(1250): lattice start node <s>.0 end node </s>.284
    12-28 09:04:27.558 I/cmusphinx(10549): INFO: ngram_search.c(1276): Eliminated 2 nodes before end node
    12-28 09:04:27.562 I/cmusphinx(10549): INFO: ngram_search.c(1381): Lattice has 465 nodes, 530 links
    12-28 09:04:27.563 I/cmusphinx(10549): INFO: ps_lattice.c(1380): Bestpath score: -2185
    12-28 09:04:27.563 I/cmusphinx(10549): INFO: ps_lattice.c(1384): Normalizer P(O) = alpha(</s>:284:309) = -123174
    12-28 09:04:27.563 I/cmusphinx(10549): INFO: ps_lattice.c(1441): Joint P(O,S) = -140660 P(S|O) = -17486
    12-28 09:04:27.563 I/cmusphinx(10549): INFO: ngram_search.c(872): bestpath 0.01 CPU 0.003 xRT
    12-28 09:04:27.564 I/cmusphinx(10549): INFO: ngram_search.c(875): bestpath 0.01 wall 0.003 xRT
    12-28 09:04:28.722 I/cmusphinx(10549): INFO: ngram_search.c(872): bestpath 0.00 CPU 0.000 xRT
    12-28 09:04:28.722 I/cmusphinx(10549): INFO: ngram_search.c(875): bestpath 0.00 wall 0.000 xRT
    12-28 09:04:28.726 D/Mono    (10549): DllImport searching in: '__Internal' ('(null)').
    12-28 09:04:28.726 D/Mono    (10549): Searching for 'java_interop_jnienv_call_static_int_method_a'.
    12-28 09:04:28.726 D/Mono    (10549): Probing 'java_interop_jnienv_call_static_int_method_a'.
    12-28 09:04:28.726 D/Mono    (10549): Found as 'java_interop_jnienv_call_static_int_method_a'.
    12-28 09:04:28.727 I/cmusphinx(10549): INFO: ngram_search.c(872): bestpath 0.00 CPU 0.000 xRT
    12-28 09:04:28.727 I/cmusphinx(10549): INFO: ngram_search.c(875): bestpath 0.00 wall 0.000 xRT
    12-28 09:04:28.733 I/cmusphinx(10549): INFO: ngram_search.c(1027): bestpath 0.00 CPU 0.000 xRT
    12-28 09:04:28.733 I/cmusphinx(10549): INFO: ngram_search.c(1030): bestpath 0.00 wall 0.000 xRT
    12-28 09:04:28.738 D/Mono    (10549): DllImport searching in: '__Internal' ('(null)').
    12-28 09:04:28.738 D/Mono    (10549): Searching for 'java_interop_jnienv_call_boolean_method'.
    12-28 09:04:28.738 D/Mono    (10549): Probing 'java_interop_jnienv_call_boolean_method'.
    12-28 09:04:28.738 D/Mono    (10549): Found as 'java_interop_jnienv_call_boolean_method'.
    12-28 09:04:30.453 I/Choreographer(10549): Skipped 1953 frames!  The application may be doing too much work on its main thread.
    12-28 09:04:33.264 W/SplitWindow(10549): update focus... 
    
     
    • Nickolay V. Shmyrev

      It seems you are using phonetic LM en-phone.lm.dmp instead of real lm en-us.lm.bin. It does not seem like a good idea. If you want phones, you need to use -allphone instead of -lm. If you want words, you need real language model.

       
      • royi beni

        royi beni - 2017-01-02

        Thanks!!
        i have changed the code to:

         Edu.Cmu.Pocketsphinx.Config config = Decoder.DefaultConfig();
                    config.SetString("-hmm", new File(assetDir, "en-us-ptm").Path);
                    config.SetString("-dict", new File(assetDir, "cmudict-en-us.dict").Path);
                   // config.SetBoolean("-allphone_ci", true);
                    config.SetString("-lm", new File(assetDir, "en-us.lm.bin").Path);
                    Decoder decoder = new Decoder(config);
        
                    string filePathWave = System.IO.Path.Combine(global::Android.OS.Environment.ExternalStorageDirectory.AbsolutePath, "RecordSound", "goforward.raw");
                    FileInputStream stream = new FileInputStream(new Java.IO.File(filePathWave));
        

        and it is working :)
        when i am working with the "goforward.raw" file it is perfect but when i am working with wav file that was recorded on the phone the result is not as expected.
        How can i make the process more accurate ?
        thanks,
        royi

         
        • Nickolay V. Shmyrev

          How can i make the process more accurate ?

          Send data to google, their recognize is much more accurate.

           

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.