본문으로 건너뛰기
cccskills
Microsoft 공식무료GitHub에 공개

tts-voiceover

Text-to-speech voice-over generation from YAML speaker notes using Azure Speech SDK with SSML pronunciation control, or an offline Piper engine that needs no credentials

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구PowerPointAzure
설치 방법 보기

포함된 파일(24)

  • SKILL.md13.5 KB
  • pip-audit-known-vulnerabilities.txt260 B
  • pyproject.toml1.7 KB
  • scripts/embed_audio.py11.5 KB
  • scripts/embed-audio.sh2.1 KB
  • scripts/generate_voiceover.py21.7 KB
  • scripts/generate-voiceover.sh2.6 KB
  • scripts/Invoke-EmbedAudio.ps12.5 KB
  • scripts/Invoke-GenerateVoiceover.ps14.7 KB
  • scripts/Modules/TtsVoiceoverHelpers.psm11.9 KB
  • SECURITY.md25.2 KB
  • tests/conftest.py8.4 KB
  • tests/corpus/0_acronym_text19 B
  • tests/corpus/0_empty0 B
  • tests/corpus/0_ssml_fragment29 B
  • tests/corpus/0_valid_yaml25 B
  • tests/fuzz_harness.py6.0 KB
  • tests/Invoke-GenerateVoiceover.Tests.ps12.8 KB
  • tests/test_embed_audio_integrity.py6.0 KB
  • tests/test_embed_audio.py6.1 KB
  • tests/test_generate_voiceover_boundaries.py9.1 KB
  • tests/test_generate_voiceover.py14.7 KB
  • tests/TtsVoiceoverHelpers.Tests.ps14.9 KB
  • uv.lock199.7 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

TTS Voice Over Skill

Generates per-slide WAV voice-over files from YAML speaker_notes using Azure Speech SDK with SSML pronunciation control, or a locally installed Piper engine.

Overview

This skill reads content.yaml files from a PowerPoint skill content directory, extracts speaker_notes fields, applies 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.

Two engines are available through --engine:

  • azure (default) sends SSML to Azure AI Speech neural voices. Use it for published narration.
  • piper is an explicit optional local choice using a separately installed Piper executable. It needs no credentials or network access after the voice is downloaded. Narration never leaves the host. HVE demo-material CI does not use either speech engine; it generates silent videos instead.

Prerequisites

  • Azure Speech resource — Free tier provides 500K characters per month.
  • Authentication — Key-based (SPEECH_KEY) or Microsoft Entra ID (SPEECH_RESOURCE_ID).
  • Region — SPEECH_REGION is required for Azure synthesis and has no default. Dry-run mode and the piper engine do not need it.
  • Python 3.11+ with uv for virtual environment management.
  • Data handling note — Speaker-notes content is transmitted to the configured SPEECH_REGION for synthesis. Operators must set an approved region and avoid sending regulated or confidential narration.

Key-Based Auth

export SPEECH_KEY="your-speech-key"
export SPEECH_REGION="eastus"

Microsoft Entra ID Auth

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

Piper Engine

Piper is not a dependency of this skill. It is licensed GPL-3.0-or-later, so the skill invokes it as an external executable, the same way other skills invoke FFmpeg or LibreOffice. Install it and download a voice separately:

uv tool install piper-tts
uvx --from piper-tts python -m piper.download_voices en_US-norman-medium --data-dir ~/.local/share/piper
export PIPER_DATA_DIR=~/.local/share/piper

To run Piper without installing it, also set:

export PIPER_COMMAND="uvx --from piper-tts piper"
VariablePurpose
PIPER_COMMANDCommand that runs Piper, split without a shell (default: piper)
PIPER_DATA_DIRDirectory holding downloaded voices; --piper-data-dir takes precedence

Voice models carry their own licenses and dataset provenance in each voice's MODEL_CARD. The default en_US-norman-medium model card records that it was trained from scratch on public-domain LibriVox recordings, and the Piper voices repository is MIT licensed. Check the model card before publishing narration from any other voice, because some voices have noncommercial or research-only source restrictions.

Quick Start

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

Generate voice-over offline with Piper:

uv run scripts/generate_voiceover.py --engine piper --collapse-newlines \
  --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

Parameters Reference

For different speakers, synthesize one voice's selected slides per invocation using repeated --slide <number> arguments. Only those canonical slide-NNN folders are read and their WAVs replaced; other speakers' outputs are untouched. Omit --slide to synthesize the whole deck.

generate_voiceover.py

ParameterTypeDefaultDescription
--dry-runflagfalsePrint SSML (azure) or plain text (piper) without generating audio
--enginestringazureSynthesis engine: azure or piper
--voicestringen-US-Andrew:DragonHDLatestNeuralVoice name; the piper default is en_US-norman-medium
--ratestring+10%Azure speech prosody rate; ignored by piper
--piper-data-dirpathPIPER_DATA_DIRDirectory holding downloaded Piper voices
--content-dirpathcontentPath to slide content directory
--output-dirpathvoice-overPath to WAV output directory
--slideintegerall slidesRepeat to synthesize only the selected canonical slide numbers
--lexiconpath(auto-detect)Custom acronyms.yaml path
--collapse-newlinesflagfalseCollapse newlines and whitespace runs in speaker notes into single spaces before synthesis
--verbose / -vflagfalseEnable verbose (DEBUG) logging output

embed_audio.py

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.

ParameterTypeDefaultDescription
--inputpath(required)Source PPTX file path
--audio-dirpathvoice-overDirectory with slide-NNN.wav
--outputpath*-narrated.pptxOutput PPTX file path
--verbose / -vflagfalseEnable verbose (DEBUG) logging output

Each WAV file maps to a slide by the number in its name, so slide-1.wav and slide-001.wav both map to slide 1. When two files map to the same slide, embedding stops with an error and writes no output. WAV files numbered past the last slide are ignored with a warning. An unreadable WAV file is reported, its slide is left unchanged, and the remaining slides are still embedded.

Script Reference

Generate with custom voice and rate:

uv run scripts/generate_voiceover.py \
  --content-dir content \
  --output-dir voice-over \
  --voice "en-US-Jenny:DragonHDLatestNeural" \
  --rate "+5%"

Use a custom lexicon:

uv run scripts/generate_voiceover.py \
  --content-dir content \
  --lexicon custom-acronyms.yaml

Collapse newlines in speaker notes (recommended for block-scalar | notes, whose line breaks are otherwise spoken as pauses):

uv run scripts/generate_voiceover.py \
  --content-dir content \
  --collapse-newlines

Embed generated audio:

uv run scripts/embed_audio.py \
  --input slide-deck/presentation.pptx \
  --audio-dir voice-over \
  --output slide-deck/presentation-narrated.pptx

Acronym Lexicon

The lexicon controls SSML <sub alias> replacements for acronyms and technical terms. Create an acronyms.yaml file:

acronyms:
  HVE-Core: "H V E Core"
  OWASP: "Oh wasp"
  SBOM: "S Bomb"
  SLSA: "Salsa"
  CI/CD: "C I C D"

Lexicon resolution order:

  1. Path specified via --lexicon argument.
  2. acronyms.yaml in the content directory.
  3. Built-in defaults covering common technical acronyms.

The piper engine has no SSML support, so it substitutes aliases directly into the text. Aliases written as spaced single letters are hyphenated first (H V E Core becomes H-V-E Core), because Piper reads hyphenated letters as one fluent run and spaced letters as slow separate words.

SSML Template

Each slide produces an SSML document:

<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis"
 xmlns:mstts="http://www.w3.org/2001/mstts" xml:lang="en-US">
  <voice name="en-US-Andrew:DragonHDLatestNeural">
    <prosody rate="+10%">
      Text with <sub alias="Oh wasp">OWASP</sub> aliases applied.
    </prosody>
  </voice>
</speak>

Integration with PowerPoint Skill

This skill reads from the PowerPoint skill's content directory structure:

content/
├── slide-001/
│   └── content.yaml    # Must include speaker_notes: field
├── slide-002/
│   └── content.yaml
└── ...

Each content.yaml should contain a speaker_notes: field with the narration text. The generated WAV files are named slide-NNN.wav matching the directory names.

Troubleshooting

IssueSolution
Set SPEECH_KEY ... or SPEECH_RESOURCE_IDExport SPEECH_KEY (key auth) or SPEECH_RESOURCE_ID (Entra ID) with SPEECH_REGION.
SPEECH_REGION must be setExport SPEECH_REGION with an approved Azure region. Synthesis has no default region.
Multiple WAV files map to slide NRemove the duplicate WAV files (for example slide-1.wav beside slide-001.wav) and rerun embed_audio.py.
401 with Entra ID authVerify custom domain on the Speech resource and Cognitive Services Speech User role. RBAC propagation takes up to 5 minutes.
Empty WAV files or skipped slidesVerify speaker_notes: is present and non-empty in content.yaml.
Mispronounced acronymsAdd entries to acronyms.yaml with phonetic aliases.
azure-cognitiveservices-speech package is requiredRun uv sync in the skill directory.
Piper executable not foundInstall Piper separately or set PIPER_COMMAND, for example uvx --from piper-tts piper.
Piper cannot find the voice modelDownload the voice with piper.download_voices and pass its directory through --piper-data-dir or PIPER_DATA_DIR.
Audio icon visible in PPTXReposition or resize the audio object in PowerPoint after embedding.
Authored slide animations missing after embeddingembed_audio.py replaces existing p:timing with narration timing; re-apply animations in PowerPoint after embedding audio.
Slides no longer advance on click after embeddingembed_audio.py sets advClick="0" for auto-advance. To re-enable, select all slides in PowerPoint and check Advance Slide > On Mouse Click in the Transitions tab.
Video export shows "No timings recorded"Re-embed audio with the updated embed_audio.py which adds narration timing XML automatically.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

accessibility

Microsoft 공식무료

Consolidated accessibility skill entrypoint for WCAG 2.2, ARIA Authoring Practices, cognitive accessibility, Section 508, EN 301 549, design intent verification, and the Accessibility Planner workflow.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

microsoft/hve-core1.5천2026년 10월 20일 업데이트

accessibility-coverage-matrix

Microsoft 공식무료

Build, refresh, report, or probe an accessibility coverage matrix across criteria, surfaces, and evidence methods. Use when assessing coverage with the accessibility runtime harness and generated evidence bundle.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

microsoft/hve-core1.5천2026년 10월 20일 업데이트

adr-author

Microsoft 공식무료

Authoring skill for Architecture Decision Records (ADRs) supporting capture, from-planner-handoff, and adopt-template entry modes with selectable Y-Statement or MADR v4.0.0 output templates, supersession lineage, and ASR trigger evaluation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

microsoft/hve-core1.5천2026년 10월 20일 업데이트

analysis-authoring

Microsoft 공식무료

Authoring conventions for exploratory data analysis notebooks and analytical dashboards, covering section sequence, visualization selection, scale thresholds, caching and state, and dashboard validation budgets. Use when composing or reviewing an EDA notebook, an analytical dashboard, or a dashboard test pass.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

microsoft/hve-core1.5천2026년 10월 20일 업데이트

architecture-diagrams

Microsoft 공식무료

Architecture diagram authoring for cloud infrastructure and declared data catalogs. Use when rendering Azure IaC or DS_CATALOG_V1 relationships as caller-selected ASCII or Mermaid diagrams.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

microsoft/hve-core1.5천2026년 10월 20일 업데이트

architecture-review

Microsoft 공식무료

Create a durable Architecture Review Record from a confirmed System Architecture Reviewer scope, evidence, pillar analysis, trade-offs, and dispositions

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

microsoft/hve-core1.5천2026년 10월 20일 업데이트

microsoft의 스킬 모두 보기

이 스킬의 문제 신고