I finally got it all working even with a fairly complex grammar. The main hurdle in all of this is that the grammar parsing may throw errors, but startListeningWithLanguageModelAtPath silently ignores all of that instead of issuing an error.
The only way to figure that out is to turn on the verbose output and read through the text (I did not expect that so it took more time than it should really because the software works great by itself).
If it returned an error or if there was a pocketsphinxErrorFound in OpenEarsEventsObserverDelegate one could at least use that when debugging the problems. Just any text with the word “error” is probably an error.
I am trying 1.3, and it seems the parsing problem is still there, Is that right or maybe I am doing something wrong.
I also get a crash, and when I look at the verbose output I see this:
ERROR: “jsgf_parser.y”, line 155: syntax error, unexpected RULENAME, expecting TOKEN or ‘;’ at line 3 current token ”
Any advice is appreciated
Author
Posts
Viewing 3 posts - 1 through 3 (of 3 total)
Manage Cookie Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.