Changes

Jump to: navigation, search

UNTREF Speech Workshop

239 bytes added, 12:54, 23 September 2013
Hands-on with Sphinx4 Library for Processing
==Hands-on with Sphinx4 Library for Processing==
*This section includes a wrapper of the CMU Sphinx library Sphinx4 recognizer for Processing. Read more about the CMU Sphinx project at http://cmusphinx.sourceforge.net/.*Below we have a library for processing, an example using a grammar of phrases for recognition, and one using a statistical language model. 
===Library===
*JAR file and some necessary language and acoustic models to do Sphinx-based speech recognition.
*Download the zip file below and copy it to your Processing/libraries folder:
**Download file : http://wiki.dxarts.washington.edu/groups/general/wiki/d7564/attachments/d8bfa/sphinx.zip 
===Example - Grammar-based Recognition ===
*Simple grammar-based speech recognitio recognition with Sphinx4 in processing.
**Download file: http://wiki.dxarts.washington.edu/groups/general/wiki/d7564/attachments/63c05/sphinxGrammarCustomdict.zip
this example uses a simple grammar. In the data folder it has a grammar file (.gram), a dictionary file (.dict), and a config file (.xml)
the dict file (upstairs.dict) is a pronunciation dictionary file. It breaks each of those upper-case words fro the grammar into phonemic units. The easiest way to make a new dictionary with your own words is to use the online language tool described below.
finally, the config file (upstairs.config.xml) specifies various parameters and file-names for the speech recognition engine. In this file you will probably need to change the path to your data files such as the grammar, dict, and the Library files you installed above. If you edit the xml file you will see that a lot of the paths are of the form "/Users/rtwomey/" which is obviously my computer, replace with the path to the file on your system. contact me if this doesn't work
 
===Example - SLM-based Recognition===
*This example does Sphinx4 automatic speech recognition using a statistical language model (SLM) rather than a grammar.

Navigation menu