First i'll explain what's happening. I'm using Sphinx 4 for my voice recognition and I have zero experience with it or any other voice recognition so I'm not very good at it. Basically i'm attempting to make my own JARVIS type thing just not nearly as sophisticated as that. All i'm looking to do at the beginning is to simply navigate my computer with pre-made commands such as 'start photoshop'. I know how to open photoshop like that but I can't get sphinx to recognize my voice. When I say 'start photoshop' the console just prints 'hello' + one of the sample names. I don't know why. As I said i'm very new to voice recognition and therefore I have just taken some code off of the internet to study and learn from it. Here is the code: http://pastebin.com/nbF6BSDB
Grammar file: http://pastebin.com/Mpric8gG
BTW go girl is used for Google. Any help?
When I say 'start photoshop' the console just prints 'hello' + one of the sample names.
You didn't replace the grammar file inside the jar properly. Probably you put the grammar in other location and it was overwritten during build. To replace the grammar you need to:
Alternatively you can specify another grammar location in xml config file with file:
URI to load grammar from a file, not from a resource inside the jar.