pdf2audio-parallel
Parallel PDF to Audio Converter
Convert multiple PDF chapters to MP3 audio in parallel by delegating to /pdf2audio-minimax.
Trigger Phrases
This skill triggers on natural language requests:
| User Says | Action |
|---|---|
| "generate mp3 for the story of 我的故事" | Convert all chapters |
| "为故事我的故事生成mp3" | Convert all chapters |
| "为故事我的故事第[01, 03-04]章生成mp3" | Convert specified chapters |
| "generate mp3 for story of 我的故事, chapter [01-05]" | Convert specified chapters |
Input Format
Direct command:
/pdf2audio-parallel "<story_dir>/chapters/<story_name>-[chapter_pattern].pdf" [voice_id]
Examples:
/pdf2audio-parallel "重写时间的源代码/chapters/重写时间的源代码-[01-05].pdf"/pdf2audio-parallel "我的故事/chapters/我的故事-[01, 03-04].pdf" "Chinese (Mandarin)_Gentleman"
Workflow
1. Parse Input Parameters
From natural language: Extract story name, then discover chapters:
# Find story directory
ls -d <STORY_NAME>/
# List available PDF chapters
ls <STORY_NAME>/chapters/<STORY_NAME>-*.pdf
From direct command: Extract from path pattern:
story_dir: Story directory name (e.g.,重写时间的源代码)story_name: Story name from filename pattern (usually same as directory)chapter_pattern: Chapter numbers (e.g.,01-05or[01, 03-04])voice_id: Voice ID for TTS (optional, passed to pdf2audio-minimax)
2. Generate Chapter List
Parse the chapter pattern and expand into individual files.
Supported Patterns:
| Pattern | Expands To |
|---|---|
[01-05] |
01, 02, 03, 04, 05 |
[03] |
03 |
[01, 03-04] |
01, 03, 04 |
[01-02, 05-07] |
01, 02, 05, 06, 07 |
[01, 03, 05] |
01, 03, 05 |
Example: 我的故事/chapters/我的故事-[01, 03-04].pdf expands to:
我的故事/chapters/我的故事-01.pdf我的故事/chapters/我的故事-03.pdf我的故事/chapters/我的故事-04.pdf
3. Launch Parallel Agents
Use Task tool to spawn N agents simultaneously, each calling /pdf2audio-minimax for one PDF.
Agent Prompt Template:
Convert this PDF to MP3 using the pdf2audio-minimax skill:
/pdf2audio-minimax <story_dir>/chapters/<story_name>-XX.pdf [voice_id]
Example:
/pdf2audio-minimax 我的故事/chapters/我的故事-01.pdf Chinese (Mandarin)_Gentleman
IMPORTANT:
- Each agent delegates to
/pdf2audio-minimaxwhich handles:- Reading PDF content
- Extracting chapter title from content
- Voice selection (auto or specified)
- Audio conversion via MiniMax
- File naming:
<故事名>_<章节号>_<章节标题>.mp3
- This skill only handles parallel orchestration
4. Collect Results
Gather outputs from all agents and report:
- Successfully converted files with final paths
- Any errors encountered
Quick Examples
Example 1: Simple Range
User Input:
/pdf2audio-parallel "我的故事/chapters/我的故事-[01-03].pdf"
Parallel Agent Tasks:
- Agent 1:
/pdf2audio-minimax 我的故事/chapters/我的故事-01.pdf→我的故事_01_<标题>.mp3 - Agent 2:
/pdf2audio-minimax 我的故事/chapters/我的故事-02.pdf→我的故事_02_<标题>.mp3 - Agent 3:
/pdf2audio-minimax 我的故事/chapters/我的故事-03.pdf→我的故事_03_<标题>.mp3
Example 2: With Voice ID
User Input:
/pdf2audio-parallel "星际迷航/chapters/星际迷航-[01, 03-04].pdf" "Chinese (Mandarin)_Gentleman"
Parallel Agent Tasks:
- Agent 1:
/pdf2audio-minimax 星际迷航/chapters/星际迷航-01.pdf Chinese (Mandarin)_Gentleman - Agent 2:
/pdf2audio-minimax 星际迷航/chapters/星际迷航-03.pdf Chinese (Mandarin)_Gentleman - Agent 3:
/pdf2audio-minimax 星际迷航/chapters/星际迷航-04.pdf Chinese (Mandarin)_Gentleman
Notes
- Voice selection and file naming are handled by
pdf2audio-minimax - See
pdf2audio-minimaxskill for voice options and naming convention - Output files are saved to
<story_dir>/audiobook/directory
More from aicoder2048/story-writer
md2pdf
Convert Markdown files to beautifully styled PDFs with full Chinese font support. Use when: (1) Converting .md files to PDF format, (2) Creating printable documents from Markdown, (3) Generating book chapters or story PDFs, (4) Needing PDF output with custom styling (colors, fonts, backgrounds), (5) Working with Chinese text that needs proper rendering in PDF.
6pdf
Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.
1canvas-design
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.
1story-design
|
1story-writer
通用短篇小说创作技能包。支持多种类型(武侠/科幻/童话/现言),执行大纲、人物、目录、章节的专业创作。根据类型参数加载对应的创作方法论和写作风格。
1pdf2audio-minimax
Convert PDF files to MP3 audio using MiniMax MCP Server's text-to-audio tool. Use when user wants to convert a PDF to audio/MP3, create audiobook from PDF, or text-to-speech for PDF documents. Requires PDF file path; voice ID is optional (auto-selects based on content).
1