How do I turn off E_INFO in pocketsphinx?

烈酒焚心 提交于 2019-12-04 17:56:15

问题


E_INFO is printing a bunch of logs. I don't know how I can turn that off. I searched E_INFO from all source files in pocket/base sphinx but I was not able to find where it set up the flag.


回答1:


Configuration option

-logfn /dev/null

Windows

-logfn nul

turns off logging.

If you are using API you can also use

err_set_logfile(char *filename)



回答2:


If you are using the API, this is what I did:

// turn off pocketsphinx output
err_set_logfp(NULL);
err_set_debug_level(0);

The API given by the accepted answer didn't work for me.




回答3:


i use the API,and add

err_set_logfp(NULL);

before using

ps_init(config);

and it will work without any "INFO"log



来源:https://stackoverflow.com/questions/17825820/how-do-i-turn-off-e-info-in-pocketsphinx

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!