[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ED0ZN5JEY8T67VEXD90WD1":3,"skill-same:01M7ED0ZN5JEY8T67VEXD90WD1":49},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":13,"repositoryHtmlUrl":25,"repositoryHomepageUrl":6,"ownerHtmlUrl":26,"ownerBlogUrl":6,"ownerDescription":27,"updatedAt":28,"install":29,"resources":42},"01M7ED0ZN5JEY8T67VEXD90WD1","blog-audio",null,"jonahthan433\u002FCortexOS","jonahthan433","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F211465495?v=4","01M7ECH9HPHGA89DCXHHJBTS3C","jonah.ai","01M7ECH9JCEM45DZMWPT7148S1",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fproductivity\u002Fblog-audio\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# blog-audio\n\n# Blog Audio: Gemini TTS Narration for Blog Posts\n\nGenerate professional audio narration of blog content using Google's Gemini TTS.\nThree modes: summary (200-300 word spoken overview), full article read-aloud,\nor two-speaker podcast dialogue. 30 voices, 80+ languages, HTML5 embed output.\n\n## Quick Reference\n\n| Command | What it does |\n|---------|-------------|\n| `\u002Fblog audio generate \u003Cfile>` | Generate audio narration of a blog post |\n| `\u002Fblog audio voices` | Show available voices with characteristics |\n| `\u002Fblog audio setup` | Check\u002Fconfigure API key for Gemini TTS |\n\n## Prerequisites\n\n- Python 3.11+ (venv managed automatically by `run.py`)\n- `GOOGLE_AI_API_KEY` environment variable (same key used by blog-image)\n- FFmpeg (for WAV-to-MP3 conversion; falls back to WAV if missing)\n\n## Always Use run.py Wrapper\n\n```bash\n# CORRECT:\npython3 scripts\u002Frun.py generate_audio.py --text \"...\" --voice Charon --json\n\n# WRONG:\npython3 scripts\u002Fgenerate_audio.py --text \"...\"  # Fails without venv\n```\n\n## API Key Check (Gate Pattern)\n\nBefore generating audio, check for the API key:\n\n```bash\necho $GOOGLE_AI_API_KEY\n```\n\n- If set: proceed with generation\n- If not set: guide the user:\n  \"Audio generation requires a Google AI API key. Get one free at https:\u002F\u002Faistudio.google.com\u002Fapikey\n   Then set it: `export GOOGLE_AI_API_KEY=your-key`\n   This is the same key used by `\u002Fblog image`: if image generation works, audio works too.\"\n- **When called internally** (from blog-write): return silently if key is missing.\n  Never block the writing workflow.\n\n## Setup\n\nFor `\u002Fblog audio setup`:\n\n1. Check if `GOOGLE_AI_API_KEY` is set in environment\n2. If blog-image is configured (check `.mcp.json`), the key is already available\n3. If not, guide user to https:\u002F\u002Faistudio.google.com\u002Fapikey\n4. Verify with a dry run: `python3 scripts\u002Frun.py generate_audio.py --text \"Test\" --dry-run --json`\n\n## Voice Selection\n\nFor `\u002Fblog audio voices`:\n\nLoad `references\u002Fvoices.md` and present the voice catalog to the user.\n\nAsk the user which voice they prefer, or recommend based on content type:\n- **Article narration**: Charon (Informative) or Sadaltager (Knowledgeable)\n- **Tutorial\u002Fhow-to**: Achird (Friendly) or Sulafat (Warm)\n- **News\u002Fanalysis**: Rasalgethi (Informative) or Schedar (Even)\n- **Lifestyle\u002Fwellness**: Aoede (Breezy) or Vindemiatrix (Gentle)\n- **Dialogue host**: Puck (Upbeat) or Laomedeia (Upbeat)\n- **Dialogue expert**: Kore (Firm) or Charon (Informative)\n\n## Generation Workflow\n\nFor `\u002Fblog audio generate \u003Cfile>`:\n\n### Step 1: Read the Blog Post\n\nRead the file and extract:\n- Title (from H1 or frontmatter)\n- Full content (markdown body)\n- Approximate word count\n\n### Step 2: Choose Mode\n\nAsk the user (or auto-select if they specified `--mode`):\n\n| Mode | When to use | Output |\n|------|-------------|--------|\n| **Summary** | Quick audio overview (1-2 min) | 200-300 word spoken summary |\n| **Full** | Complete read-aloud (5-15 min) | Full article as natural speech |\n| **Dialogue** | Podcast-style (3-8 min) | Two-person conversation about the article |\n\n### Step 3: Prepare Text\n\n**CRITICAL:** Claude prepares the text. The script does TTS only.\n\n**Summary mode:**\nWrite a 200-300 word spoken summary of the article. Rules:\n- Write as natural speech, not written text\n- Open with the article's key finding or answer\n- Cover 3-5 main takeaways\n- Close with actionable advice\n- No markdown, no \"In this article...\", no meta-commentary\n- Use conversational transitions (\"Here's what matters...\", \"The key finding is...\")\n\n**Full mode:**\nStrip the markdown content to clean spoken text:\n- Headings become natural transitions (\"Next, let's look at...\")\n- Links become plain text (remove URLs, keep anchor text)\n- Images and charts: omit or briefly describe (\"As the data shows...\")\n- Code blocks: describe verbally (\"The code uses a for-loop to...\")\n- Lists: convert to natural sentences\n- Remove frontmatter, schema markup, HTML tags\n- Add brief intro: \"This is [title], published on [date].\"\n\n**Dialogue mode:**\nWrite a 2-person conversation script about the article:\n- Speaker1 = Host (curious, asks good questions)\n- Speaker2 = Expert (knowledgeable, gives clear answers)\n- Format each line as: `[Speaker1] What's the key takeaway here?`\n- Cover the article's main points conversationally\n- 15-25 exchanges (produces ~3-8 minutes)\n- Natural, not stilted (\"That's a great point\" over \"Indeed, as the research indicates\")\n\n### Step 4: Select Voice\n\nIf the user chose a voice, use it. Otherwise, recommend based on mode:\n- Summary\u002FFull: default to Charon (Informative)\n- Dialogue: default to Puck (Host) + Kore (Expert)\n\n### Step 5: Generate Audio\n\nWrite the prepared text to a temp file, then call:\n\n```bash\n# Single voice (summary or full mode)\npython3 scripts\u002Frun.py generate_audio.py \\\n  --text-file \u002Ftmp\u002Fblog_audio_prepared.txt \\\n  --voice Charon \\\n  --model flash \\\n  --output \u002Fpath\u002Fto\u002Faudio\u002Fpost-slug.mp3 \\\n  --json\n\n# Two voices (dialogue mode)\npython3 scripts\u002Frun.py generate_audio.py \\\n  --text-file \u002Ftmp\u002Fblog_audio_dialogue.txt \\\n  --voice Puck \\\n  --voice2 Kore \\\n  --model pro \\\n  --output \u002Fpath\u002Fto\u002Faudio\u002Fpost-slug-dialogue.mp3 \\\n  --json\n```\n\n**Model selection:**\n- `flash` (default): Fast, cheap. Good for summaries and standard narration.\n- `pro`: Higher quality. Use for dialogue mode or premium content.\n\n### Step 6: Deliver\n\nPresent the result to the user:\n1. **File path**: where the audio was saved\n2. **Duration**: human-readable (e.g., \"3:42\")\n3. **Embed code**: ready-to-paste HTML5 audio tag\n4. **Cost**: estimated API cost\n5. **Placement suggestion**: where to insert the embed in the blog post\n\n## Embedding Guide\n\n### Standard HTML (Hugo, Jekyll, static sites)\n```html\n\u003Caudio controls preload=\"metadata\">\n  \u003Csource src=\"audio\u002Fpost-slug.mp3\" type=\"audio\u002Fmpeg\">\n  Your browser does not support the audio element.\n\u003C\u002Faudio>\n```\n\n### MDX (Next.js, Gatsby)\n```jsx\n\u003Caudio controls preload=\"metadata\">\n  \u003Csource src=\"\u002Faudio\u002Fpost-slug.mp3\" type=\"audio\u002Fmpeg\" \u002F>\n\u003C\u002Faudio>\n```\n\n### WordPress\n```\n[audio src=\"audio\u002Fpost-slug.mp3\"]\n```\n\n### Placement\nInsert the audio player after the introduction (below the first H2) or at the\nvery top of the article with a label: \"Listen to this article\" or \"Audio version\".\n\n## Internal API (for blog-write)\n\nWhen invoked internally from blog-write:\n\n**Input:**\n- `text`: Prepared text (already cleaned by Claude)\n- `voice`: Voice name (default: Charon)\n- `voice2`: Second voice for dialogue (optional)\n- `model`: flash or pro\n- `output_path`: Where to save the file\n\n**Output:**\n```markdown\n### Audio Narration\n- **Path:** \u002Fpath\u002Fto\u002Faudio\u002Fpost-slug.mp3\n- **Duration:** 3:42\n- **Voice:** Charon\n- **Embed:** `\u003Caudio controls preload=\"metadata\">\u003Csource src=\"audio\u002Fpost-slug.mp3\" type=\"audio\u002Fmpeg\">\u003C\u002Faudio>`\n```\n\n**Graceful fallback:** If `GOOGLE_AI_API_KEY` is not set, return immediately\nwith no error. The writing workflow continues without audio. Never block\nblog-write because audio generation is unavailable.\n\n## Error Handling\n\n| Error | Resolution |\n|-------|-----------|\n| GOOGLE_AI_API_KEY not set | Get key at https:\u002F\u002Faistudio.google.com\u002Fapikey |\n| FFmpeg not found | Install: `sudo apt install ffmpeg`. Falls back to WAV output. |\n| Rate limited | Wait and retry. Check limits at https:\u002F\u002Faistudio.google.com\u002Frate-limit |\n| Text too long (>32k tokens) | Split into sections, generate separately |\n| Unknown voice name | Run `\u002Fblog audio voices` to see valid options |\n| API error | Check key validity, model availability (preview models) |\n| API key missing (internal call) | Return silently: writing workflow continues |\n\n## Reference Documentation\n\nLoad on-demand: do NOT load all at startup:\n- `references\u002Fvoices.md`: Full 30-voice catalog, recommendations by content type, dialogue pairings\n",{},"main","38b32c99e7ed0b8e215d638e92cfa452c1ec3079","skills\u002Fimported\u002Fproductivity\u002Fblog-audio","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS","https:\u002F\u002Fgithub.com\u002Fjonahthan433","AI Consultant","2026-10-24 05:13:39",{"source":7,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add jonahthan433\u002FCortexOS --skill blog-audio",{"tool":35,"command":36},"bunx","bunx skills add jonahthan433\u002FCortexOS --skill blog-audio",{"tool":38,"command":39},"pnpm","pnpm dlx skills add jonahthan433\u002FCortexOS --skill blog-audio","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fproductivity\u002Fblog-audio\u002FSKILL.md",true,[43],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"skill.json","REFERENCE","参考文档",279,"https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fproductivity\u002Fblog-audio\u002Fskill.json",[50,56,62,68,74,80],{"skillNo":51,"name":52,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":18},"01M7EDQZDQX3Q8Y7GCQX6KN9V7","opportunity-brief","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fsales\u002Fopportunity-brief\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":18},"01M7EDQYA0V9Y99VKBREJJ3MRT","morning-intel","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fmorning-intel\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7EDQVX1JVY0B6PDHKKGM19G","decision-brief","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fdecision-brief\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M7EDQV1GENZAC2SZSD8KZ3GM","weekly-review","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fweekly-review\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7EDQT2KETJ1Y3CGVN9EKW2J","system-health","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fops\u002Fsystem-health\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M7EDQQN2JK3XPWMS1M4T0F3K","backup-restore","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fops\u002Fbackup-restore\u002FSKILL.md",[],[]]