Getting Started with Sphinx 4


I checked out the Spinx 4 voice recognition system from their CVS repository and finally found the time to upgrade my ant so that I could build it.

Earlier I wrote about how some of their models appeared to have gone missing (the website does not contain working download links for them) but surprise, surprise after running ant I found that the models have magically made their appearence in the lib folder.

As with sphinx3, the sphinx 4 documentation is heavy reading, so I decided to try out some of the demos to relieve the boredom. Running the demos isn't a walk in the park either, my first attempt resulted in this Stream closed




at edu.cmu.sphinx.model.acoustic.WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz.ModelLoader.readChar(

at edu.cmu.sphinx.model.acoustic.WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz.ModelLoader.readWord(

at edu.cmu.sphinx.model.acoustic.WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz.ModelLoader.readS3BinaryHeader(

at edu.cmu.sphinx.model.acoustic.WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz.ModelLoader.loadDensityFileBinary(

at edu.cmu.sphinx.model.acoustic.WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz.ModelLoader.loadModelFiles(

at edu.cmu.sphinx.model.acoustic.WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz.ModelLoader.load(

at edu.cmu.sphinx.model.acoustic.WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz.Model.allocate(

at edu.cmu.sphinx.linguist.flat.FlatLinguist.allocateAcousticModel(

at edu.cmu.sphinx.linguist.flat.FlatLinguist.allocate(


at edu.cmu.sphinx.decoder.Decoder.allocate(

at edu.cmu.sphinx.recognizer.Recognizer.allocate(

at demo.sphinx.helloworld.HelloWorld.main(

It is very important to realise that this is still pre alpha software. The developers of Sphinx 4 have done a tremoundous job. It's upto us to figure out how to make use of it. Let's see if I can figure this one out.

As expected zero results in google, I then tried the link to the forums from the sphinx4 home page, unfortunatley it's only for members of the development team only (so why provide the link in the first place).

I am sure I am not the only one who is running into all kinds of stumbling blocks with sphinx 4. There's no point in writing a book if no one will read it, and there's no point in developing a fancy piece of software if no one will use it. Surely a more readable documentation and a more navigable site would go a long way in getting more people to try out sphinx.

comments powered by Disqus