Hello_World_Decoder_QuickStart

system>administration>users and groups> click on root name and go to password
-

http://sphinx.subwiki.com/sphinx/index.php/Hello_World_Decoder_QuickStart_Guide#Make_a_Base:_.2Fusr.2Fsrc.2Fsphinx.2F

liberty@liberty-desktop:~$ su -
Password:
root@liberty-desktop:~# cd /usr/src
root@liberty-desktop:/usr/src#
-
root@liberty-desktop:/usr/src# mkdir sphinx
root@liberty-desktop:/usr/src# chmod a=rwx sphinx
root@liberty-desktop:/usr/src# SPHINX_ROOT=/usr/src/sphinx
root@liberty-desktop:/usr/src# echo $SPHINX_ROOT
/usr/src/sphinx
root@liberty-desktop:/usr/src#

7 Responses to “Hello_World_Decoder_QuickStart”

  1. producer says:

    sudo apt-get install build-essential autoconf libtool automake libasound2-dev python-dev subversion sox libsox-fmt-all

  2. producer says:

    Checked out revision 9140.
    root@liberty-desktop:/usr/src/sphinx#

    root@liberty-desktop:/usr/src/sphinx# cd sphinxbase
    root@liberty-desktop:/usr/src/sphinx/sphinxbase#

    ./autogen.sh –prefix=/usr

    root@liberty-desktop:/usr/src/sphinx/sphinxbase# make
    root@liberty-desktop:/usr/src/sphinx/sphinxbase# make check
    root@liberty-desktop:/usr/src/sphinx/sphinxbase# make install

  3. producer says:

    … lost some things because firefox crashed
    root@liberty-desktop:/usr/src/sphinx/sphinx3# make install

  4. producer says:

    I just created the wav files yellow, please, hello.
    Now I will try to convert them.
    liberty@liberty-desktop:~$ cd 200905/sphinx
    liberty@liberty-desktop:~/200905/sphinx$
    liberty@liberty-desktop:~/200905/sphinx$ sox yellowaudio.wav -r 16000 -c 1 -s -w yellowaudio.raw
    sox: invalid option — w
    sox yellowaudio.wav -r 16000 -c 1 -s yellowaudio.raw worked for me
    sox helloaudio.wav -r 16000 -c 1 -s helloaudio.raw
    created ctlfile
    wget http://www.inference.phy.cam.ac.uk/kv227/lm_giga/lm_giga_5k_nvp_3gram.zip
    unzip lm_giga_5k_nvp_3gram.zip
    liberty@liberty-desktop:~/200905/sphinx$ cd /usr/src/sphinx
    liberty@liberty-desktop:/usr/src/sphinx$ svn co https://cmusphinx.svn.sourceforge.net/svnroot/cmusphinx/trunk/share/lm3g2dmp

  5. producer says:

    Checked out revision 9141.
    liberty@liberty-desktop:/usr/src/sphinx$ cd lm3g2dmp
    make

    liberty@liberty-desktop:~$ SPHINX_ROOT=/usr/src/sphinx
    liberty@liberty-desktop:~$ cd $SPHINX_ROOT/lm3g2dmp
    liberty@liberty-desktop:/usr/src/sphinx/lm3g2dmp

    liberty@liberty-desktop:/usr/src/sphinx/lm3g2dmp$ lm3g2dmp $SPHINX_ROOT/lm_giga_5k_nvp_3gram/lm_giga_5k_nvp_3gram.arpa $SPHINX_ROOT/lm_giga_5k_nvp_3gram
    The program ‘lm3g2dmp’ is currently not installed. You can install it by typing:
    sudo apt-get install sphinx2-bin
    bash: lm3g2dmp: command not found
    liberty@liberty-desktop:/usr/src/sphinx/lm3g2dmp$ sudo apt-get install sphinx2-bin
    liberty@liberty-desktop:/usr/src/sphinx/lm3g2dmp$ lm3g2dmp $SPHINX_ROOT/lm_giga_5k_nvp_3gram/lm_giga_5k_nvp_3gram.arpa $SPHINX_ROOT/lm_giga_5k_nvp_3gram