🎬 Ebook to audiobook converter using MiniMax and FFmpeg

⚡ 768 views · 🎬 Content Creation & Video

Description

Ebook to Audiobook Converter

Watch Demo

▶️ 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 PDF → Output Audiobook

Key Features

Perfect For

Requirements

ComponentDetails
n8nSelf-hosted ONLY (cannot run on n8n Cloud)
FFmpegMust be installed in your n8n environment
Replicate APIFor MiniMax TTS (Sign up here)
Google DriveOAuth2 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

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

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

How It Works

Workflow Diagram

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

Troubleshooting

FFmpeg not found?

Rate limit errors?

Google Drive upload fails?


Created by emp0 | More workflows: n8n Gallery

đź”— Nodes Used

HTTP Request, Google Drive, n8n Form Trigger, Read/Write Files from Disk, Extract from File

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup