I'm experimenting by making a program that automates the process of adaptation from the standard acoustic model, the program is calling these functions (sphinx_fe, bw, map_adapt) from system calls (example: system ("texthere"); ). But when I execute sphinx_fe, bw and map_adapt I would not like to see any "INFO:" output, only warnings or errors if there are any.
In order to do that for sphinx_fe, I modified the sphinx_fe source code by omitting the relevant lines of code that print on screen, and by recompiling it gives the desired effect.
My question: is there any nicer way to do that without having to modify every single line of code that prints "INFO" type output? (because I will need this omission also with bw and map_adapt)
Last edit: Orest 2014-12-10
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You can modify sphinx_fe' or make your own binary and callerr_set_debug_level(ERR_ERROR)' to see only errors. See
sphinxbase/include/sphinxbase/err.h for the full list of possible options. I think it's a good idea to add a corresponding command-line switch to a core set of arguments. What do you think, Nickolay?
Last edit: Nickolay V. Shmyrev 2014-12-11
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm experimenting by making a program that automates the process of adaptation from the standard acoustic model, the program is calling these functions (sphinx_fe, bw, map_adapt) from system calls (example: system ("texthere"); ). But when I execute sphinx_fe, bw and map_adapt I would not like to see any "INFO:" output, only warnings or errors if there are any.
In order to do that for sphinx_fe, I modified the sphinx_fe source code by omitting the relevant lines of code that print on screen, and by recompiling it gives the desired effect.
My question: is there any nicer way to do that without having to modify every single line of code that prints "INFO" type output? (because I will need this omission also with bw and map_adapt)
Last edit: Orest 2014-12-10
you can redirect log by adding
Last edit: Nickolay V. Shmyrev 2014-12-11
You can modify
sphinx_fe' or make your own binary and callerr_set_debug_level(ERR_ERROR)' to see only errors. Seesphinxbase/include/sphinxbase/err.h for the full list of possible options. I think it's a good idea to add a corresponding command-line switch to a core set of arguments. What do you think, Nickolay?
Last edit: Nickolay V. Shmyrev 2014-12-11
I think it's ok as is now.