This thread is intended as a collection point for special purpose dic files tailored for specific uses (and development testing...). Wherever possible those dic files should be accompanied by a script that is designed to act upon the commands that pocketsphinx decodes.
Very keen for anyone to post whatever dic files they find relevant!
NOTES :
1) pocketsphinx needs to be installed before these files or scripts will be of any use to you.
technosaurus original .pet link here:
http://www.murga-linux.com/puppy/viewto ... 5&start=27
2) My notes re how to make a new dic file here:
http://murga-linux.com/puppy/viewtopic. ... 733#730733
3) dic files contain a CAPITALISED version of the commands that you initially submit for compilation. This is how pocketsphinx identifies your special vocabulary as being different to its original vocab set. Your script therefore needs to identify CAPITALISED commands eg: when you say "start browser" the pocketsphinx output becomes START-BROWSER not start-browser.
To see the list of decoded output commands associated with each dic file simply open the xxxx.vocab file as text. (These output commands are what your script must recognise)
If you already have pocketsphinx set up correctly all you need to do to get a special set of dic files running is to copy the five files into the /usr/share/pocketsphinx/model/lm directory (no need to remove any previous dic files).
Whatever script you use to start pocketsphinx needs to reference the new dic files as follows:
Code: Select all
#pocketsphinx_continuous -lm nameofnewfile.lm -dict nameofnewfile.dic
If you don't have pocketsphinx already installed here are my my notes for getting pocketsphinx installed and set up with a special set of dic files:
1) Download technosaurus pocketsphinx pet from here:
http://murga-linux.com/puppy/viewtopic. ... 5&start=27
2) Install the pet
3) Create a new directory of /usr/share/pocketsphinx (we will be using this later...)
4) Download the other source files referred to by technosaurus from this link:
http://hivelocity.dl.sourceforge.net/pr ... 0.8.tar.gz
5) Extract these files in your download directory and copy the "model" directory from the source into the /usr/share/pocketsphinx directory created above. (ie it becomes /usr/share/pocketsphinx/model)
6) Choose the set of special dic files that you want and copy them into the /usr/share/pocketsphinx/model/lm directory as loose files. There is no need to remove any previous dic files.
7) Use your script to start pocketsphinx as shown above - referencing the correct name of the dic files you have added.
Testing without a start/recognition/action script :
If you do not yet have a script and just want to manually confirm that pocketsphinx is correctly decoding your speech do the following:
Go into /usr/bin, right click the openspace and choose "window, terminal here"
Ensure that your microphone is plugged in then type the following:
Code: Select all
#./pocketsphinx_continuous -lm nameofnewfile.lm -dict nameofnewfile.dic
You should see pocketsphinx set itself up and then show
READY....
Speak each of the commands included in the special dic file (do it slowly so the program has 3 seconds or so to recognise each word) and you should see the spoken command recognised. Check the whole list to ensure the integrity of recognition matches what you need. If it's working go ahead and write a script to handle the capitalised commands output from sphinx.
.