Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You will need to follow the below steps for creating your own language model for use with PocketSphinx Wrapper. First of all, we will need the "jasr" tool. This tool is present under lib/jasr in the Toolkit. To make the actual language models, you can use 'cmuslm' or 'srilm', which are both included within the jasr folder. However 'cmuslm' currently only works on Linux, while 'srilm' is compatible with both Windows and Linux.

You should do the following:

the PocketSphinx Wrapper.

  • Go to the "

...

  • data\pocketsphinx" folder within the Toolkit

...

Run the following command
 
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

  • There is a file called corpus.txt which contains the utterances/lines to be spoken by the character. Replace this file with a file containing the new lines which you want the character to speak. Each utterance is one line in the file
  • Now double click the batch file called generate_language_model.bat
  • This will generate a new lm.arpa file which will be the new language model containing the lines in corpus.txt
  • Now if you relaunch the PocketSphinx Wrapper from the launcher, it will reference this new language model that you just created

...

Known Issues

Message API

Sends:

...