Menu

Pocketsphinx usage

Help
2010-12-13
2012-09-22
1 2 > >> (Page 1 of 2)
  • Anupam Saha

    Anupam Saha - 2010-12-13

    Im very new to this library and willing to use it for voice recognition. I
    have downloaded and build the pocketsphinx_continuous.exe and other dlls. But
    after that how do I test voice recognition. I searched a lot but not getting
    any proper tuts. Please guide me.

     
  • Anupam Saha

    Anupam Saha - 2010-12-14

    Yes I did. Whats the meaning of this line.

    "This manual is intended for developers who need to apply speech technology in
    their applications, not for speech recognition researches."

    We can use Pocketsphinx for voice recognition right ?. Then what this line
    trying to say us.

     
  • Nickolay V. Shmyrev

    We can use Pocketsphinx for voice recognition right ?

    Yes, you can

    "This manual is intended for developers who need to apply speech technology
    in their applications, not for speech recognition researches.". Then what this
    line trying to say us.

    There are people whos speciality is to do speech recogniton research, imrove
    recognition algorithms and write scientific papers about that. They will find
    this manual boring. So the line says that scientists shouldn't read the
    tutorial

    There are developers who implement the applications to sell and share them.
    They are the target audience of the tutorial.

    I presume you are not scientist so you can proceed without any hestitation

     
  • Anupam Saha

    Anupam Saha - 2010-12-15

    Yes Im not a scientist. LOL

    Anyways I get the following info & error while running pocketsphinx_continuous
    from command line.

    Current configuration:
    [NAME]          [DEFLT]         [VALUE]
    -adcdev
    -agc            none            none
    -agcthresh      2.0             2.000000e+000
    -alpha          0.97            9.700000e-001
    -argfile
    -ascale         20.0            2.000000e+001
    -backtrace      no              no
    -beam           1e-48           1.000000e-048
    -bestpath       yes             yes
    -bestpathlw     9.5             9.500000e+000
    -bghist         no              no
    -ceplen         13              13
    -cmn            current         current
    -cmninit        8.0             8.0
    -compallsen     no              no
    -debug                          0
    -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-008
    -frate          100             100
    -fsg
    -fsgusealtpron  yes             yes
    -fsgusefiller   yes             yes
    -fwdflat        yes             yes
    -fwdflatbeam    1e-64           1.000000e-064
    -fwdflatefwid   4               4
    -fwdflatlw      8.5             8.500000e+000
    -fwdflatsfwin   25              25
    -fwdflatwbeam   7e-29           7.000000e-029
    -fwdtree        yes             yes
    -hmm
    -input_endian   little          little
    -jsgf
    -kdmaxbbi       -1              -1
    -kdmaxdepth     0               0
    -kdtree
    -latsize        5000            5000
    -lda
    -ldadim         0               0
    -lextreedump    0               0
    -lifter         0               0
    -lm
    -lmctl
    -lmname         default         default
    -logbase        1.0001          1.000100e+000
    -logfn
    -logspec        no              no
    -lowerf         133.33334       1.333333e+002
    -lpbeam         1e-40           1.000000e-040
    -lponlybeam     7e-29           7.000000e-029
    -lw             6.5             6.500000e+000
    -maxhmmpf       -1              -1
    -maxnewoov      20              20
    -maxwpf         -1              -1
    -mdef
    -mean
    -mfclogdir
    -mixw
    -mixwfloor      0.0000001       1.000000e-007
    -mllr
    -mmap           yes             yes
    -ncep           13              13
    -nfft           512             512
    -nfilt          40              40
    -nwpen          1.0             1.000000e+000
    -pbeam          1e-48           1.000000e-048
    -pip            1.0             1.000000e+000
    -pl_beam        1e-10           1.000000e-010
    -pl_pbeam       1e-5            1.000000e-005
    -pl_window      0               0
    -rawlogdir
    -remove_dc      no              no
    -round_filters  yes             yes
    -samprate       16000           1.600000e+004
    -seed           -1              -1
    -sendump
    -senmgau
    -silprob        0.005           5.000000e-003
    -smoothspec     no              no
    -svspec
    -tmat
    -tmatfloor      0.0001          1.000000e-004
    -topn           4               4
    -topn_beam      0               0
    -toprule
    -transform      legacy          legacy
    -unit_area      yes             yes
    -upperf         6855.4976       6.855498e+003
    -usewdphones    no              no
    -uw             1.0             1.000000e+000
    -var
    -varfloor       0.0001          1.000000e-004
    -varnorm        no              no
    -verbose        no              no
    -warp_params
    -warp_type      inverse_linear  inverse_linear
    -wbeam          7e-29           7.000000e-029
    -wip            0.65            6.500000e-001
    -wlen           0.025625        2.562500e-002
    
    INFO: feat.c(848): Initializing feature stream to type: '1s_c_d_dd', ceplen=13,
    CMN='current', VARNORM='no', AGC='none'
    INFO: cmn.c(142): mean[0]= 12.00, mean[1..12]= 0.0
    ERROR: "acmod.c", line 84: Must specify -mdef or -hmm
    
     
  • Nickolay V. Shmyrev

    Yes, INFO notifies you what is happening and ERROR gives you information where
    the problem is and what to do.

     
  • Anupam Saha

    Anupam Saha - 2010-12-15

    Yes. I have not added any models. What are these models for and how to add
    them to pocketsphinx

     
  • Ayhan KÜÇÜKMANİSA

    Hi hypheni. Did you solve your problem?

     
  • Anupam Saha

    Anupam Saha - 2010-12-15

    No. Please guide me how to solve it.

     
  • Ayhan KÜÇÜKMANİSA

    i have same problem with you . i asked for this. i think models in the
    pocketsphinx-0.6.1\model folder. i tried but i couldnt add them to
    pocketsphinx.

     
  • Anupam Saha

    Anupam Saha - 2010-12-15

    Thats okay. The model folder. But there are some models available for
    download. You also getting same info and error as of mine ?

     
  • Ayhan KÜÇÜKMANİSA

    yes im running from visual studio 2008 and im getting same info and error as
    yours. everthing is same with the fifth message in this page.

     
  • Anupam Saha

    Anupam Saha - 2010-12-15

    Okay. Im using VS2005 here. I think we need to pass some arguments, without
    arguments all these are coming.

     
  • Ayhan KÜÇÜKMANİSA

    yes maybe. we should think path problem too. im looking now there maybe we can
    find answer there : http://cmusphinx.sourceforge.net/wiki/tuturialpocketsphin
    x
    .

     
  • Anupam Saha

    Anupam Saha - 2010-12-15

    Im on this link from 2days. No solutions till now.

     
  • Ayhan KÜÇÜKMANİSA

    last hope was this link. we should wait until nickolay answer this. Then we
    can discus this again. if i found something i will share from here.

     
  • creative64

    creative64 - 2010-12-15

    Hi Guys,

    You need to provide some bare minimum information to pocketsphinx_continuous
    in order to be able to run it. The least you need to specify are following:

    • A suitable model.

    pocketsphinx comes with a very good model for americal english and that is
    available in model\hmm\en_US folder and is called hub4wsj_sc_8k.

    • A dictionary file.

    pocketsphinx comes with an english dictionary by the name of cmu07a and it is
    available in model\lm\en_US file name is
    cmu07a.dic

    • A grammer file or a language model.

    For a starter you can create a language with an online cmu tool (Check some
    tutorial on how to do it). Once you have these, following should be the
    command line to run it.

    pocketsphinx_continuous -hmm ..path to \hub4wsj_sc_8k -dict ..path to
    cmu07a.dic -lm ..path of the language model file

     
  • Anupam Saha

    Anupam Saha - 2010-12-15

    Yes that what we need. Let me test all these settings.

     
  • Anupam Saha

    Anupam Saha - 2010-12-15

    Is it a sample grammar file ?..

    #JSGF V1.0;
    
     grammar drinks;
    
     public <drinks> = coffee | tea | milk
    

    should I save this as .jsgf file as pass as 3rd argument. And if I say coffee
    or tea or milk it will recognize it ?

     
  • Anupam Saha

    Anupam Saha - 2010-12-15

    After all these Im getting the followings:

    INFO: acmod.c(238): Parsed model-specific feature parameters from D:\pocketsphin
    x\model\hmm\en_US\hub4wsj_sc_8k/feat.params
    INFO: feat.c(848): Initializing feature stream to type: '1s_c_d_dd', ceplen=13,
    CMN='current', VARNORM='no', AGC='none'
    INFO: cmn.c(142): mean[0]= 12.00, mean[1..12]= 0.0
    INFO: acmod.c(163): Using subvector specification 0-12/13-25/26-38
    INFO: mdef.c(520): Reading model definition: D:\pocketsphinx\model\hmm\en_US\hub
    4wsj_sc_8k/mdef
    INFO: mdef.c(531): Found byte-order mark BMDF, assuming this is a binary mdef fi
    le
    INFO: bin_mdef.c(330): Reading binary model definition: D:\pocketsphinx\model\hm
    m\en_US\hub4wsj_sc_8k/mdef
    INFO: bin_mdef.c(508): 50 CI-phone, 143047 CD-phone, 3 emitstate/phone, 150 CI-s
    en, 5150 Sen, 27135 Sen-Seq
    INFO: tmat.c(205): Reading HMM transition probability matrices: D:\pocketsphinx\
    model\hmm\en_US\hub4wsj_sc_8k/transition_matrices
    
     
  • Ayhan KÜÇÜKMANİSA

    hypheni how can you run from command prompt. i have never run from there could
    you tell steps and what you write to command promt? for example my hmm file
    path is
    C:\Users\user\Documents\Visual Studio
    2008\Projects\pocketsphinx-0.6.1\model\hmm\en_US\hub4wsj_sc_8k
    what will be my command?

     
  • creative64

    creative64 - 2010-12-15

    Is it a sample grammar file ?..

    JSGF V1.0;

    grammar drinks;

    public <drinks> = coffee | tea | milk


    yes you can use this grammar file. Remember that this is not a "language
    model" file so you'll have to change your
    third argument from -lm to -jsgf as follows:

    pocketsphinx_continuous -hmm ..path to \hub4wsj_sc_8k -dict ..path to
    cmu07a.dic -jsgf ..path of the grammar file

    Now you can save your file as .jsgf file and if you speak coffee, tea or milk,
    it will recognize.

     
  • Ayhan KÜÇÜKMANİSA

    is anyone can explain how i can run pocketsphinx_continuous from command
    prompt? it is a urgent sitiuation for me.
    Thanks.

     
  • Anupam Saha

    Anupam Saha - 2010-12-16

    Now Im getting Runtime error ie: Windows error reporting window, saying
    "pocketsphinx_continuous encountered a prob and needs to be closed........."
    what could be the reason ?.

    And @ ayhankm
    cmd line argument through dos means you have to locate your directory in which
    pocketsphinx_continuous resides by cd command. then use as follows..

    pocketsphinx_continuous
    -hmm "D:\pocketsphinx\model\hmm\en_US\hub4wsj_sc_8k" 
    -dict "D:\pocketsphinx\model\lm\en_US\cmu07a.dic" 
    -jsgf "D:\pocketsphinx\grammar.jsgf"
    

    all these should be in same line. path should be replaced by your ones.

     
1 2 > >> (Page 1 of 2)

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.