Skip to main content

Hi everyone 👋

I’m building a Zap that automatically transforms a PDF into an MP3 audio file using Zapier, and I’d love to confirm if this process can be done fully within Zapier or if I need an external integration.

Here’s my current workflow:

  1. Email by Zapier – receive an email with a PDF attachment

  2. PDF.co – convert PDF to text

  3. AI by Zapier – rewrite and format the text into a natural spoken narration

  4. Code by Zapier (JavaScript) – split the text into smaller chunks (for large files)

  5. Code by Zapier (JavaScript) – prepare each chunk for text-to-speech conversion

  6. Looping by Zapier – loop through text chunks

  7. Webhooks by Zapier – send each chunk to Google Cloud Text-to-Speech (returns audioContent in base64)

  8. Code by Zapier (JavaScript) – decode the base64 audio into a valid MP3 file object

  9. Google Drive – upload the MP3

  10. Email by Zapier – send the Drive link back to the sender

Everything works fine up to the upload step — the audio data is valid, but sometimes Google Drive saves it as .mp3.txt instead of a playable file.

👉 My question:
Has anyone here successfully completed a PDF → Text → MP3 automation inside Zapier without external apps?
And if so, what’s the best way to handle the final file creation so Drive recognizes it as an actual MP3 (not text)?

Thanks so much for any insight or examples!
— Giovanni

Hi ​@Giovanni Corra 

FEEDBACK

  • You should be able to combine back to back Code steps
    • You may be able to replace those Code steps with this Zap action: Formatter > Text > Split Text into Chunks for AI Prompts

 

For us to have more info, post screenshots showing how your Zap steps are outlined and configured in the CONFIGURE tab while in EDIT mode with the field mappings visible so we can see the field types.

 


I don´t know how to upload files here. I get rejected also a link of google drive. No idea if there are still problems with the servers.


Hi Troy, 
I was now able to upload the screenshots. let me know if you have an idea about it.