Menu

install, Can't find libpocketsphinx.so.1

Help
swbluto
2010-09-03
2020-01-14
  • swbluto

    swbluto - 2010-09-03

    So, this is the error I'm getting.

    a@a-desktop:~/sphinx/pocketsphinx-0.6.1/src/programs$ pocketsphinx_batch
    pocketsphinx_batch: error while loading shared libraries:
    libpocketsphinx.so.1: cannot open shared object file: No such file or
    directory

    So, I go into the pocketsphinx directory and looked for '.so.1' and couldn't
    find one! I then searched for '.so', and it still couldn't find one. Then I
    searched for 'libpocketsphinx' and it found a libpocketsphinx.la file, but
    that's clearly not what I'm looking for.

    So where this file at?

    I'll admit I'm pretty new to linux installations, but I swore I followed the
    directions verbatim and I'm positive that...

    -The file/folder structure of sphinxbase and pocketsphinx is correct.
    -That I did ./autogen.sh, ./configure, make, and 'sudo make install' on those two folders. required programs for sphinx base (autoconf, automake, and one other).

    So I'm thinking it didn't generate the library file correctly, but I'm not
    sure how I would find out.

     
  • Nickolay V. Shmyrev

    Library is installed in default installation folder - /usr/local/bin. In many
    distributions dynamic loader doesn't search in this folder. You need to
    configure the loader either by editing /etc/ld.so.conf file or by exporting
    the environment variable LD_LIBRARY_PATH. Just run from the terminal:

    export LD_LIBRARY_PATH=/usr/local/lib

    and then pocketsphinx_batch. Google for LD_LIBRARY_PATH for more details.

     
  • swbluto

    swbluto - 2010-09-06

    Thanks, that did the trick. So, I ran PS_continuous and it appeared like it
    was listening because it would shoot out a lot of statistics every time I said
    something, but I didn't find an actual interpretation anywhere. I presume that
    it's not supposed to? So, I was looking around for a demo that would actually
    show something that I said, and I found a user on a forum thread mention
    "PS_tidigits" and I noticed that there were a lot of support files (Like the
    dict and Lm for it) , but I didn't actually find an executable anywhere. I
    downloaded a demo of 0.5.1 of PS_tidigits and made the appropriate soft links
    where needed, but it didn't actually seem to show any digits and the cursor
    didn't do anything so I suppose that it's just too old to run correctly? Is
    there a demo for 0.6.1 pocket-sphinx somewhere?

     
  • Nickolay V. Shmyrev

    So, I ran PS_continuous and it appeared like it was listening because
    it would shoot out a lot of statistics every time I said something, but I
    didn't
    find an actual interpretation anywhere.

    I suppose you need to read it carefully. The output is last line before READY

    000000000: uh huh (-15193)
    READY....

    I presume that it's not supposed to?

    Your presumption is wrong. Run

    pocketsphinx_continuous -logfn /dev/null
    

    to suppress log

    So, I was looking around for a demo that would actually show something
    that I said, and I found a user on a forum thread mention "PS_tidigits" and
    I noticed that there were a lot of support files (Like the dict and Lm for it)
    , but I didn't actually find an executable anywhere.Is there a demo for 0.6.1
    pocket-sphinx somewhere?

    To run digits configuration you don't need any other executable, you should
    just configure
    different model

    pocketsphinx_continuous -hmm pocksphinx/model/hmm/en/tidigits -lm
    pocketsphinx/model/lm/tidigits/tidigits.lm.DMP -dict
    pocketsphinx/model/lm/tidigits/tidigits.dic -logfn /dev/null
    
     
  • swbluto

    swbluto - 2010-09-06

    Thanks, once again. I had to change around a few things to get it to work with
    my 0.6.1 pocketsphinx install and the following command worked for me, just in
    case it might help out any other n00bs.

    pocketsphinx_continuous -hmm
    /usr/local/share/pocketsphinx/model/hmm/en/tidigits -lm
    /usr/local/share/pocketsphinx/model/lm/en/tidigits.DMP -dict
    /usr/local/share/pocketsphinx/model/lm/en/tidigits.dic -logfn /dev/null

    Its accuracy rate in my trial with a ten digit vocabulary seemed to be around
    50-60%. Do the other versions of sphinx (like sphinx 4) have better accuracy?
    I noticed the "WER"(Word error rate) in the tables was like .1% or .3% or some
    other ridiculously low number for Sphinx 4.0, and so I'm wondering if they
    really are that much better. But, on the other hand, Sphinx 4.0 seems to make
    use of Java's speech API which appears to do a lot of the heavy/grunt work so
    that might be where a lot of the accuracy improvement comes from.

     
  • Nickolay V. Shmyrev

    Its accuracy rate in my trial with a ten digit vocabulary seemed to be
    around 50-60%. Do the other versions of sphinx (like sphinx 4) have better
    accuracy?

    Given the fact you had problem with installation no wonder you can't measure
    the accuracy as well. The accuracy of pocketsphinx recognizing digits is 98%,
    2% word error rate. Most likely your microphone is broken some way, I suggest
    you to record audio into a file and share it.

     
  • Brian Kipruto

    Brian Kipruto - 2020-01-14

    I just run this command export LD_LIBRARY_PATH=/usr/local/lib and only loads the
    include /etc/ld.so.conf.d/*.conf

    not including the /usr/local/lib

     

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.