Skip to main content

I would like to create a pretty simple workflow which should get an audio file from Discord channel, pass it to ChatGPT for transcription and then send it to Whatsapp.

I got stuck on passing audio file to ChatGPT. When I take it directly from Discord (Attachments Url)) and test ChatGPT step then get the following:

Failed to create a transcription in ChatGPT (OpenAI)

Files of type "opus" are not supported. Please ensure your file has one of following extensions: [flac, m4a, mp3, mp4, mpeg, mpga, oga, ogg, wav, webm].

I tried to use Webhook to get the file but got the same result.

However when I download the file manually using Discord link the file has .ogg extension.

How can I resolve that? I tried to upload the file to Google Drive and then download it back but with no luck as well.

 

Hi ​@duszak 

Help links for using files in Zaps: https://zapier.com/help/create/basics/send-files-in-zaps

Make sure the file url is publicly accessible as a direct download link.

 

Try removing the trailing / after mapped variable in the File field.

NOTE: The variable label says Attachments (plural), so there could be multiple attachment URLs, which would need to be handled individually, possibly via Looping.

 

Error indicates the file type is not supported.


Hi ​@duszak,

Following up on your post—were you able to try Troy’s solution?

Please let us know if you need more help! 🤗


Try removing the trailing / after mapped variable in the File field.

I put it there only to open mapping fileds for screenshot purpose. It is removed for testing the step.

 

NOTE: The variable label says Attachments (plural), so there could be multiple attachment URLs, which would need to be handled individually, possibly via Looping.

It is not my case, I have only one file under my link.

 

Error indicates the file type is not supported.

And my question is why I get this error. When I paste the link manually in web browser then I am able to download proper .ogg file. However Zapier downloads it and passes to ChatGPT as “opus”.

It seems that Zapier downloads the file somehow differently or I am missing something.


Hi ​@duszak,

 

If you're facing an issue where a file passed through Zapier to ChatGPT results in a file type error, it's likely due to how Zapier handles or interprets the file. To troubleshoot, ensure the file URL is correct and accessible, and confirm the file field is configured correctly to hold a single .ogg file. Since Zapier may detect the internal "opus" codec instead of the .ogg container, verify that your Zap explicitly handles .ogg files. Try using different .ogg files to isolate the problem, and review your entire Zap setup for misconfigurations. If the issue continues, reach out to Zapier support for deeper assistance.


Try using different .ogg files to isolate the problem, and review your entire Zap setup for misconfigurations.

That clue helped me understand that the problem lies in Discord file, not Zapier handling it. I used a url to a sample ogg (https://thetestdata.com/assets/audio/ogg/thetestdata-sample-ogg-1.ogg) and it worked, ChatGPT managed to process it.

However my issue remains unresolved as I am not able to pass a file from Discord to ChatGPT.

When I save the Discord file to Google Drive and then pass it to ChatGPT I get the same result - “Files of type ‘opus’ are not supported.”


Hi ​@duszak,

 

Due to the unsupported 'opus' format. To troubleshoot this, consider converting the file to a supported format like MP3 or WAV before sending it. You can automate this conversion within your Zapier workflow using a compatible tool. Also, ensure the file is correctly saved and accessible in Google Drive, and double-check your Zapier setup to confirm each step is configured correctly and the file is being transferred without issues.

I hope this helps you resolve the issue. Let me know if there's anything else I can assist you with.


Hi ​@JammerS ,

Thank you for your suggestion, I used CloudConvert and it finally works! Still don’t understand why the problem occurs but it doesn’t matter for now.
 

By the way, I am wondering if there will be similar problem with Telegram voice message once it is implemented in Zapier.


Hi ​@duszak,

 

It's excellent that CloudConvert helped resolve your issue, as compatibility and format requirements can sometimes cause problems. Regarding Telegram voice messages, Zapier works to ensure smooth integration but acknowledges potential challenges depending on data handling. The team continues to improve integrations and encourages users to reach out for support if needed. Thanks for being part of the community, and feel free to ask any other questions.


Reply