Communitygithub.com

Zuhair-01/claude-skills-and-systems

Volcengine Doubao Speech 2.0을 사용하여 중국어 및 다국어 내레이션을 생성합니다. 중국어 음성 해설, 사용자가 Doubao/Volcengine/火山引擎/豆包 TTS를 선호할 때, 또는 자막을 위한 문자 수준 타임스탬프 메타데이터가 필요한 내레이션에 사용하세요.

claude-skills-and-systems란 무엇인가요?

이 스킬은 Volcengine Doubao Speech 2.0 TTS API를 활용하여 고품질 중국어 및 다국어 음성 내레이션을 생성합니다. 개발자와 AI 에이전트가 영상 제작, 자막 생성, 멀티미디어 콘텐츠에 자연스러운 음성 해설을 손쉽게 통합할 수 있도록 설계되었습니다. 오픈소스 도구인 OpenMontage TTS 선택기와 직접 DoubaoTTS 프로바이더를 모두 지원하여 유연한 통합을 제공하며, 비동기 엔드포인트를 통한 긴 형식의 영상 내레이션은 문자 수준 타임스탬프 메타데이터를 반환하여 정확한 자막 제작이 가능합니다. 또한 사용자 승인 워크플로우, 어조 및 속도 조절, 문제 해결 가이드를 포함하여 실제 제작 환경에서의 안정적인 사용을 보장합니다.

지원 대상✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Zuhair-01/claude-skills-and-systems/tree/HEAD/skills/doubao-tts

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

Doubao TTS

.env 파일에 DOUBAO_SPEECH_API_KEY가 필요합니다. 기본 음성은 DOUBAO_SPEECH_VOICE_TYPE으로 설정하거나, 도구에 voice_id를 전달하세요.

현재 API

새 콘솔 API 키 흐름을 사용하세요:

X-Api-Key: ${DOUBAO_SPEECH_API_KEY}
X-Api-Resource-Id: seed-tts-2.0

새 콘솔 API 키와 함께 X-Api-App-Id 및 X-Api-Access-Key를 사용하지 마세요. API가 load grant: requested grant not found를 반환하면 키 유형 또는 인증 헤더가 잘못된 것입니다.

긴 형식의 영상 내레이션의 경우 비동기 엔드포인트를 선호합니다:

POST https://openspeech.bytedance.com/api/v3/tts/submit
POST https://openspeech.bytedance.com/api/v3/tts/query

이 엔드포인트는 audio_url과 함께 자막 제작에 사용할 수 있는 sentences[].words[] 타이밍 메타데이터를 반환합니다.

OpenMontage 사용법

TTS 선택기로 생성:

from tools.audio.tts_selector import TTSSelector

result = TTSSelector().execute({
    "preferred_provider": "doubao",
    "text": "如果 AI 真的会改变未来,普通人到底该怎么参与?",
    "voice_id": "zh_female_vv_uranus_bigtts",
    "output_path": "projects/my-video/assets/audio/narration.mp3",
    "speech_rate": 0,
    "enable_timestamp": True,
})

또는 프로바이더를 직접 호출:

from tools.audio.doubao_tts import DoubaoTTS

result = DoubaoTTS().execute({
    "text": "짧은 샘플 청취 텍스트입니다.",
    "voice_id": "zh_female_vv_uranus_bigtts",
    "output_path": "projects/my-video/assets/audio/doubao_sample.mp3",
})

프로바이더는 다음을 기록합니다:

  • output_path: 다운로드된 오디오 파일
  • metadata_path: 전체 쿼리 응답 JSON, 기본값은 <output_path>.json

권장 워크플로우

  1. 전체 유료 내레이션 전에 10-15초 샘플을 생성하세요.
  2. 사용자에게 음성의 자연스러움, 억양 및 속도 승인을 요청하세요.
  3. 승인 후에만 전체 내레이션을 생성하세요.
  4. 쿼리 JSON을 보관하세요. 자막 타이밍의 진실 공급원입니다.
  5. 예상 텍스트 길이가 아닌 sentences[].words[]에서 자막을 만드세요.
  6. 타임스탬프를 적용하기 전에 중국어 의미 구문별로 자막을 그룹화하세요. 고정된 문자 수로만 분할하지 마십시오. "在不押单个公司的情况下" 또는 "可能会被慢慢稀释"와 같은 구문이 깨져 이해도를 떨어뜨릴 수 있습니다.
  7. 사용자가 명시적으로 이전 런타임과 일치시키도록 요청하지 않는 한, 영상 길이는 승인된 음성 리듬을 따르도록 하세요.

매개변수

  • voice_id: Doubao speaker / 음성 유형. 기본값은 DOUBAO_SPEECH_VOICE_TYPE입니다.
  • resource_id: Doubao Speech 2.0 음성에는 seed-tts-2.0을 사용하세요.
  • speech_rate: 0은 보통, 100은 2배속, -50은 0.5배속입니다.
  • sample_rate: 기본값 24000.
  • enable_timestamp: 기본값 true.
  • return_usage: 기본값 true, 가능한 경우 사용량 메타데이터를 요청합니다.

기본적으로 additions.explicit_language를 전달하지 마세요. 일부 엔드포인트/키 조합은 unsupported additions explicit language zh-cn과 함께 zh-cn을 거부합니다.

차분한 중국어 설명 영상의 경우 speech_rate: 0으로 시작하세요. 결과가 승인된 형식에 너무 긴 경우 전체 내레이션을 다시 생성하기 전에 speech_rate: 25 또는 50으로 짧은 비교 샘플을 만드세요. 사용자가 Doubao의 자연스러운 속도를 선호하는 경우 이전 제공업체의 길이와 일치시키기 위해 속도를 높이지 마세요.

문제 해결

  • load grant: requested grant not found: 잘못된 키 유형 또는 잘못된 인증 헤더입니다. 새 콘솔 API 키에는 X-Api-Key를 사용하세요.
  • speaker permission denied: 음성 ID가 잘못되었거나 선택한 리소스에 권한이 없습니다.
  • quota exceeded: 할당량, 평생 문자 수 또는 동시성 제한을 초과했습니다.
  • 타임스탬프 누락: enable_timestamp: true를 확인하고, 쿼리 JSON을 보관하며, 선택한 엔드포인트가 sentences를 반환했는지 확인하세요.

안전

API 키를 로그, 메타데이터, 패치 또는 프로젝트 아티팩트에 절대 출력하거나 기록하지 마세요. .env.example에는 빈 변수 이름만 포함되어야 합니다.

Individual skills in this repo

This repo contains 9 individual skills — each has its own dedicated page.

Zuhair-01/claude-skills-and-systems

Create AI avatar videos with precise control over avatars, voices, scripts, scenes, and backgrounds using HeyGen's v2 API. Use when: (1) Choosing a specific avatar and voice for a video, (2) Writing exact scripts for an avatar to speak, (3) Building multi-scene videos with different backgrounds per scene, (4) Creating transparent WebM videos for compositing, (5) Using talking photos as video presenters, (6) Integrating HeyGen avatars with Remotion, (7) Batch video generation with exact specs, (8) Brand-consistent production videos with precise control.

Zuhair-01/claude-skills-and-systems

Edit existing videos using AI — remix style, upscale, remove background, and add audio via fal.ai's hosted video models.

Zuhair-01/claude-skills-and-systems

Video and audio processing with FFmpeg. Use for format conversion, resizing, compression, audio extraction, and preparing assets for Remotion. Triggers include converting GIF to MP4, resizing video, extracting audio, compressing files, or any media transformation task.

Zuhair-01/claude-skills-and-systems

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated motion-first unit, including an animated title. Route fresh creation through hyperframes before using this skill.

Zuhair-01/claude-skills-and-systems

Read-only queue dashboard for workspace-aware ship. (gstack)

Zuhair-01/claude-skills-and-systems

Generate HeyGen presenter videos via the v3 Video Agent pipeline — handles Frame Check (aspect ratio correction), prompt engineering, avatar resolution, and voice selection. Required for any HeyGen video generation. Replaces deprecated endpoints with v3. Use when: (1) generating any HeyGen video (via API or otherwise), (2) sending a personalized video message (outreach, update, announcement, pitch, knowledge), (3) creating a HeyGen presenter-led explainer, tutorial, or product demo with a human face, (4) "make a video of me saying...", "send a video to my leads", "record an update for my team", "create a video pitch", "make a loom-style message", "I want to appear in this video", "generate a HeyGen video", "make a talking head video". Accepts avatar_id from heygen-avatar for identity-first HeyGen videos, or uses a stock presenter. Returns video share URL + HeyGen session URL for iteration. Chain signal: when the user wants to create/design an avatar AND make a video in the same request, run heygen-avatar f...

Zuhair-01/claude-skills-and-systems

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

Zuhair-01/claude-skills-and-systems

The HyperFrames composition contract — build one renderable project. Use for composition structure, the `data-*` timing attributes, `class="clip"`, tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

Zuhair-01/claude-skills-and-systems

Generates high-converting Next.js/React landing pages with Tailwind CSS. Uses PAS, AIDA, and BAB frameworks for optimized copy/components (Heroes, Features, Pricing). Focuses on Core Web Vitals/SEO.

관련 스킬