Skip to content
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

get progress updates from python #10

Open
denizsincar29 opened this issue Feb 24, 2023 · 2 comments
Open

get progress updates from python #10

denizsincar29 opened this issue Feb 24, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@denizsincar29
Copy link

Hello! I trying to make a gui voice transcriber in python but i couldn't figure out how to get progress of recognition.
Also, can I fix the small ggml model's spelling errors? Maybe with some apis...
Thanks in advance.

@mico-boje
Copy link

This would probably be quite hard as the C++ components are printing the progress directly to stdout. One hacking solution could be to redirect stdout to a variable in Python and use regex to find the transcription progress.
See: https://stackoverflow.com/questions/1218933/can-i-redirect-the-stdout-into-some-sort-of-string-buffer

This is probably a very poor solution as you would also have to periodically check the stdout in another thread as to not wait for the transcription to finish and it would also suppress all relevant information written to stdout.

@stlukey stlukey added the enhancement New feature or request label Jun 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants