问题
For example, running the example.py
script of the cmusphinx/pocketsphinx-python package outputs a whole bunch of info to the terminal. How do I switch it off?
回答1:
Add
config.set_string('-logfn', '/dev/null')
来源:https://stackoverflow.com/questions/30734860/how-do-i-turn-off-info-logs-in-pocketsphinx-python