-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to suppress stdout logging #1448
Comments
Do you want to suppress all the logging? There are options in the whisper params to disable the print outs during transcriptions. You can find them in the code |
Yes, I want to suppress or redirect all logging. it looks like whisper_set_log_callback(nil) would do that? |
You can test by commenting out the print in
and see what is still printed in the console |
I went in and commented out a bunch of of the WHISPER_LOG_INFO() out in the whisper.cpp file and some fprintf() in the main.cpp to eliminate all the logging noise (and then rebuilt with "make -j"). Also wrote a python app that takes advantage of the speed of the c++ version but allows me to pass a WAV file to it and get just the text back: I was having similar trouble as you guys so I looked for a slightly different way. This is the file I am using now: my stt_wav.py file:
and I execute it like this:
|
I am using a library that wraps whisper.cpp (https://github.com/sandrohanea/whisper.net) to write a cross-platform console application. I would like to not see whisper_init_state log messages in the console app. Is there a flag or some other way to suppress logging?
The text was updated successfully, but these errors were encountered: