跳到正文
Skillpedia
音频与语音14k · #11258

krillinai-tts

它能做什么

这项技能根据字幕文件生成另一种语言的语音配音,并可以与视频合并。适合希望面向其他语言受众的创作者。

适用场景

  • ✓当你有另一种语言的字幕,并希望配上与之匹配的语音音频的时候。
  • ✓当你希望用新的旁白替换原始语音,制作配音视频的时候。
  • ✓当你想为旁白选择特定声音的时候。

技能链接

https://github.com/krillinai/OpenCreator/blob/master/skills/krillinai-tts/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/krillinai/OpenCreator/blob/master/skills/krillinai-tts/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请根据我的字幕文件制作西班牙语旁白,并把它配到我的视频上?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会读取字幕文件,使用你配置好的语音服务商将每一行转换为语音,并保存合并后的音频。如果提供了视频,它还会生成一个使用新音频的版本。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

KrillinAI TTS

Use this skill for the tts stage. Read skills/krillinai-cli/references/cli-contract.md first for binary location, execution working directory, configuration, and JSON behavior.

Command

(cd "$KRILLINAI_CWD" && "$KRILLINAI_CLI" tts \
  --workdir "$WORKDIR" \
  --input-srt "$WORKDIR/target_language_srt.srt" \
  --line-mode target-only \
  --video "$WORKDIR/origin_video.mp4")

Inputs

  • --input-srt is required. Usually use target_language_srt.srt.
  • --video is optional but needed when generating video_with_tts.mp4.
  • TTS provider must be configured in <execution-cwd>/config/config.toml.

Important Flags

Flag Use
--input-srt SRT to synthesize
--line-mode target-only Use target-language lines only
--line-mode bilingual-target-top Bilingual mode with target on top
--line-mode bilingual-target-bottom Bilingual mode with target on bottom
--voice Provider-specific voice
--voice-clone-source Voice clone source audio URL/path when supported
--dry-run Validate command shape

Outputs

Read paths from manifest:

  • tts_final_audio.wav
  • video_with_tts.mp4 when a video input is available

Verification

  • Require terminal JSON with "ok": true.
  • Confirm tts_final_audio.wav exists and has non-zero size.
  • If video_with_tts.mp4 is produced, inspect duration and audio stream with ffprobe.
  • For JSON/error contract, read skills/krillinai-cli/references/cli-contract.md.
常见问题

我需要语音服务吗?

需要。必须在配置文件中设置文本转语音服务商。

我可以使用克隆的声音吗?

在服务商支持的情况下可以,使用声音样本文件或链接即可。

字幕行是如何选取的?

你可以只使用目标语言的行,也可以使用双语布局,并将目标语言放在上方或下方。

详情

作者的原始描述

Use when generating target-language dubbing with KrillinAI CLI from SRT subtitles, including TTS audio creation and optional dubbed video generation.

repo: krillinai/OpenCreator

热度

GitHub 星标
14k
排名
#11258
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能