Example speech recognition application in python. Many instructions and comments exist in the recipewizard.py script file itself.
This tutorial assumes you have mod_python correctly installed. It also depends on mod_openmrcp to be installed and working with an automatic speech recognition server.
- Open /usr/src/freeswitch/scripts/python/recipewizard.py and customize the GRAMMAR_ROOT variable and TTS settings to match your system.
- Create $GRAMMAR_ROOT/mainmenu.xml from contents in mainmenu() comments.
- Add scripts dir to your PYTHONPATH.
- Add an extension to the dialplan under test
- Restart FreeSWITCH.
- Call the extension.