First of all you must install
- sphinxbase
- pocketsphinx
- two perl modules from CPAN:
- Speech-Recognizer-SPX-0.09.tar.gz
- asterisk-perl-0.10.tar.gz
Then download two scripts from this page
Start a server. Add a dialplan for agi.
exten => s,1,AGI(/some/path/sphinx-netclient.pl) exten => s,n,Hangup