Get an error: {"error":["Error in `inputs`: Malformed soundfile"]}

Hi there,

I get this error when i try to use the huggingface Whisper api.

Anyone can help me to solve this?


Scherm­afbeelding 2024-10-11 om 15.08.53

Malformed input generally means that the format is incorrect.

Possible reasons:

  • The Hugging Face API doesn’t understand the file format (m4a)
  • The encoding of the file is incorrect. For example, in early days I thing the Whisper API only supported 8 bit/16 kHz.
  • The API is expecting a file but you are sending a URL or…
  • The API is expecting a URL and you’re sending a file
  • The filename is incorrect (I’m not sure why there is a UTF8" in front of the filename)
  • The file is not reachable because the link is not public

If you expand the “Data” item, it might give a clue.

L

1 Like

Thanks. I converted the file to mp3, and after that it was working.

1 Like