当前位置: 首页 > Skill >

Audio Gen 1.0.0

Audio Gen 1.0.0

Audio Gen 1.0.0

按需生成有声书、播客或教育音频内容。用户提供想法或主题,Claude AI 编写脚本,ElevenLabs 将其转换为...

1.0.0 2026.11.25 270
获取Skill文件查看使用说明
作 者:林宁 许可证: 更新时间:2026.11.25
本文目录展开

🎙️ Audio Content Generator

Generate high-quality audiobooks, podcasts, or educational audio content on demand using AI-written scripts and ElevenLabs text-to-speech.

Quick Start

Create an audiobook chapter:

User: "Create a 5-minute audiobook chapter about a dragon discovering friendship"

Generate a podcast:

User: "Make a 10-minute podcast about the history of coffee"

Produce educational content:

User: "Generate a 15-minute educational audio explaining how neural networks work"

Content Formats

Audiobook

Style: Narrative storytelling with emotional depth

  • Clear beginning, middle, and end
  • Descriptive language and vivid imagery
  • Dramatic pacing with thoughtful pauses
  • Emotional tone that matches the story
  • Use voice effects like [whispers], [excited], [serious] for impact

Example Structure:

[Opening hook - set the scene]
[long pause]

[Story development with character emotions]
[short pause] between sentences
[long pause] between paragraphs

[Climax with dramatic tension]
[long pause]

[Resolution and emotional closure]

Podcast

Style: Conversational and engaging

  • Warm, welcoming intro (15-30 seconds)
  • Main content with natural flow
  • Transitions between topics
  • Memorable outro with key takeaways
  • Conversational tone throughout

Example Structure:

**Intro:** "Welcome to [topic]. I'm excited to share..."
[short pause]

**Main Content:** "Let's start with... [topic 1]"
[long pause] between segments

**Outro:** "Thanks for listening! Remember..."

Educational Content

Style: Clear explanations for learning

  • Simple introductions to complex topics
  • Step-by-step breakdowns
  • Real-world examples and analogies
  • Recap of key concepts at the end
  • Enthusiastic delivery with [excited] for important points

Example Structure:

**Introduction:** What is [topic] and why it matters?

**Main Content:**
- Concept 1: Explanation + Example
- Concept 2: Explanation + Example
- Concept 3: Explanation + Example

**Summary:** Key takeaways and next steps

Length Guidelines

Word Count to Duration Conversion:

  • 5 minutes = ~375 words
  • 10 minutes = ~750 words
  • 15 minutes = ~1,125 words
  • 20 minutes = ~1,500 words
  • 30 minutes = ~2,250 words

Pacing: Average conversational speed is ~75 words per minute

Practical Limits:

  • Minimum: 2 minutes (~150 words)
  • Maximum: 30 minutes (~2,250 words)
  • Sweet spot: 5-15 minutes for best engagement

Workflow Instructions

Step 1: Understand the Request

Parse the user's request for:

  1. Content type (audiobook, podcast, educational, or inferred from topic)
  2. Topic/theme (what should the content be about)
  3. Target length (how many minutes)
  4. Tone/style (dramatic, casual, educational, etc.)
  5. Special requests (specific voice, emphasis on certain points)

Step 2: Calculate Word Count

target_words = target_minutes × 75

Example: 10 minutes = 10 × 75 = 750 words

Step 3: Generate the Script

Write the complete script following these rules:

Content Guidelines:

  • Start strong with an engaging hook
  • Maintain natural, conversational flow
  • Use active voice and simple sentence structure
  • Include relevant examples and stories
  • End with a satisfying conclusion

Formatting Rules:

  • Add [short pause] after sentences (use sparingly, not every sentence)
  • Add [long pause] between paragraphs or major sections
  • Use voice effects strategically: [whispers], [shouts], [excited], [serious], [sarcastic], [sings], [laughs]
  • Write numbers as words: "twenty-three" not "23"
  • Spell out acronyms first time: "AI, or artificial intelligence"
  • Avoid complex punctuation (em-dashes work, but semicolons don't read well)
  • Remove markdown formatting before TTS conversion

Step 4: Present the Script

Show the script to the user and ask:

Here's the [format] script I've created (approximately [length] minutes):

[Display the script]

Would you like me to:
1. Generate the audio now
2. Make changes to the script
3. Adjust the length or tone

Step 5: Handle User Feedback

If user requests changes:

  • Regenerate the script with adjustments
  • Maintain the target word count
  • Present the revised version

If user approves:

  • Proceed to audio generation

Step 6: Generate Audio

Format the script for TTS:

  1. Remove any remaining markdown (headers, bold, italics)
  2. Ensure voice effects are in proper [effect] format
  3. Check that pauses are appropriately placed
  4. Verify numbers and acronyms are spelled out

Invoke the TTS script:

IMPORTANT: The ELEVENLABS_API_KEY environment variable is already configured in the system. Simply invoke the TTS script directly.

uv run /home/clawdbot/clawdbot/skills/sag/scripts/tts.py 
  -o /tmp/audio-gen-[timestamp]-[topic-slug].mp3 
  -m eleven_multilingual_v2 
  "[formatted_script]"

For long scripts, use heredoc:

uv run /home/clawdbot/clawdbot/skills/sag/scripts/tts.py 
  -o /tmp/audio-gen-[timestamp]-[topic-slug].mp3 
  -m eleven_multilingual_v2 
  "$(cat <<'EOF'
[formatted_script]
EOF
)"

Return the result:

MEDIA:/tmp/audio-gen-[timestamp]-[topic-slug].mp3

Your [format] is ready! [Brief description of content]. Duration: approximately [X] minutes.

Voice Effects (SSML Tags)

Available voice modulation effects (use sparingly for impact):

  • [whispers] - Soft, intimate delivery
  • [shouts] - Loud, emphatic delivery
  • [excited] - Enthusiastic, energetic tone
  • [serious] - Grave, solemn tone
  • [sarcastic] - Ironic, mocking tone
  • [sings] - Musical, melodic delivery
  • [laughs] - Amused, jovial tone
  • [short pause] - Brief silence (~0.5s)
  • [long pause] - Extended silence (~1-2s)

Best Practices:

  • Use effects for emotional moments, not every sentence
  • Pauses are your most powerful tool for pacing
  • Voice effects work best in audiobooks and dramatic content
  • Keep podcasts and educational content mostly natural

Error Handling

Script Too Long

If the generated script exceeds target by >20%:

The script I generated is [X] words ([Y] minutes), which is longer than your target of [Z] minutes. Would you like me to:
1. Condense it to fit the target length
2. Split it into multiple parts
3. Keep it as is

Script Too Short

If the generated script is under target by >20%:

The script is [X] words ([Y] minutes), shorter than your target. Would you like me to:
1. Expand it with more detail
2. Add additional examples or stories
3. Generate as is

TTS Generation Fails

If the TTS script fails:

I've created the script, but I'm unable to generate the audio right now. Here's your script:

[Display script]

Error: [specific error message]

You can:
1. Check that ELEVENLABS_API_KEY is configured
2. Use the script with your own text-to-speech tool
3. Try again in a moment
4. Ask me to troubleshoot the audio generation

Common TTS Issues:

  • API key not set: Verify ELEVENLABS_API_KEY in config
  • Rate limit: Wait a moment and try again
  • Text too long: Break into smaller chunks (max ~5000 characters)

Invalid Request

For unrealistic requests (e.g., "100-hour audiobook"):

That length would require [X] words and take significant time to generate. I recommend:
- Breaking it into multiple episodes/chapters
- Targeting 5-30 minutes per audio file
- Creating a series instead of one long file

Tips for Best Results

For Engaging Audiobooks

  • Focus on character emotions and sensory details
  • Use pauses to build dramatic tension
  • Vary sentence length for rhythm
  • Include internal monologue and reflection

For Compelling Podcasts

  • Start with a question or surprising fact
  • Use conversational phrases: "You know what's interesting..."
  • Include relatable examples from everyday life
  • End with actionable takeaways

For Effective Educational Content

  • Use the "explain like I'm five" approach
  • Build from simple to complex concepts
  • Repeat key terms and definitions
  • Provide multiple examples for clarity

Technical Notes

TTS Implementation:

  • Uses Python script: ~/.clawdbot/clawdbot/skills/sag/scripts/tts.py
  • No binary installation required (pure Python + requests)
  • Directly calls ElevenLabs API
  • Compatible with Linux and macOS

File Storage:

  • Audio files are saved to /tmp/audio-gen/
  • Filename format: audio-gen-[timestamp]-[topic-slug].mp3
  • Files are automatically cleaned up after 24 hours

API Requirements:

  • Anthropic API for script generation (already configured)
  • ElevenLabs API for text-to-speech (configured via ELEVENLABS_API_KEY)
  • Both services must be configured and have available credits

Supported Models:

  • eleven_multilingual_v2 - Best quality (default)
  • eleven_turbo_v2 - Faster generation
  • eleven_turbo_v2_5 - Fastest generation
  • eleven_multilingual_v1 - Legacy model

Cost Estimate:

  • 10-minute audio (~750 words): approximately $1.43
    • Claude API: ~$0.075
    • ElevenLabs: ~$1.35
  • Longer content scales proportionally

Generation Time:

  • Script generation: 5-30 seconds (depending on length)
  • Audio generation: 5-15 seconds (ElevenLabs processing)
  • Total: Usually under 1 minute for 10-minute audio

Limitations

  1. Maximum Length: 30 minutes (~2,250 words) per audio file

    • For longer content, create multiple parts/episodes
  2. Single Voice: Currently supports one narrator voice

    • Cannot do multi-voice dialogue or character voices
  3. No Background Music: Pure voice narration only

    • No background music, sound effects, or audio mixing
  4. Real-time Generation: Each request generates fresh content

    • No pre-made templates or cached audio
  5. Language: Primarily English

    • ElevenLabs supports other languages, but content generation optimized for English

Example Conversations

Example 1: Quick Audiobook

User: Create a 5-minute audiobook chapter about a lonely robot learning to feel emotions

Agent: I'll create a 5-minute sci-fi audiobook chapter. Let me write the story...

[Generates ~400-word narrative with emotional arc]

Here's the story I've created about Unit-7, a maintenance robot who discovers the meaning of friendship through an unexpected encounter. Would you like me to generate the audio or make changes first?

User: Generate the audio

Agent: [Invokes SAG with formatted script]

MEDIA:/tmp/audio-gen-1234567890-lonely-robot.mp3

Your audiobook chapter is ready! The story follows Unit-7's emotional awakening through a touching encounter with a young engineer. Duration: approximately 5 minutes.

Example 2: Podcast with Revisions

User: Make a 10-minute podcast about sustainable living tips

Agent: [Generates podcast script with intro, 5 practical tips, outro]

Here's a 10-minute podcast with 5 actionable sustainable living tips. The tone is encouraging and practical. Would you like me to:
1. Generate audio now
2. Make it more urgent/climate-focused
3. Add more specific examples
4. Adjust the length

User: Add more specific examples for each tip

Agent: [Regenerates with detailed examples]

Better? I've added specific examples like calculating your carbon footprint, composting at home, and choosing sustainable brands. Ready for audio?

User: Perfect!

Agent: MEDIA:/tmp/audio-gen-1234567890-sustainable-living.mp3

Your sustainable living podcast is ready with 5 practical tips, each with concrete examples you can start using today! Duration: 10 minutes.

Example 3: Educational Content

User: Create a 15-minute educational audio explaining quantum computing for beginners

Agent: I'll create a beginner-friendly 15-minute explanation of quantum computing...

[Generates ~1,100 words with analogies, examples, and clear structure]

Script preview:
- Introduction: What is quantum computing? (2 min)
- Classical vs Quantum: The key differences (4 min)
- Qubits and Superposition: How it works (5 min)
- Real Applications: What it means for you (3 min)
- Conclusion: The future of computing (1 min)

Should I generate the audio?

User: Yes please

Agent: MEDIA:/tmp/audio-gen-1234567890-quantum-computing.mp3

Your educational podcast on quantum computing is ready! It uses everyday analogies to explain qubits, superposition, and real-world applications. Duration: approximately 15 minutes.

When to Use This Skill

Use the audio-gen skill when users request:

  • "Create an audiobook about..."
  • "Make a podcast episode about..."
  • "Generate audio content explaining..."
  • "Record a story about..."
  • "Produce an audio guide for..."
  • "Create a narrated version of..."
  • "Make an audio lesson about..."

Do NOT use for:

  • Transcribing existing audio (use whisper skills instead)
  • Converting user-written text to audio (use SAG skill directly)
  • Real-time voice interaction (use voice-call plugin)
  • Multi-speaker dialogues or interviews (current limitation)

Advanced Usage

Voice Selection

Users can request specific voices:

User: Create a podcast with the Rachel voice

Agent: [Checks voice configuration for "Rachel" voice ID and uses it in SAG command]

Series/Episodes

For multi-part content:

User: Create a 3-episode series about space exploration

Agent: I'll create Episode 1 first. Each episode will be 10 minutes. Let's start with "The Dawn of the Space Age"...

[After completion]

Episode 1 is ready! Would you like me to continue with Episode 2?

Format Blending

Mix formats for unique styles:

User: Create an educational podcast that tells a story

Agent: [Generates content that combines storytelling narrative with educational explanations]

Troubleshooting

Issue: Audio sounds robotic or unnatural Solution: Add more pauses and voice effects. Use contractions and conversational language.

Issue: Script doesn't match requested length Solution: Regenerate with explicit word count target. Check calculations (75 words/min).

Issue: Content is too technical or too simple Solution: Ask user for target audience. Adjust complexity accordingly.

Issue: SAG command fails Solution: Check ELEVENLABS_API_KEY is set. Verify SAG skill is installed and working.

Issue: User wants to edit the script manually Solution: Provide the plain text script. User can modify it and paste back for audio generation.

💡 Pro Tip: Always generate the script first and get user approval before creating audio. This saves time and API costs, and ensures the user gets exactly what they want.

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,037
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,020
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,019
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,016
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,015
Skill 文件
  • SKILL.md
    • 🎙️ Audio Content Generator
    • Quick Start
    • Content Formats
      • Audiobook
      • Podcast
      • Educational Content
    • Length Guidelines
    • Workflow Instructions
      • Step 1: Understand the Request
      • Step 2: Calculate Word Count
      • Step 3: Generate the Script
      • Step 4: Present the Script
      • Step 5: Handle User Feedback
      • Step 6: Generate Audio
    • Voice Effects (SSML Tags)
    • Error Handling
      • Script Too Long
      • Script Too Short
      • TTS Generation Fails
      • Invalid Request
    • Tips for Best Results
      • For Engaging Audiobooks
      • For Compelling Podcasts
      • For Effective Educational Content
    • Technical Notes
    • Limitations
    • Example Conversations
      • Example 1: Quick Audiobook
      • Example 2: Podcast with Revisions
      • Example 3: Educational Content
    • When to Use This Skill
    • Advanced Usage
      • Voice Selection
      • Series/Episodes
      • Format Blending
    • Troubleshooting
  • 项目或源文件

相关 Skill

更多
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...
音频混音工具 音频混音工具 名称:Sound Mixing Tool(标识 sound-mixing-tool) 短简介(≤60字):音乐/音效响度精确对齐 + 融合混音工作流:用 ffmpeg 两段式 loudnorm 把多组素材 LUFS 偏差压到 <0.10,再最小干预融合、导出可进引擎的独立分轨。 标签/关键词:音频混音 响度匹配 LUFS ffmpeg 游戏音频 音效设计 Wwise FMOD 分轨导出 后期处理 触发词:混音 · 响度匹配 · LUFS 对齐 · MIX 版本 · 音乐音效分轨 · 融合 · 不打架 · 不能盖住 适用场景 :游戏音频集成、影视短视频配乐、播客后期