Transcribe error for webm file - Error: expected np.ndarray (got bytes) #1237
Unanswered
miesepeter
asked this question in
Q&A
Replies: 1 comment 6 replies
-
audio inputs to you can either save your audio as file or convert it to array/tensor |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I am attempting to use transcribe() but I am running into two (probably connected) issues. Disclaimer: I am a beginner, so the mistake I made might be obvious.
Setting: I am locally (Ubuntu 22.04.2) running a flask app which records audio. This audio is then processed using transcribe - which currently fails. To solve this I would greatly appreciate any input on how to transcribe a webm file recorded with the mediaRecorder
Below my code to record the audio:
The data is received and supposedly handled by:
This fails - the transcribe method throws the following error: "TypeError: expected np.ndarray (got bytes)"
To solve this I attempted to convert to numpy myself, changing the "handle_audio()" to the following:
This unfortunately fails as well with: "Segmentation fault (core dumped)". I have not managed to find this coredump unfortunately.
Beta Was this translation helpful? Give feedback.
All reactions