Open MrRace opened 7 months ago
2 minutes is too long for whisper. It only supports up to 30 seconds. I clipped your example audio to 25 seconds and it worked fine. You will have to divide the audio into acceptable lengths and provide to the model. Please refer to https://github.com/openai/whisper/blob/main/whisper/transcribe.py for how to process long files.
Describe the bug Following the instructions in https://github.com/microsoft/Olive/tree/main/examples/whisper, I carried out the following steps for model optimization:
1)
2)
3)
4) Test the optimized ONNX model with
test_transcription.py
:Running the above code results in the following error:
I have uploaded the
eng_2min.wav
file as an attachment.To Reproduce Steps to reproduce the behavior.
Expected behavior A clear and concise description of what you expected to happen.
Olive config
whisper_cpu_fp32.json
:Olive logs Add logs here.
Other information
Additional context Add any other context about the problem here. eng_2min.zip