Open benniekiss opened 3 days ago
@benniekiss, Yes whisper.cpp
writes the logs stderr so I believe you can just redirect the stderr to devnull to supress them or redirect it to a file if you want.
I will try to expose this as a utility function, or probably I was thinking of adding it as a parameter to the Model class, something like:
model = Model('tiny', redirect_whispercpp_logs_to=...)
What do you think ?
Here you go, please pull the latest commit and give it a try. You can suppress the logs by setting the parameter to None
model = Model('tiny', redirect_whispercpp_logs_to=None)
Thanks for implementing this! I will give it a test in the next couple of days
When the whisper model is loaded, it prints a lot of initialization information to the console. I'd like to be able to redirect this to a separate log file and silence the console output.
llama-cpp-python
does something similar when loading a model, and I am able to redirect the output with something like:but I have not been successful using this with
pywhispercpp
. I was wondering if anyone had some insight on how to make this work.The logs I would like to silence: