Open ai says that my attachment isn't in the right format (discord message)

  • I’m trying to create an automation to pull a voice message from a discord conversation (so sending an attachment in the discord convo) and then getting a transcript with Whisper but this is the message i get :
  • The operation failed with an error. [400] Invalid file format. Supported formats: [‘flac’, ‘m4a’, ‘mp3’, ‘mp4’, ‘mpeg’, ‘mpga’, ‘oga’, ‘ogg’, ‘wav’, ‘webm’]

the audio file is a M4a file but it shows here ogg what can i do ?

Thanks in advance for any help you could give me to solve this situation

@Jills_nguetsop whisper is expecting binary data i believe. But you are providing array.

Use “get a file” of http module. Paste this attachment “url” or “proxy url” to get audio in binary data.

And then use that in whisper module for variable “data”

Princy Jain
Make consultant,
For consulting support: Follow up Automated

3 Likes

thank you very much :smiley:

2 Likes

@Jills_nguetsop mark it as a solved if my reply helps and your doubt is solved.

3 Likes