Menu

there is something wrong in my pocketsphinx

Help
Jolyxie
2012-04-29
2012-09-22
  • Jolyxie

    Jolyxie - 2012-04-29

    hi everone :)
    i really puzzle,i download the pocketsphinx-0.3 and sphinxbase-o.3 . also
    according to the manual introduces and erection, but when I run this command
    "pkg-config --cflags --libs pocketsphinx sphinxbase",there was nothing output

    the linux version is 2.6.38 redhat enterprise 5
    the following is the file in /usr/local/bin

    libpocketsphinx.a libsphinxad.so libsphinxfeat.so.0 libsphinxutil.la
    libpocketsphinx.la libsphinxad.so.0 libsphinxfeat.so.0.0.0 libsphinxutil.so
    libpocketsphinx.so libsphinxad.so.0.0.0 libsphinxfe.la libsphinxutil.so.0
    libpocketsphinx.so.0 libsphinxfe.a libsphinxfe.so libsphinxutil.so.0.0.0
    libpocketsphinx.so.0.0.0 libsphinxfeat.a libsphinxfe.so.0 pkgconfig
    libsphinxad.a libsphinxfeat.la libsphinxfe.so.0.0.0
    libsphinxad.la libsphinxfeat.so libsphinxutil.a

    help! help!
    I really don't how to do !

     
  • Jolyxie

    Jolyxie - 2012-04-29

    the following is result when i running the command./pocketsphinx_continuous

    ./pocketsphinx_continuous

    INFO: fbs_main.c(245): libpocketsphinx/fbs_main.c COMPILED ON: Apr 29 2012,
    AT: 08:46:36

    INFO: cmd_ln.c(240): Looking for default argument file: pocketsphinx.args
    INFO: cmd_ln.c(243): Can't find default argument file pocketsphinx.args.
    INFO: cmd_ln.c(430): Parsing command line:
    /root/Desktop/pocketsphinx-0.3/src/programs/.libs/lt-pocketsphinx_continuous

    ERROR: "cmd_ln.c", line 527: No arguments given, exiting
    Arguments list definition:

    -adcendian little Byte order for raw audio files (little/big)
    -adchdr 0 Size of audio file header in bytes (headers are ignored)
    -adcin no Input is raw audio data
    -agc none Automatic gain control for c0 ('max', 'emax', 'noise', or 'none')
    -agcthresh 2.0 Initial threshold for automatic gain control
    -allphone no Do phoneme recognition
    -alpha 0.97 Preemphasis parameter
    -backtrace yes Print back trace of recognition results
    -beam 1e-48 Beam width applied to every frame in Viterbi search (smaller values mean wider beam)
    -bestpath yes Run bestpath (Dijkstra) search over word lattice (3rd pass)
    -bestpathlw 9.5 Language model probability weight for bestpath search
    -cachesen no Cache senone scores from first pass search
    -cep2spec no Input is cepstral files, output is log spectral files
    -cepdir Input files directory (prefixed to filespecs in control file)
    -cepext .mfc Input files extension (prefixed to filespecs in control file)
    -ceplen 13 Number of components in the input feature vector
    -cmn current Cepstral mean normalization scheme ('current', 'prior', or 'none')
    -compallsen no Compute all senone scores in every frame (can be faster when there are many senones)
    -ctl Control file listing utterances to be processed
    -ctlcount 1000000000 No. of utterances to be processed (after skipping -ctloffset entries)
    -ctlincr 1 Do every Nth line in the control file
    -ctloffset 0 No. of utterances at the beginning of -ctl file to be skipped
    -dict Main pronunciation dictionary (lexicon) input file
    -dither no Add 1/2-bit noise
    -doublebw no Use double bandwidth filters (same center freq)
    -dsratio 1 Frame GMM computation downsampling ratio
    -dumplatdir Directory for dumping lattices
    -fbtype mel_scale FB Type of mel_scale or log_linear
    -fdict Noise word pronunciation dictionary input file
    -feat s2_4x Feature stream type, depends on the acoustic model
    -fillpen 1e-8 Filler word transition penalty
    -frate 100 Frame rate
    -fsg Finite state grammar
    -fsgbfs yes Force backtrace from FSG final state
    -fsgctlfn A finite state grammar control file
    -fsgusealtpron yes Use alternative pronunciations for FSG
    -fsgusefiller yes (FSG Mode (Mode 2) only) Insert filler words at each state.
    -fwd3g yes Use trigrams in first pass search
    -fwdflat yes Run forward flat-lexicon search over word lattice (2nd pass)
    -fwdflatbeam 1e-64 Beam width applied to every frame in second-pass flat search
    -fwdflatefwid 4 Minimum number of end frames for a word to be searched in fwdflat search
    -fwdflatlw 8.5 Language model probability weight for flat lexicon (2nd pass) decoding
    -fwdflatsfwin 25 Window of frames in lattice to search for successor words in fwdflat search
    -fwdflatwbeam 1e-28 Beam width applied to word exits in second-pass flat search
    -fwdtree yes Run forward lexicon-tree search (1st pass)
    -hmm Directory containing acoustic model files.
    -hyp Recognition output file name
    -hypseg Recognition output with segmentation file name
    -input_endian little Endianness of input data, big or little, ignored if NIST or MS Wav
    -kdmaxbbi -1 Maximum number of Gaussians per leaf node in kd-Trees
    -kdmaxdepth 0 Maximum depth of kd-Trees to use
    -kdtree kd-Tree file for Gaussian selection
    -latsize 50000 Lattice size
    -lifter 0 Length of sin-curve for liftering, or 0 for no liftering.
    -live no Get input from audio hardware
    -lm Word trigram language model input file
    -lmctlfn Specify a set of language model

    -lmdumpdir The directory for dumping the DMP file.
    -lmendsym Language model end symbol
    -lmnamedir Directory for LM-name file for each utt
    -lmnameext Filename extension for LM-name files
    -lmstartsym Language model start symbol
    -logbase 1.0001 Base in which all log-likelihoods calculated (UNUSED)
    -logfn Recognition log file name
    -logspec no Write out logspectral files instead of cepstra
    -lowerf 133.33334 Lower edge of filters
    -lpbeam 1e-40 Beam width applied to last phone in words
    -lponlybeam 1e-28 Beam width applied to last phone in single-phone words
    -lw 6.5 Language model probability weight
    -matchscore no Report score in hyp file
    -maxhistpf 100 Max no. of histories to maintain at each frame (UNUSED)
    -maxhmmpf 100000 Maximum number of active HMMs to maintain at each frame (approx)
    -maxnewoov 0 Maximum new OOVs that can be added at run time
    -maxwpf 100000 Maximum number of distinct word exits to maintain at each frame (approx)
    -mdef Model definition input file
    -mean Mixture gaussian means input file
    -mfclogdir Directory for dumping feature input files
    -mixw Senone mixture weights input file
    -mixwfloor 0.0000001 Senone mixture weights floor (applied to data from -mixw file)
    -mmap yes Use memory-mapped I/O (if possible) for model files
    -nbest 0 Number of N-best hypotheses to write to -nbestdir
    -nbestdir Directory for writing N-best hypothesis lists
    -nbestext hyp Extension for N-best hypothesis list files
    -ncep 13 Number of cep coefficients
    -nfft 512 Size of FFT
    -nfilt 40 Number of filter banks
    -nwpen 1.0 New word transition penalty
    -oovdict OOV dictionary input file
    -oovugprob -4.5 OOV unigram log (base 10) probability
    -outsent Output sentence file name
    -pbeam 1e-48 Beam width applied to phone transitions
    -perdict Personal dictionary input file
    -phonelabdir Directory for writing phoneme label files from time alignment
    -phonelabext lab Extension for phoneme label files
    -phonelabtype xlabel Type of phoneme label files to write
    -phonetp Phone transition probabilities inputfile (default: flat probs)
    -phypdump no Report partial results every so many frames
    -phypsegdump no Report detailed partial results every so many frames
    -pip 1.0 Phone insertion penalty
    -ptplw 5.0 Weight (exponent) applied to phone transition probabilities
    -rawlogdir Directory for dumping raw audio input files
    -remove_dc no Remove DC offset from each frame
    -reportpron no Report alternate pronunciations in match file
    -round_filters yes Round mel filter frequencies to DFT points
    -samprate 16000.0 Sampling rate
    -seed -1 Seed for random number generator; if less than zero, pick our own
    -segdir Directory for writing state segmentation files from time alignment
    -segext v8_seg Extension for state segmentation files
    -sendump Senone dump (compressed mixture weights) input file
    -shortbacktrace no Print short back trace of recognition results
    -silpen 0.005 Silence word transition penalty
    -skipalt no Skip alternate frames in exiting phones
    -smoothspec no Write out cepstral-smoothed logspectral files
    -spec2cep no Input is log spectral files, output is cepstral files
    -startsymfn Start symbols file name
    -startworddir Directory for start-word file for each utt
    -startwordext Filename extension for start-word files
    -tactl Time align control (input sentence) file
    -taphone yes Time align phones
    -tastate no Time align states
    -taword yes Time align words
    -tmat HMM state transition matrix input file
    -tmatfloor 0.0001 HMM state transition probability floor (applied to -tmat file)
    -topn 4 Number of top Gaussians to use in scoring
    -topsenfrm 1 Number of frames' top senones to use in phoneme lookahead (needs -compallsen yes)
    -topsenthresh -60000 Threshold for top senones to use in phoneme lookahead
    -transform legacy Which type of transform to use to calculate cepstra (legacy, dct, or htk)
    -unit_area yes Normalize mel filters to unit area
    -upperf 6855.4976 Upper edge of filters
    -uptpwt 0.001 Uniform phone transition prob weight
    -usewdphones no Use within-word phones only
    -uw 1.0 Unigram weight
    -var Mixture gaussian variances input file
    -varfloor 0.0001 Mixture gaussian variance floor (applied to data from -var file)
    -varnorm no Variance normalize each utterance (only if CMN == current)
    -verbose no Show input filenames
    -vqeval 3 Number of subvectors to use for SubVQ-based frame evaluation (3 for all) (UNUSED)
    -warp_params Parameters defining the warping function
    -warp_type inverse_linear Warping function type (or shape)
    -wbeam 1e-48 Beam width applied to word exits
    -wip 0.65 Word insertion penalty
    -wlen 0.025625 Hamming window length

    ERROR: "cmd_ln.c", line 544: cmd_ln_parse failed, forced exit

     
  • Jolyxie

    Jolyxie - 2012-04-29

    first ,thank you for your answer ,nshmyrev

    but when i change the recent version ,and i run the command "./make" in the
    file sphinxbase-0.7
    there are also some errors

    make: Entering directory /root/Desktop/sphinxbase-0.7/src/libsphinxbase' /bin/sh ../../libtool --tag=CC --mode=link gcc -g -O2 -Wall -o libsphinxbase.la -rpath /usr/local/lib -version-info 2:1:1 util/libsphinxutil.la fe/libsphinxfe.la feat/libsphinxfeat.la lm/libsphinxlm.la -lasound -lpthread -lm gcc -shared -Wl,--whole-archive util/.libs/libsphinxutil.a fe/.libs/libsphinxfe.a feat/.libs/libsphinxfeat.a lm/.libs/libsphinxlm.a -Wl ,--no-whole-archive -lasound -lpthread -lm -Wl,-soname -Wl,libsphinxbase.so.1 -o .libs/libsphinxbase.so.1.1.1 /usr/bin/ld: util/.libs/libsphinxutil.a(genrand.o): Relocations in generic ELF (EM: 40) /usr/bin/ld: util/.libs/libsphinxutil.a(genrand.o): Relocations in generic ELF (EM: 40) /usr/bin/ld: util/.libs/libsphinxutil.a(genrand.o): Relocations in generic ELF (EM: 40) /usr/bin/ld: util/.libs/libsphinxutil.a(genrand.o): Relocations in generic ELF (EM: 40) /usr/bin/ld: util/.libs/libsphinxutil.a(genrand.o): Relocations in generic ELF (EM: 40) /usr/bin/ld: util/.libs/libsphinxutil.a(genrand.o): Relocations in generic ELF (EM: 40) /usr/bin/ld: util/.libs/libsphinxutil.a(genrand.o): Relocations in generic ELF (EM: 40) /usr/bin/ld: util/.libs/libsphinxutil.a(genrand.o): Relocations in generic ELF (EM: 40) util/.libs/libsphinxutil.a(genrand.o): could not read symbols: File in wrong format collect2: ld returned 1 exit status make: *** Error 1 make: Leaving directory/root/Desktop/sphinxbase-0.7/src/libsphinxbase'
    make: *** Error 1
    make: Leaving directory /root/Desktop/sphinxbase-0.7/src/libsphinxbase' make: *** Error 1 make: Leaving directory/root/Desktop/sphinxbase-0.7/src'
    make: *** Error 1

    do you know how to solve it ?

     
  • Nickolay V. Shmyrev

    do you know how to solve it ?

    You need to provide more information about what you have done exactly to get
    this error. It seems you modified something in the build scripts in order to
    get to this point.

    To build on Centos 5.5 you need to run autogen.sh. You need to have automake,
    autoconf and libtool installed. After autogen it should build just fine. See
    for details a recent thread on this forum:

    https://sourceforge.net/projects/cmusphinx/forums/forum/5471/topic/5226084

     
  • Jolyxie

    Jolyxie - 2012-04-29

    when i first "./rnake" in sphinxbase-0.7 , the errors was the follow:
    ../../../libtool: line 979: *** Warning: inferring the mode of operation is
    deprecated.: command not found
    ../../../libtool: line 980: *** Future versions of Libtool will require
    --mode=MODE be specified.: command not found
    ../../../libtool: line 1123: Xgcc: command not found
    ../../../libtool: line 1123: X-DHAVE_CONFIG_H: command not found
    ../../../libtool: line 1123: X-I.: command not found
    ../../../libtool: line 1123: X-I.: command not found
    ../../../libtool: line 1123: X-I../../../include: No such file or directory
    ../../../libtool: line 1123: X-I../../../include: No such file or directory
    ../../../libtool: line 1123: X-I../../../include/sphinxbase: No such file or
    directory
    ../../../libtool: line 1123: X-I../../../include: No such file or directory
    ../../../libtool: line 1123: X-I../../../include: No such file or directory
    ../../../libtool: line 1123: X-I/opt/python2.7/include/python2.7: No such file
    or directory
    ../../../libtool: line 1123: X-I/opt/python2.7/include/python2.7: No such file
    or directory
    ../../../libtool: line 1123: X-g: command not found
    ../../../libtool: line 1123: X-O2: command not found
    ../../../libtool: line 1123: X-Wall: command not found
    ../../../libtool: line 1123: X-MT: command not found
    ../../../libtool: line 1123: Xbitvec.lo: command not found
    ../../../libtool: line 1123: X-MD: command not found
    ../../../libtool: line 1123: X-MP: command not found
    ../../../libtool: line 1123: X-MF: command not found
    ../../../libtool: line 1123: X.deps/bitvec.Tpo: No such file or directory
    ../../../libtool: line 1123: X-c: command not found
    ../../../libtool: line 1175: Xbitvec.lo: command not found
    ../../../libtool: line 1180: libtool: compile: cannot determine name of
    library object from ': command not found make: *** Error 1 make: Leaving directory/home/myUser/downloads/sphinx/sphinxbase-0.7/src/libsphinxbase/util'
    make: *** Error 1
    make: Leaving directory
    /home/myUser/downloads/sphinx/sphinxbase-0.7/src/libsphinxbase' make: *** Error 1 make: Leaving directory/home/myUser/downloads/sphinx/sphinxbase-0.7/src'
    make: *** Error 1

    and then ,i copy the PC libtool to replace the sphinxbase-0.7 so this kind of
    error was solved

    then i run ",./make" again ,the error was just i first say!

    gcc -shared -Wl,--whole-archive util/.libs/libsphinxutil.a
    fe/.libs/libsphinxfe.a feat/.libs/libsphinxfeat.a lm/.libs/libsphinxlm.a -Wl
    ,--no-whole-archive -lasound -lpthread -lm -Wl,-soname -Wl,libsphinxbase.so.1
    -o .libs/libsphinxbase.so.1.1.1
    /usr/bin/ld: util/.libs/libsphinxutil.a(genrand.o): Relocations in generic ELF
    (EM: 40)
    /usr/bin/ld: util/.libs/libsphinxutil.a(genrand.o): Relocations in generic ELF
    (EM: 40)
    /usr/bin/ld: util/.libs/libsphinxutil.a(genrand.o): Relocations in generic ELF
    (EM: 40)
    /usr/bin/ld: util/.libs/libsphinxutil.a(genrand.o): Relocations in generic ELF
    (EM: 40)
    /usr/bin/ld: util/.libs/libsphinxutil.a(genrand.o): Relocations in generic ELF
    (EM: 40)
    /usr/bin/ld: util/.libs/libsphinxutil.a(genrand.o): Relocations in generic ELF
    (EM: 40)
    /usr/bin/ld: util/.libs/libsphinxutil.a(genrand.o): Relocations in generic ELF
    (EM: 40)
    /usr/bin/ld: util/.libs/libsphinxutil.a(genrand.o): Relocations in generic ELF
    (EM: 40)
    util/.libs/libsphinxutil.a(genrand.o): could not read symbols: File in wrong
    format
    collect2: ld returned 1 exit status
    make: *** Error 1
    make: Leaving directory /root/Desktop/sphinxbase-0.7/src/libsphinxbase' make: *** Error 1 make: Leaving directory/root/Desktop/sphinxbase-0.7/src/libsphinxbase'
    make: *** Error 1
    make: Leaving directory `/root/Desktop/sphinxbase-0.7/src'
    make: *** Error 1

    the above is what I operation!
    oh, right ,before i run ./take, i have run the command ./autogen.sh and
    ./configure
    thanks.........

     
  • Jolyxie

    Jolyxie - 2012-04-29

    yes ,,,i have make it ...i use version of "libtool-2.2.tar.gz".....and the
    ./pocketsphinx_continuous really work well

     

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.