Java speech recognition like Android

Java speech recognition like Android … here is a solution to the problem.

Java speech recognition like Android

I’m looking for a more android-like version of java speech recognition software because it doesn’t have a .gram file and other stuff, it just returns the said string and I can act on it. I’ve tried using sphinx-4, but using a .gram file makes my program harder to execute.

Solution

The purpose of grammar files is to improve the accuracy of the returned content. Instead of trying to randomly generate a string of English words, tell it to expect specific input.

That is, sphinx-4 can also perform ordinary large dictionary ASR. Read the N-Gram section of this tutorial and check out Transcriber included with the sphinx source code Example.

In addition, you can train your own ternary model, which will enhance the results you get. (For example, put more probability on the word “weather” that is detected.) That’s certainly what Siri does. Apple/Google has a large number of audio fragments of people talking to their phones, some of which are transcribed by humans, from which they train acoustic and language models (so their engine detects what people usually say instead of nonsense).

Related Problems and Solutions