如何关闭pocketsphinx-python中的信息日志 [英] How do I turn off info logs in pocketsphinx-python

查看:39
本文介绍了如何关闭pocketsphinx-python中的信息日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,运行 cmusphinx/pocketsphinx-的 example.py 脚本python 包将一大堆信息输出到终端.我如何关闭它?

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?

推荐答案

添加

 config.set_string('-logfn', '/dev/null')

这篇关于如何关闭pocketsphinx-python中的信息日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆