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
-
Whay have you tried?– Frank W.May 25, 2016 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 MustasinMay 25, 2016 at 23:44
-
Do you have access to the afore mentioned Jar file?– Ethan StriderMay 26, 2016 at 1:48
-
1Possible duplicate of Disable console mess in CMUSphinx4– Nikolay ShmyrevMay 26, 2016 at 4: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 MustasinMay 26, 2016 at 8:06
1 Answer
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!