Skip to main content

Ebook to audiobook converter using MiniMax and FFmpeg

Workflow preview

Workflow preview
100%
Ebook to audiobook converter using MiniMax and FFmpeg preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Ebook to Audiobook Converter ️ Watch Full Demo Video What It...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.readwritefile, n8n-nodes-base.code, n8n-nodes-base.executecommand, n8n-nodes-base.stickynote, n8n-nodes-base.formtrigger, n8n-nodes-base.extractfromfile, n8n-nodes-base.splitinbatches, n8n-nodes-base.wait

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Jay Emp0.

Original n8n.io source

1.1 Workflow description

Title
Ebook to audiobook converter using MiniMax and FFmpeg
Workflow name
Ebook to audiobook converter using MiniMax and FFmpeg

Ebook to Audiobook Converter

▶️ Watch Full Demo Video


What It Does

Turn any PDF ebook into a professional audiobook automatically. Upload a PDF, get an MP3 audiobook in your Google Drive. Perfect for listening to books, research papers, or documents on the go.

Example: Input PDFOutput Audiobook

Key Features

  • Upload PDF via web form → Get MP3 audiobook in Google Drive
  • Natural-sounding AI voices (MiniMax Speech-02-HD)
  • Automatic text extraction, chunking, and audio merging
  • Customizable voice, speed, and emotion settings
  • Processes long books in batches with smart rate limiting

Perfect For

  • Students: Turn textbooks into study audiobooks
  • Professionals: Listen to reports and documents while commuting
  • Content Creators: Repurpose written content as audio
  • Accessibility: Make content accessible to visually impaired users

Requirements

Component Details
n8n Self-hosted ONLY (cannot run on n8n Cloud)
FFmpeg Must be installed in your n8n environment
Replicate API For MiniMax TTS (Sign up here)
Google Drive OAuth2 credentials + "Audiobook" folder

⚠️ Important: This workflow does NOT work on n8n Cloud because FFmpeg installation is required.

Quick Setup

1. Install FFmpeg

Docker users:

docker exec -it <n8n-container-name> /bin/bash
apt-get update && apt-get install -y ffmpeg

Native installation:

sudo apt-get install ffmpeg  # Linux
brew install ffmpeg          # macOS

2. Get API Keys

  • Replicate: Sign up at replicate.com and copy your API token
  • Google Drive: Set up OAuth2 in n8n and create an "Audiobook" folder in Drive

3. Import & Configure

  1. Import n8n.json into your n8n instance
  2. Replace the Replicate API token in the "MINIMAX TTS" node
  3. Configure Google Drive credentials and select your "Audiobook" folder
  4. Activate the workflow

Cost Estimate

Component Cost
MiniMax TTS API $0.15 per 1000 characters ($3-5 for average book)
Google Drive Storage Free (up to 15GB)
Processing Time ~1-2 minutes per 10 pages

How It Works

PDF Upload → Extract Text → Split into Chunks → Convert to Speech (batches of 5)
→ Merge Audio Files (FFmpeg) → Upload to Google Drive

The workflow uses four main modules:

  1. Extraction: PDF text extraction and intelligent chunking
  2. Conversion: MiniMax TTS processes text in batches
  3. Merging: FFmpeg combines all audio files seamlessly
  4. Upload: Final audiobook saved to Google Drive

Voice Settings (Customizable)

{
  "voice_id": "Friendly_Person",
  "emotion": "happy",
  "speed": 1,
  "pitch": 0
}

Available emotions: happy, neutral, sad, angry, excited

Limitations

  • ⚠️ Self-hosted n8n ONLY (not compatible with n8n Cloud)
  • PDF files only (not EPUB, MOBI, or scanned images)
  • Large books (500+ pages) take longer to process
  • Requires FFmpeg installation (see setup above)

Troubleshooting

FFmpeg not found?

  • Docker: Run docker exec -it <container> /bin/bash then apt-get install ffmpeg
  • Native: Run sudo apt-get install ffmpeg (Linux) or brew install ffmpeg (macOS)

Rate limit errors?

  • Increase wait time in the "WAITS FOR 5 SECONDS" node to 10-15 seconds

Google Drive upload fails?

  • Make sure you created the "Audiobook" folder in your Google Drive
  • Reconfigure OAuth2 credentials in n8n

Created by emp0 | More workflows: n8n Gallery

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Save Audio Chucks

Type / Role
n8n-nodes-base.readWriteFile - readWriteFile
Config choices
Version 1

Block 2 - Generate `concat_list.txt`

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 3 - Save concat_list

Type / Role
n8n-nodes-base.readWriteFile - readWriteFile
Config choices
Version 1

Block 4 - Join audio chucks and delete all files

Type / Role
n8n-nodes-base.executeCommand - executeCommand
Config choices
Version 1

Block 5 - read final_merged

Type / Role
n8n-nodes-base.readWriteFile - readWriteFile
Config choices
Version 1

Block 6 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - FORM

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.3

Block 11 - EXTRACT TEXT

Type / Role
n8n-nodes-base.extractFromFile - extractFromFile
Config choices
Version 1

Block 12 - SPLITS THE TEXT ACCORGING TO RULES

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Loop Over Text chunks (5) at a time

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 14 - WAITS FOR 5 SECONDS

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 15 - CONVERTS URL TO AUDIO FILES

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 16 - GIVES INDEXES TO AUDIO FILES

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 17 - Uploads Ebook

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 18 - MINIMAX TTS

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 19 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Ebook to audiobook converter using MiniMax and FFmpeg
Complexity advanced
Nodes 19
Categories Content Creation, Multimodal AI
Author Jay Emp0
Published 20 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9944/9944.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Ebook to audiobook converter using MiniMax and FFmpeg do?

Ebook to Audiobook Converter ️ Watch Full Demo Video What It...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.