Issue with load_audio function from UploadFile input #2482
Unanswered
Waligator97420
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone.
I am using whisper with FastApi and trying to pass my uploaded file (which is an audio .m4a) to transcribe function.
As suggested in this discussion https://github.com/openai/whisper/discussions/380, I understand that I need to use load_audio function to pass the result to transcribe function because there is a preprocessing by ffmeg behind.
But for a reason that I don't understand, I have an error when ffmpeg command is executed:
Here's my code:
For this one, I've inspire me from the discussion above and the beautiful work of @jianfch which give more logs here https://github.com/jianfch/stable-ts/blob/main/stable_whisper/audio/utils.py
Hope someone can help me on it!
I'm a newbie to Pyhton and this is my first discussion.
Sorry if I'm mistaken on some things.
Beta Was this translation helpful? Give feedback.
All reactions