5,710
edits
Changes
no edit summary
http://phenomenologyftw.files.wordpress.com/2011/03/saussure.gif
=Background Reading:=
*Natalie Jeremijenko. "If Things Can Talk, What Do They Say? If We Can Talk To Things, What Do We Say?" 2005-03-05 [http://www.electronicbookreview.com/thread/firstperson/voicechip
**also see the responses by Simon Penny, Lucy Suchmann, and Natalie linked from that page.
==Hands-on with Processing==
===STT Library===
*Download and install the STT library. http://dl.dropbox.com/u/974773/_keepalive/stt.zip
*Download the library file, unzip it, and copy it to the ''Processing\libraries'' folder.
===Example - Listening with Google ASR ===
*Processing example:
**http://wiki.roberttwomey.com/images/c/c2/Google_listen.zip
*Try switching the recognition language. "es" vs. "en", "de", "fr".
==Hands-on with Sphinx==
===Language Models===
*'''Acoustic models''' versus '''language models'''.*'''Grammars''' versus '''Satistical Statistical Language Models'''.
*Available language models for Sphinx:
**English
**I can talk you through using the resultant model.
==Programming Hands-on with Speech RecognitionSphinx4 Library for Processing==*This section includes a wrapper of the CMU 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 recognition with Sphinx4'''in processing.**Download file: http://wiki.dxarts.washington.edu/groups/general/wiki/d7564/attachments/63c05/sphinxGrammarCustomdict.zipthis 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 grammar file (upstairs.gram) is a JSGF format grammar file that lists the possible words your system can hear. It has a format with individual words in upper-case letters, and a "|" mark between each word. You should be able to edit this file and fill it with your own words.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 java interfacepath to the file on your system.contact me if this doesn't work
===Online Tool for Training Language Models===
*This produces a statistical language model and dictionary (along with various other products) for the text you upload.
*Your source file should be plain text, one sentence per line.
*Upload the file and then click "Compile Knowledge Base."
*On the results screen, click on the .TAR file to download it. Unzip this file:
**The .dic is your pronunciation dictionary. You may want to rename it to .dict to match the files in the sketch. Or change your config file.
**The .lm file is a 3-gram SLM file. If you are trying the SLM example above you will need this as well.
*The grammar example above runs from a grammar (.gram) and a dictionary (.dict). This online language tools generates the dictionary for your text but not the grammar. You will need to make the grammar on your own.
*The SLM example above runs from a grammar (.gram) and a language model (.lm). This online tool generates both files.
*Sphinx Knowledge Base Tool: http://www.speech.cs.cmu.edu/tools/lmtool-new.html
==Other programming==
*Python or c++
*command line
*android
*'''pocketsphinx'''.
=Text To Speech Synthesis=
==Hands-on With Processing==
===Example 1. Speech===
===Example 2. Daisy Bell===
*Processing Daisy Bell example using Google Text To Speech. Requires an internet connection:
**[[http:File:google_daisy//wiki.roberttwomey.com/images/4/43/Google_daisy.zip]]
==Hands-on with Festival==
**
*to switch voices:
**<code>(voice_rab_diphone)</code>**<code>(voice_uw_us_rdt_clunits)</code>
*to exit festival:
**<code>(exit)</code>
==Processing Sketch==