Convert EPUBs to Audiobooks FREE with Python + TTS AI (OpenRouter, OpenAI, MLX)

Опубликовано: 03 Июль 2026
на канале: AgentsOfMine
25
0

Turn your EPUB library into professional audiobooks using Python and AI text-to-speech. This open-source tool supports multiple TTS providers:

🎯 What it does:
• Converts .epub files to MP3 audiobooks automatically
• Parallel processing (4 workers) - 10-hour book in ~25 minutes
• Supports OpenRouter ($0.20/book), OpenAI, ElevenLabs, or FREE local MLX on Apple Silicon
• Smart chunking (sentence-aware, never cuts mid-sentence)
• Creates chapter-by-chapter MP3s + full audiobook in one zip

💰 Cost comparison (10-hour book):
• OpenRouter Gemini TTS: ~$0.60
• OpenAI gpt-4o-mini-tts: ~$1.80
• ElevenLabs: ~$100 (best quality)
• MLX Local (M1/M2/M3/M4/M5): $0 FREE

⚡ Features:
• Resume interrupted conversions with --continue
• Dry-run mode to test voice/settings (30-second sample)
• 13+ voices, adjustable speed (0.25x - 4.0x)
• Automatic silence/filler word removal with auto-editor
• Works on macOS, Linux, Windows

🔧 Tech stack:
• Python 3.10+
• ffmpeg for audio processing
• OpenAI-compatible TTS APIs
• MLX framework for local Apple Silicon TTS

📦 GitHub: https://github.com/Kifah/book_audiobook_re...

Perfect for converting your personal ebook library to audiobooks without Audible subscriptions!

#python #tts #audiobooks #ai #opensource #mlx #openrouter #automation