Asterisk - Sphinx Intergration (c) 2009, Christopher Jansen scribblej@scribblej.com See INSTALL for installation instructions; the standard ./configure && make install should work. ## Asterisk - Sphinx Intergration SERVER ## The full Sphinx and Asterisk integration consists of a server peice, which is this software. Also required is the patch to Asterisk to provide the Generic Speech API with the "Sphinx" engine plugin. The latest versions of this software are available at: http://scribblej.com/ ## USE ## Requires you to have a configuration file, and one or more grammar files (see the lmgen.pl file available with this project to generate grammars), plus the associated dictionary. A sample configuration file might be: -- args.txt -- -hmm /opt/sphinx/communicator6000 -dict ./dict -lm yesno -samprate 8000 -frate 50 -silprob 0.005 -- args.txt -- Please note, the -hmm points to the Acoustic Model, and the Communicator model (linked from my website) is a good choice for English use with telephony. -lm must be included and point to one of your grammars, doesn't matter which. To run this program from the commandline, the syntax is as follows: ./astsphinx 10069 ./args.txt yesno compass 2>/dev/null "10069" is the port number to listen on, "./args.txt" is the name of the config file, as illustrated above "yesno" and "compass" are the names of grammars to load and make available to Asterisk. Note the grammar in the configfile will not be made available to Asterisk unless it is also listed on the commandline. "2>/dev/null" redirects PocketSphinx-specific output to /dev/null. There can be a /lot/ of this output, I only suggest removing this if you are having problems. As always, I'm happy to offer assistance, but I'm horrible about checking email. If you want to track me down, the best way is on IRC, the freenode network, as ScribbleJ. I'm usually in #cmusphinx and/or #asterisk