从 YAML 讲稿生成逐页配音并嵌入幻灯片
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "tts-voiceover" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/hve-core/main/.github/skills/experimental/tts-voiceover/SKILL.md 2. 保存为 ~/.claude/skills/tts-voiceover/SKILL.md 3. 装好后重载技能,告诉我可以用了
请用 dry-run 检查这个内容目录里的 speaker_notes 是否能正确生成 SSML,并列出每页的语音模板。
输出每页的 SSML 模板,不生成音频文件。
根据这个 PowerPoint 内容目录中的 YAML speaker_notes 生成每页 WAV 配音,输出到 voice-over 文件夹。
生成每一页对应的 WAV 配音文件。
把 voice-over 目录里的音频嵌入 deck.pptx,导出为带旁白的新文件。
输出一个嵌入旁白音频的 PPTX 文件。
适合需要把每页讲稿快速转成配音的演示文稿作者。它会读取 YAML 中的 speaker_notes,生成逐页音频。
适合包含缩写、技术名词的内容。工具会应用 SSML 发音控制,先用 dry-run 检查模板再正式生成。
适合已经有幻灯片和配套音频的团队。可以先生成 WAV,再把音频嵌入 PPTX 输出成带旁白版本。
该文档介绍了一个 TTS 旁白生成技能:从 PowerPoint 内容目录中的 YAML `speaker_notes` 读取讲稿,使用 Azure Speech SDK 和 SSML 发音控制生成逐页 WAV 文件,并可将音频嵌入 PPTX。文档还列出前置条件、两种认证方式、安装步骤、快速开始命令和关键参数,特别提醒旁白内容会传输到指定 Azure 区域。
Generates per-slide WAV voice-over files from YAML speaker_notes using Azure Speech SDK with SSML pronunciation control.
This skill reads content.yaml files from a PowerPoint skill content directory, extracts speaker_notes fields, applies SSML acronym aliases for correct pronunciation of technical terms, and produces one WAV file per slide. Supports dry-run mode for SSML template verification without Azure credentials.
SPEECH_KEY) or Microsoft Entra ID (SPEECH_RESOURCE_ID).uv for virtual environment management.SPEECH_REGION for synthesis. Operators must pin an approved region and avoid sending regulated or confidential narration.export SPEECH_KEY="your-speech-key"
export SPEECH_REGION="eastus"
Requires a custom domain on the Speech resource and Cognitive Services Speech User role.
export SPEECH_RESOURCE_ID="/subscriptions/.../Microsoft.CognitiveServices/accounts/your-resource"
export SPEECH_REGION="eastus"
Install dependencies:
# run from this skill folder
uv sync
Verify SSML templates without generating audio:
uv run scripts/generate_voiceover.py --dry-run --content-dir path/to/content
Generate voice-over WAV files:
uv run scripts/generate_voiceover.py --content-dir path/to/content --output-dir voice-over
Embed audio into a PPTX deck:
uv run scripts/embed_audio.py --input deck.pptx --audio-dir voice-over --output deck-narrated.pptx
| Parameter | Type | Default | Description |
|---|---|---|---|
--dry-run | flag | false | Print SSML templates without generating audio |
--voice | string | en-US-Andrew:DragonHDLatestNeural | Azure TTS voice name |
--rate | string | +10% | Speech prosody rate |
--content-dir | path | content | Path to slide content directory |
--output-dir | path | voice-over | Path to WAV output directory |
--lexicon | path | (auto-detect) | Custom acronyms.yaml path |
--collapse-newlines | flag | false | Collapse newlines and whitespace runs in speaker notes into single spaces before synthesis |
--verbose / -v | flag | false | Enable verbose (DEBUG) logging output |
Embeds WAV files into corresponding PPTX slides and adds narration timing XML so PowerPoint recognizes the audio for video export via File > Export > Create a Video > Use Recorded Timings and Narrations.
| Parameter | Type | Default | Description |
|---|
…
它会从 PowerPoint 内容目录里的 YAML `speaker_notes` 生成逐页 WAV 配音,并支持 SSML 发音控制。还可以把生成的音频嵌入到 PPTX 中。
需要 Azure Speech 资源、Python 3.11+,并使用 `uv` 管理环境。认证可用 `SPEECH_KEY` 或 Microsoft Entra ID;前者是 key-based,后者需要自定义域和相应角色。
有,支持 `--dry-run`。它会打印 SSML 模板,用于在不消耗 Azure 语音配额的情况下检查配置。
用于逐步学习并练习设计思维九个模块
使用 Playwright MCP 截取高质量 VS Code 画面
从多视角审查代码变更,输出结构化问题与风险。
为设计思维教练提供身份、流程与状态基线
帮助你写出更规范、可维护的 Python 代码
帮你按无障碍标准评估页面并生成整改方案
将文本批量转换为语音旁白与无障碍朗读,支持音频提示生成。
将文本或转录内容快速转换为 MP3 语音,并可列出可用声音。
将文本转换为多语言神经语音,适合生成旁白、语音内容与演示音频。
将文本快速转换为自然语音,支持多角色对话、长文分段与播放
将音频或视频中的语音转成文字,并可区分说话人与整理访谈记录。
提供文本转语音与语音转文本能力,便于在应用中集成语音交互流程