Sphinx2-CTAT Integration Directions for Linux


To use this on a unix-like machine (no longer using cygwin), you need to change some paths to point to their unix equivalents.

Also, when following the main set of directions, ignore everything about installing cygwin. When the directions say to start cygwin and run certain commands, you need to start a terminal window, and perform the same commands except using /sphinx2 as the installation directory for cygwin. For instance, the line
./configure --prefix=/cygdrive/c/sphinx/sphinx2
would become
./configure --prefix=/sphinx2
and so on.

This assumes sphinx is installed at /sphinx2


In the two "helper" files/shell scripts:

In file sphinx2-current:
Change line from
SPHINXBINDIR=/cygdrive/c/sphinx/sphinx2/bin
to
SPHINXBINDIR=/sphinx2/bin

In file sphinx2-current-run:
change lines from
HMM=/cygdrive/c/sphinx/sphinx2/share/sphinx2/model/hmm/6k
TASK=/cygdrive/c/sphinx/sphinx2/share/sphinx2/model/lm/current
CTLFILE=/cygdrive/c/sphinx/sphinx2/share/sphinx2/model/lm/current/current.ctl
to
HMM=/sphinx2/share/sphinx2/model/hmm/6k
TASK=/sphinx2/share/sphinx2/model/lm/current
CTLFILE=/sphinx2/share/sphinx2/model/lm/current/current.ctl


In the Java code (you can change this in NetBeans):

In file Recognizer.java:
At line 62, in the method doRecognize(), change the command string from
"C:\\cygwin\\bin\\bash --login -c \"/cygdrive/c/sphinx/sphinx2/bin/sphinx2-current\""
to
"/sphinx2/bin/sphinx2-current"

In file TutorInterface.java:
In the event handler for the start/record button (line 120 in my example application), change the audioFile string to
"/sphinx2/share/sphinx2/model/lm/current/current.16k"
and the hypFile string to
"/sphinx2/share/sphinx2/model/lm/current/current.hyp"



Feel free to email me with any questions or comments: jonbrown @ cs.cmu.edu.

© 2004, Jonathan Brown