How to convert base64 audio data into files using Zapier workflow

Hi everyone! I need some help with a Zapier automation. I have base64 encoded MP3 data and want to turn it into an actual file that I can save somewhere like Google Drive.

What I’m trying to build is a workflow where someone types text in Slack, it gets converted to speech using Google’s text-to-speech service, and then I get back the audio as base64 data. The problem is I can’t figure out how to make this base64 string into a real file that I can share back in the Slack channel.

I’ve tried using Google Drive’s create file action but it only makes text files. I also looked into the code step in Zapier but you can’t import libraries there so I’m stuck. I even thought about making an HTML file with an audio element instead but still having the same issues.

Has anyone done something similar? Any workarounds or different apps in Zapier that might help with this? Really appreciate any suggestions you might have!

Hit this same problem last month - here’s what worked for me. Create a webhook endpoint with Make.com or a basic cloud function that takes the base64 data, decodes it to binary, and uploads straight to your storage. Have Zapier send the base64 string to your webhook, and it’ll return the file URL. Completely skips Zapier’s file handling issues. The webhook can use whatever libraries you need for proper base64 decoding. Takes maybe 10 minutes to set up and handles MP3 files perfectly.

u can try using webhooks in zapier to send ur base64 audio to filestack or cloudinary. they will decode it and save the file for ya, giving ya a link to share. it works well for audio files, trust me.

Try using Zapier’s File Storage action instead. You’ll need to add the data URI prefix to your base64 data first - something like ‘data:audio/mp3;base64,’ before your actual string. Then feed that complete URI to File Storage and it’ll decode everything properly and spit out a downloadable link. I hit the same wall with Google Drive - it wants file objects, not base64 strings. File Storage gets around that and handles the conversion for you. Once you’ve got the file URL back, just drop it in your Slack channel or wherever you need it.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.