You will need to follow the below steps for creating your own language model for use with pocketsphinx-sonic-server.

You should do the following

  1. cd jasr/bin
  2. ant
  3. cd srilm
  4. ./create-lm.bat <corpus.txt> <output.arpa>

where "corpus.txt" is a text file containing individual lines(text) that comprise the words that make up the vocabulary for your domain and output.arpa is the name of your output file i.e. Language-Model.