Menu

sphinx2-demo dies with no action

Help
2000-02-02
2012-09-22
  • Jeffrey C. Albro

    After configure, make, make install, cd scripts

    I type and get the following:
    jeff@northstar (~/pkg/sphinx2-0.1/scripts) ./sphinx2-demo

    task: /usr/local/share/sphinx2/model/lm/turtle
    lm:   /usr/local/share/sphinx2/model/lm/turtle/demo.lm
    dict: /usr/local/share/sphinx2/model/lm/turtle/demo.dic

    /usr/local/bin/sphinx2-continuous -live TRUE -ctloffset 0 -ctlcount 100000000 -cepdir /usr/local/share/sphinx2/model/lm/turtle/ctl -datadir /usr/local/share/sphinx2/model/lm/turtle/ctl -agcmax TRUE -langwt 6.5 -fwdflatlw 8.5 -rescorelw 9.5 -ugwt 0.5 -fillpen 1e-10 -silpen 0.005 -inspen 0.65 -top 1 -topsenfrm 3 -topsenthresh -70000 -beam 2e-06 -npbeam 2e-06 -lpbeam 2e-05 -lponlybeam 0.0005 -nwbeam 0.0005 -fwdflat FALSE -fwdflatbeam 1e-08 -fwdflatnwbeam 0.0003 -bestpath TRUE -kbdumpdir /usr/local/share/sphinx2 -lmfn /usr/local/share/sphinx2/model/lm/turtle/demo.lm -dictfn /usr/local/share/sphinx2/model/lm/turtle/demo.dic -phnfn /usr/local/share/sphinx2/model/hmm/4k/phone -mapfn /usr/local/share/sphinx2/model/hmm/4k/map -hmmdir /usr/local/share/sphinx2/model/hmm/4k -hmmdirlist /usr/local/share/sphinx2/model/hmm/4k -8bsen TRUE -sendumpfn /usr/local/share/sphinx2/model/hmm/4k/sendump -cbdir /usr/local/share/sphinx2/model/hmm/4k
    [initializing]
    jeff@northstar (~/pkg/sphinx2-0.1/scripts) 

     
    • R. Paul McCarty

      R. Paul McCarty - 2000-02-02

      I had this problem the first time I ran the script while my cd player was playing. When I tried another demo script it complained that the sound source was at the wrong sampling frequency (22K != 16K). I got a microphone and quit my cd player application and it worked fine.  Any chance you just have a device using the sound device and setting the sampling rate at something other then 16KHz?

      -Paul

       
      • Kevin A. Lenzo

        Kevin A. Lenzo - 2000-02-02

        sphinx2-demo is a wrapper for a C program linked against libsphinx2.a; it actually cuts down a whole lot of the output.

        You can probably get more meaningful diagnostics by running sphinx2-simple, which is a shell script of the raw command that invokes sphinx2-continuous with a ton of command-line parameters.

        It's possible that audio in isn't set up on the machine... a good sanity check is to see if you can record audio and play it back.

        kevin

         
        • Jeffrey C. Albro

          I can record and play back sound ala cat < and > /dev/audio

          spinx2-simple dies with this message:

          ERROR: "ad_i386_linux.c", line 306: Audio read error
          FATAL_ERROR: "tty-continuous.c", line 133: cont_ad_calib failed 

           
          • Anonymous

            Anonymous - 2000-02-10

            I get the exact same error, and I know that I canreacord because I just wrote an application which programed the mixer to record and play back.  What I've noticed is that the mixer is set to record form the volume instead of the microphone once sphinx is ran.  Any ideas, suggestions?

             
          • Anonymous

            Anonymous - 2000-02-20

            I also see the same behaviour as jalbro.  Audio is definately enabled - recording, playback works perfectly.  The compilation seems clean, I went through the output of the entire compilation process and no unusual errors occured. 
            Glancing quickly at the source it appears that it is crashing during initialization - in the header for cont_ad_calib it says that it is trying to calibrate the silence level.  I have noticed with my sound card (sb live) that it takes a moment to 'wake up' the sound card and start playback - perhaps this is also true of sampling - could this be causing the problem? 

             
          • Ed Kuykendall

            Ed Kuykendall - 2000-03-06

            I have the same problem (read error). Any progress on a cause? I am running OSS on SB Live. I haven't yet piled through all of this forum, so let me ask two questions here...
            1. Is SB Live supported by Sphinx2?
            2. Do I need to switch to ALSA drivers, which I believe currently do not support SB Live?

             
            • Anonymous

              Anonymous - 2000-03-17

              Okay you guys, here is the responce that I got from Mr. Lenzo and it now sphinx2 works just fine.  Here it is, I assume most of you downloaded the tar ball instead of the tree.  Well, if you did, then I suggest you download the tree instead.  Completely remove the direcotry where you untared the module and download the tree.  Here is how it's done:

              cvs -d:pserver:anonymous@cvs.cmusphinx.sourceforge.net:/cvsroot/cmusphinx login

              This will ask you for a password, just press enter.  Next :

              cvs -z3 -d:pserver:anonymous@cvs.cmusphinx.sourceforge.net:/cvsroot/cmusphinx co sphinx2

              This command will check out the module sphinx and make a directory called sphinx2 in the directory where you called it from. 

              Once that is done and the module has successfully downloaded you need to:

              cd sphinx2

              once inside sphinx 2 you need to run autogen.sh (./autogen.sh), this will create your configure executable and it will automatically run it as well.  Once configure is done checking an updating, you need to type make, once that is done you need to install the directories (make install).  Then you shouldl be all done!!

              Good luck guys!!
              The Roadrunner

               
    • Shih-Lien Lu

      Shih-Lien Lu - 2000-06-27

      I ran into the same problem and yes I build everything from the tar ball instead of the CVS tree. I had a lot of trouble getting CVS tree to work since I am downloading it through a firewall. The command "cvs -d:pserver ...." just timeout on me. How does one check out the CVS tree through a proxy server? Thanks.
      Shih-Lien

       
      • Anonymous

        Anonymous - 2000-06-27

        To access a cvs server from behind a firewall, type:
        runsocks cvs -d:pserver etc...

         

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.