stt icon indicating copy to clipboard operation
stt copied to clipboard

ngram_search.c Couldn't find <s> in first frame.

Open mrjoshuak opened this issue 8 years ago • 1 comments

I have pocketsphinx_continuous working via homebrew, but wasn't able to get this package to work perhaps due to the error in the title.

The first issue was that it seems to be searching in an odd path for the model:

/usr/local/Cellar/cmu-pocketsphinx/HEAD/share/pocketsphinx/model/en-us/en-us/

As apposed to the installed path:

/usr/local/share/pocketsphinx/model/en-us/en-us/

I don't know where that can be set, so I simply copied the install path to the Cellar path to get it working.

It seems to have almost worked, but no text output of the words spoken and towards the end of the output it has the following line:

ERROR: "ngram_search.c", line 1139: Couldn't find <s> in first frame

The entire output is in this gist.

Any clues as to what is going wrong?

mrjoshuak avatar Dec 23 '16 08:12 mrjoshuak

It's been some time since I've worked with this package, but I remember having trouble with the standardly available pocketsphinx package from brew. I documented the brew tap I used instead here, https://github.com/kladd/pocketsphinx/blob/master/README.md. If it works it should be documented here as well. This is also why the model path was unusual. If that doesn't help I'll have time to test it this evening.

kladd avatar Dec 23 '16 18:12 kladd