doubao-tts
できること
このスキルは、Doubao Speechサービスでボイスオーバーのナレーションを作成します。中国語や多言語のナレーションが必要な人、またはDoubaoの音声サービスを使いたい人向けです。
使う場面
- ✓動画用の中国語のボイスオーバーが必要なとき。
- ✓ナレーションにDoubaoまたはVolcengineの音声サービスを使いたいとき。
- ✓字幕を作るために、単語や文字ごとのタイミングデータが必要なとき。
スキルのリンク
https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/doubao-tts/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このスクリプトを中国語のボイスオーバーにして、字幕用のタイミングデータも出力してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、テキストと選んだ声をDoubao Speechサービスに送ります。長いナレーションの場合はバックグラウンドジョブを使い、音声と、文ごと・単語ごとのタイミングデータを返します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Doubao TTS
Requires DOUBAO_SPEECH_API_KEY in .env.
Set DOUBAO_SPEECH_VOICE_TYPE for the default voice, or pass voice_id to the tool.
Current API
Use the new-console API key flow:
X-Api-Key: ${DOUBAO_SPEECH_API_KEY}
X-Api-Resource-Id: seed-tts-2.0
Do not use X-Api-App-Id and X-Api-Access-Key with a new-console API Key. If the API returns load grant: requested grant not found, the key type or auth header is probably wrong.
For long-form video narration, prefer the async endpoint:
POST https://openspeech.bytedance.com/api/v3/tts/submit
POST https://openspeech.bytedance.com/api/v3/tts/query
This returns audio_url plus sentences[].words[] timing metadata that can be used to build subtitles.
OpenMontage Usage
Generate with the TTS selector:
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,
})
Or call the provider directly:
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",
})
The provider writes:
output_path: downloaded audio filemetadata_path: full query response JSON, defaulting to<output_path>.json
Recommended Workflow
- Generate a 10-15 second sample before a full paid narration.
- Ask the user to approve voice naturalness, accent, and speed.
- Generate the full narration only after approval.
- Keep the query JSON. It is the source of truth for subtitle timing.
- Build captions from
sentences[].words[], not from estimated text length. - Group captions by Chinese semantic phrases before applying timestamps. Do not split only by fixed character count; it can break phrases like "在不押单个公司的情况下" or "可能会被慢慢稀释" and hurt comprehension.
- Let the video duration follow the approved voice rhythm unless the user explicitly asks to match a prior runtime.
Parameters
voice_id: Doubaospeaker/ voice type. Defaults toDOUBAO_SPEECH_VOICE_TYPE.resource_id: useseed-tts-2.0for Doubao Speech 2.0 voices.speech_rate:0is normal,100is 2x,-50is 0.5x.sample_rate: default24000.enable_timestamp: defaulttrue.return_usage: defaulttrue, requests usage metadata when available.
Do not pass additions.explicit_language by default. Some endpoint/key combinations reject zh-cn with unsupported additions explicit language zh-cn.
For calm Mandarin explainers, start with speech_rate: 0. If the result is too long for the approved format, make a short comparison sample with speech_rate: 25 or 50 before regenerating the full narration. Do not speed up only to match a previous provider's duration if the user prefers Doubao's natural pace.
Troubleshooting
load grant: requested grant not found: wrong key type or wrong auth header. UseX-Api-Keyfor new-console API Keys.speaker permission denied: voice id is wrong or not authorized for the selected resource.quota exceeded: quota, lifetime characters, or concurrency exceeded.- Missing timestamps: verify
enable_timestamp: true, keep the query JSON, and confirm the selected endpoint returnedsentences.
Safety
Never print or write the API key to logs, metadata, patches, or project artifacts. .env.example should contain only empty variable names.
よくある質問
何を設定する必要がありますか?
.envファイルにDOUBAO_SPEECH_API_KEYが必要です。既定の声も設定できます。
字幕用のタイミングはありますか?
はい。長いナレーションのオプションでは、文ごと・単語ごとのタイミングが返されます。
grantエラーが出た場合はどうすればよいですか?
このスキルでは、キーの種類または認可ヘッダーが誤っている可能性が高いと案内しているため、キーの種類を確認してください。
詳細
作者による元の説明
Generate Mandarin and multilingual narration with Volcengine Doubao Speech 2.0. Use when creating Chinese voiceovers, when the user prefers Doubao/Volcengine/火山引擎/豆包 TTS, or when narration needs character-level timestamp metadata for subtitles.
repo: calesthio/OpenMontage
人気
- GitHubのスター
- 75k
- ランキング
- #2651
- ライセンス
- AGPL-3.0
- 更新日
- 2026/10/28
コメント
- …
このリポジトリの他のスキル
3d-asset-generation
75kシーンに使う3Dオブジェクトの作り方を、カタログ、テキストや画像から3Dへのツール、最終的な組み立てのための Blender の中から選ぶよう、エージェントを支援します。
acestep
75k動画用の背景音楽、曲、ジングル、ステムを、オープンな ACE-Step の音楽生成ツールを使って作るよう、エージェントを支援します。
agents
75kElevenLabs を使って、顧客対応のボットやインタラクティブな音声キャラクターなど、音声のAIアシスタントを作ります。
ai-video-gen
75kテキストの説明や参考画像から、いくつかの動画生成サービスの中から選んで、AI の動画クリップを生成するよう、エージェントを支援します。