/claude-blog:blog-audio [generate|voices|setup] [file-or-text] [--mode summary|full|dialogue] [--voice name]from Claude Blog
Generates paid Gemini TTS audio narration for blog posts in summary, full read-aloud, or two-speaker dialogue modes. Includes cost consent gate and HTML5 embed output.
Ships in Claude Blog. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Bundled paths below use host Markdown substitution of ${CLAUDE_SKILL_DIR};
it is not an exported shell variable. Resolve them before execution, quote
paths, and refuse nonabsolute overrides. Pass blog_reference_root resolved
from ${CLAUDE_SKILL_DIR}/../blog/references, blog_template_root from
${CLAUDE_SKILL_DIR}/../blog/templates, and needed sibling roots to agents.
Read the main reference orchestration-details.md before loading project
context; pass only its helper-fenced output to downstream agents.
Generate professional audio narration of blog content using Google's Gemini TTS.
Three modes: summary (200-300 word spoken overview), full article read-aloud,
or two-speaker podcast dialogue. 30 prebuilt voices, over 130 languages on
Gemini 3.8 Flash TTS (over 100 on Flash-Lite), HTML5 embed output. Dated model,
pricing and language facts live in ${CLAUDE_SKILL_DIR}/references/models.md.
This skill spends the user's Google AI credit and writes audio files.
--max-chunks flag caps the chunks per run (default 12); never raise it
without telling the user the new worst-case cost.references/models.md;
re-read https://ai.google.dev/gemini-api/docs/pricing before quoting a
number). Run --dry-run --json first for the script's estimate.audio/ (or --output) and, in
setup only, the managed .venv.--allow-paid only after explicit approval (live calls fail closed without it;
--dry-run stays free).| Command | What it does |
|---|---|
/blog audio generate <file> | Generate audio narration of a blog post |
/blog audio voices | Show available voices with characteristics |
/blog audio setup | Check/configure API key for Gemini TTS |
GOOGLE_AI_API_KEY or GEMINI_API_KEY environment variable (GOOGLE_AI_API_KEY is the one blog-image uses; the audio script accepts either)CLAUDE_BLOG_RUNTIME_DIR optionally selects one trusted absolute persistent
root. This integration uses <root>/blog-audio/.venv; NotebookLM also
uses <root>/blog-notebooklm/data for its library, authentication and browser
state. Without this override, the existing skill-local defaults stay in use.
Google's shared credential config/token paths stay unchanged. No state is
copied or migrated automatically, and ordinary runs never perform setup.
Preserve an existing validated operator override. For a plugin without one,
explicitly pass the host-substituted ${CLAUDE_PLUGIN_DATA}/claude-blog-runtime
path on both setup and every later runner call. This is Markdown substitution,
not an exported shell variable. Execute only once it is an absolute resolved
path. Single quotes keep an unresolved placeholder literal so validation
rejects it instead of expanding it to a different shell path:
CLAUDE_BLOG_RUNTIME_DIR='${CLAUDE_PLUGIN_DATA}/claude-blog-runtime' python3 "${CLAUDE_SKILL_DIR}/scripts/setup_environment.py" --check --json
CLAUDE_BLOG_RUNTIME_DIR='${CLAUDE_PLUGIN_DATA}/claude-blog-runtime' python3 "${CLAUDE_SKILL_DIR}/scripts/run.py" generate_audio.py --help
Only explicit setup without --check installs dependencies. Standalone users
keep the default unless they explicitly choose an absolute runtime root.
Relative, unresolved, or linked managed subdirectories fail closed. Changing
the root selects separate state; it never authorizes a migration or cleanup of
the old root. Plugin persistent data follows the host's uninstall retention
rules; preserve it explicitly when uninstalling if it is still needed.
BLOG_SKILLS_DIR="${CLAUDE_BLOG_SKILLS_DIR:-${CLAUDE_SKILL_DIR}/..}"
case "$BLOG_SKILLS_DIR" in /*) ;; *) echo "ERROR: skills dir must be absolute" >&2; exit 1 ;; esac
AUDIO_RUN="$BLOG_SKILLS_DIR/blog-audio/scripts/run.py"
# Use --dry-run to preview without billing, or add --allow-paid after user consent
python3 "$AUDIO_RUN" generate_audio.py --text-file blog_audio_prepared.txt --voice Charon --model flash38 --allow-paid --json
Put prepared narration in a file and pass --text-file. If you must use
--text, follow the shell argument rule in ${CLAUDE_SKILL_DIR}/../blog/SKILL.md
(single quotes, embedded ' written as '\'').
Ordinary generate and voices commands perform a nonmutating capability check.
If the managed environment is absent, return a setup-required result. Only
/blog audio setup may create .venv or install dependencies. Never resolve
the wrapper from the current project's scripts/ directory.
Before generating audio, check for the API key (the script reads
GOOGLE_AI_API_KEY first, then GEMINI_API_KEY):
if [ -n "${GOOGLE_AI_API_KEY:-}" ] || [ -n "${GEMINI_API_KEY:-}" ]; then echo "API key is set"; else echo "API key is not set"; fi
export GOOGLE_AI_API_KEY=your-key (or GEMINI_API_KEY).
This can be the same key used by /blog image."For /blog audio setup:
GOOGLE_AI_API_KEY or GEMINI_API_KEY is set in the environment.mcp.json, confirm the referenced env var is exportedpython3 "$BLOG_SKILLS_DIR/blog-audio/scripts/setup_environment.py"
(add --check --json to inspect without installing)python3 "$AUDIO_RUN" generate_audio.py --text 'Test' --dry-run --jsonFor /blog audio voices:
Load ${CLAUDE_SKILL_DIR}/references/voices.md and present the voice catalog to the user.
Ask the user which voice they prefer, or recommend based on content type:
For /blog audio generate <file>:
Read the file and extract:
Ask the user (or auto-select if they specified --mode):
| Mode | When to use | Output |
|---|---|---|
| Summary | Quick audio overview (1-2 min) | 200-300 word spoken summary |
| Full | Complete read-aloud (5-15 min) | Full article as natural speech |
| Dialogue | Podcast-style (3-8 min) | Two-person conversation about the article |
Claude prepares the text; the script does TTS only.
Summary mode: Write a 200-300 word spoken summary of the article. Rules:
Full mode: Strip the markdown content to clean spoken text:
Dialogue mode: Write a 2-person conversation script about the article:
Speaker1: What's the key takeaway here?If the user chose a voice, use it. Otherwise, recommend based on mode:
Write the prepared text to a file under the working directory, then call:
# Single voice (summary or full mode; pass --allow-paid only after user consent)
python3 "$AUDIO_RUN" generate_audio.py \
--text-file blog_audio_prepared.txt \
--voice Charon \
--model flash38 \
--output audio/post-slug.mp3 \
--allow-paid \
--json
# Two voices (dialogue mode; pass --allow-paid only after user consent)
python3 "$AUDIO_RUN" generate_audio.py \
--text-file blog_audio_dialogue.txt \
--voice Puck \
--voice2 Kore \
--model flash38 \
--output audio/post-slug-dialogue.mp3 \
--allow-paid \
--json
Model selection (use the explicit 3.8 IDs):
flash38: gemini-3.8-flash-tts, the stable general-purpose model and the
one used in the examples above. Over 130 languages.flash-lite38: gemini-3.8-flash-lite-tts, the cheaper stable model. Over
100 languages; a few (for example Finnish and Thai) are Flash-only.flash, flash31, pro, legacy-flash25, legacy-pro25)
shut down 2026-12-18 (details in references/models.md), so
do not use them for new work. Confirm the resolved model ID in the
--dry-run --json output before spending.The 3.8 aliases have offline SDK schema and WAV parsing checks; authenticated
availability and voice quality still require provider testing. For 3.8, pass a
verbatim transcript, not embedded narration directions. Dialogue must use
explicit Speaker1: and Speaker2: lines; the helper does not infer
speakers. Cost estimates are not a billing quote.
Present the result to the user:
<audio controls preload="metadata">
<source src="audio/post-slug.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<audio controls preload="metadata">
<source src="/audio/post-slug.mp3" type="audio/mpeg" />
</audio>
[audio src="audio/post-slug.mp3"]
Insert the audio player after the introduction (below the first H2) or at the very top of the article with a label: "Listen to this article" or "Audio version".
blog-write does not call this skill. The orchestrator may offer audio after
delivery, and never runs it without the consent gate above. If the key is
missing or the user declines, return one skip line for "Fallbacks and skips"
and carry on without audio.
| Error | Resolution |
|---|---|
API key not set (GOOGLE_AI_API_KEY or GEMINI_API_KEY) | Get key at https://aistudio.google.com/apikey |
| FFmpeg not found | Falls back to WAV output. Tell the user; do not install it for them. |
| Rate limited | Wait and retry. Check limits at https://aistudio.google.com/rate-limit |
| Text too long (>8,192 input tokens) | Split into sections around 7,800 tokens; the script chunks and stitches prepared text, up to --max-chunks (default 12) per run. Over the cap, stop and ask the user before raising it |
| Unknown voice name | Run /blog audio voices to see valid options |
| API error | Check key validity and model availability |
| API key missing (internal call) | Return a one-line skip note: writing workflow continues and reports it |
Load on-demand: do NOT load all at startup:
${CLAUDE_SKILL_DIR}/references/voices.md: Full 30-voice catalog, recommendations by content type, dialogue pairings${CLAUDE_SKILL_DIR}/references/models.md: Model IDs, per-model pricing, language counts and legacy shutdown dates, each with a checked datereferences/models.md (opens in a new tab)references/voices.md (opens in a new tab)scripts/__init__.py (opens in a new tab)scripts/generate_audio.py (opens in a new tab)scripts/requirements.lock (opens in a new tab)scripts/requirements.txt (opens in a new tab)scripts/run.py (opens in a new tab)scripts/runtime_paths.py (opens in a new tab)scripts/setup_environment.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub agricidaniel/claude-blog --plugin claude-blog32 skills in this plugin
/blogFull-lifecycle blog engine with 31 sub-skills, 12 templates, 100-point scoring, and 5 agents. Routes requests to the right sub-skill: writing, rewriting, analysis, outlines, audits, schema, charts, images, repurposing, AI citation SEO, FLOW prompts, topic clusters, and multilingual publishing. Optimized for Google rankings, E-E-A-T, and AI citations. Supports any platform. Use when the user asks to create, revise, analyze, plan, translate, localize, audit, or repurpose blog content, or invokes a /blog subcommand. Do not activate merely because the word "blog" appears in an unrelated coding, theme-debugging, database, log-analysis, or definition request.
/blog-analyzeScore one blog post (or a folder of posts) on a 5-category 100-point scale covering content quality, SEO, E-E-A-T, technical elements, and AI citation readiness. Runs the deterministic analyzer first, then adds judgment and prioritized Critical/High/Medium/Low fixes. Advisory style diagnostics never infer authorship or affect the score. Exports markdown, JSON or table; works with MDX, markdown, HTML or a URL. Use when the user asks to analyze, score, rate or check the quality of specific posts ("analyze blog", "blog score", "check blog quality", "rate this post"). For a site-wide health check (orphan pages, cannibalization, stale content, schema across all posts) use blog-audit instead.
Other plugins' skills for the same job