How do I disable red INFO messages when running stream or live recognizer? I am using Configuration, not ConfigurationManager no I can't modify default.config.xml
Asked
Active
Viewed 871 times
0
-
Whay have you tried? – Frank W. May 25 '16 at 23:33
-
I researched but couldn't try anything because it involves changing the default.config.xml which is bundled with the Jar. There's no way to set the xml with a method either. I checked all the constructor and methods of relvent classes – Tahnik Mustasin May 25 '16 at 23:44
-
Do you have access to the afore mentioned Jar file? – Ethan Strider May 26 '16 at 01:48
-
1Possible duplicate of [Disable console mess in CMUSphinx4](http://stackoverflow.com/questions/35560969/disable-console-mess-in-cmusphinx4) – Nikolay Shmyrev May 26 '16 at 04:15
-
@EthanStrider I am using Maven for the dependency. Technically I could download the src and use from there instead. I was wondering if there's a cleaner way. They must have some kind of method to disable it? – Tahnik Mustasin May 26 '16 at 08:06
-
Thank you guys anyway. I've posted an answer – Tahnik Mustasin May 26 '16 at 08:45
1 Answers
6
Ok so the cleanest way I've found is if you're using maven then in the resources folder create edu/cmu/sphinx/api folders and inside api put the default.config.xml from here. Then edit this xml file and change the logLevel property value to OFF. That should remove the info messages from console. Good luck!

Tahnik Mustasin
- 2,216
- 2
- 18
- 21