...
...
You will need to follow the below steps for creating your own language model for use with pocketsphinx-sonic-serverPocketSphinx Wrapper. First of all, we will need the "jasr" tool. This tool is present under lib/jasr in the virtual human toolkit folderToolkit. To make the actual Language-Modelslanguage models, you can use 'cmuslm' or 'srilm', which are both included within the jasr folder. However 'cmuslm' currently only works for on Linux and , while 'srilm' works for linux and Windows XPis compatible with both Windows and Linux.
You should do the following:
Run the following commandcreate
create-lm.bat <corpus.txt> <output.arpa>
where,
- corpus.txt is a file containing individual lines(text) that comprise the words that make up the vocabulary for your domain
- output.arpa is the name of the output language model file
...