0

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

6
  • 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 May 25, 2016 at 23:44
  • Do you have access to the afore mentioned Jar file? May 26, 2016 at 1:48
  • 1
    Possible duplicate of Disable console mess in CMUSphinx4 May 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? May 26, 2016 at 8:06

1 Answer 1

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!

1
  • Works for me! Thank you
    – Normal
    Nov 14, 2017 at 14:05

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.