-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Short audio files not decoded (empty output) #2065
Comments
There is a check to stop processing if less than 1s of audio remains: Lines 5271 to 5277 in a750868
I've figured it helps in most situations, but obviously can affect negatively in cases like yours. This should become an input parameter |
Thanks for pointing it out. However, even if I comment out this block of code, the result is the same (no output). If it improves behavior in some scenarios, the guard condition could stay as is, but it would be nice if a more prominent output message was shown at least when running via "main" in interactive mode (otherwise it just looks as if it's "broken somehow", which may be off-putting for first-time users). (And quick processing of short audio files is needed for implementing interactive voice interfaces a'la Talon/Alexa etc.) |
@jploski you can pad your input with 0s until you hit 1000ms in length |
I'm not 100% sure if this is the same issue, but I'm currently having a problem where if the first bit of audio is blank it just doesnt bother transcribing the rest. So if my audio file has say 10 seconds of silence at the beginning but then a minute of audio after that, it outputs a blank transcript. I think what's happening is if the first segment is empty, whisper doesn't try for the next segment. (Small update, I think this only occurs if you have single segment set to true) |
Reporting against a750868 with ggml-large-v3-q5_0.bin. If the file to decode is very short (e.g. < 1s, single recorded word), the GGML version will consistently fail to output anything at all:
(no text output)
But if the same file is padded with 1 second of silence in front, it starts working:
It's an easy enough workaround, but why doesn't it just work unpadded? I don't have the same issue with the whisper-large-v3 in Python.
The text was updated successfully, but these errors were encountered: