-
-
Notifications
You must be signed in to change notification settings - Fork 125
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
fix: segment_callaback logic #205
Conversation
Your PR comment message got cut off at the end I believe so I'm not entirely sure what this PR is for. It still looks like upstream is calling the segment callback with n_new: https://github.com/ggerganov/whisper.cpp/blob/8a9ad7844d6e2a10cddf4b92de4089d7ac2b14a9/src/whisper.cpp#L6167 If the behaviour was broken then whoops but it looks correct here unless I'm misunderstanding. |
HI @tazz4843 you're right: I've missed to copy paste my evidences. 1.12.0
1.14.2
From what I understand |
Oh yeah that makes a lot more sense. Thanks for the comment and PR then :) |
Starting from v0.13.0
set_segment_callback_safe_lossy
andset_segment_callback_safe
(due to internal changes from whisper.cpp).The PR has been tested on single segment file audio and multiple segment audio
@tazz4843 a new crates release would be very welcome :D