Ai Voiceover Edge Tts logo

Ai Voiceover Edge Tts

Community
xianyu110
ai-voiceover-edge-tts

AI 口播配音:用免费的 edge-tts(微软 Edge 在线语音)为带货短视频逐句生成配音,自动去首尾静音、统计每句时长、缓存复用,可选音色/语速/音调,并给出口播稿改写规则。Use when the user needs a voice-over, 配音, 口播, 旁白, TTS, text-to-speech, AI 主播声音, or wants to turn a script into audio for 抖音 / TikTok / 视频号 videos.

Overview

Publisherxianyu110
Repositoryecommerce-video-skills
Skill nameai-voiceover-edge-tts
Stars
110
Forks
16
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by xianyu110 on GitHub. Read the source before you install it.

Installation

Install the Ai Voiceover Edge Tts AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/xianyu110/ecommerce-video-skills/tree/main/skills/ai-voiceover-edge-tts
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/xianyu110/ecommerce-video-skills.git /tmp/ecommerce-video-skills
mkdir -p .claude/skills
cp -r /tmp/ecommerce-video-skills/skills/ai-voiceover-edge-tts .claude/skills/ai-voiceover-edge-tts
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ai Voiceover Edge Tts in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Ai Voiceover Edge Tts on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Ai Voiceover Edge Tts is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

AI 口播配音 · Voice-over with edge-tts

逐句合成 → 去静音 → 48 kHz WAV → durations.json。后续的字幕、镜头时长都按真实配音时长对齐,不再「声画对不上」。

Part of ecommerce-video-skills · 脚本:scripts/tts_edge.py(仅依赖 edge-tts + ffmpeg)

输入 Inputs

  • 口播稿(一句一行,或 storyboard.json 的 line 字段)
  • 语言 / 音色偏好(男/女、活泼/沉稳)、语速
  • 环境:pip install edge-tts,ffmpeg,能访问微软 TTS 服务的网络

步骤 Steps

  1. 改写成「好读」的口播稿(见规则),每句 8–20 字。

  2. 选音色(python scripts/tts_edge.py --list zh-CN 查看全部):

    场景推荐音色
    活力种草(男)zh-CN-YunxiNeural
    亲切种草(女)zh-CN-XiaoxiaoNeural / zh-CN-XiaoyiNeural
    激情促销zh-CN-YunjianNeural
    专业讲解zh-CN-YunyangNeural
    台湾 / 香港zh-TW-HsiaoChenNeural / zh-HK-HiuMaanNeural
    Englishen-US-AndrewNeural · en-US-AvaNeural · en-US-EmmaNeural
  3. 合成:

    bash
    pip install edge-tts
    # 单句试听
    python scripts/tts_edge.py "夏天带冰水出门,不到中午就变温了?" --voice zh-CN-YunxiNeural --rate "+10%" -o out/hook.wav
    # 整个分镜(每镜一句 → build/tts/l00.wav … + durations.json)
    python scripts/tts_edge.py --storyboard storyboard.json --outdir build/tts
  4. 试听 2 句再批量:语速 +5%~+15% 最像带货口播;超过 +20% 会显得赶。

  5. 交给 ffmpeg-auto-assemble(它会自动调用本脚本)或自己的剪辑软件。

口播稿改写规则 Script rules

  • 数字写成「读法」:2核8G → 两核八G;24h → 二十四小时;型号字母之间加空格 A I。字幕可以保留原写法(sub 字段)。
  • 一句只说一件事;逗号就是换气点,句末用句号/问号让语调落下来。
  • 去掉书面词:「此款产品具有…」→「这只杯子…」。
  • 英文品牌名若读错,用拼读或谐音写进 line,sub 保留正确拼写。

提示词模板 Prompt template

text
把下面的带货文案改写成适合 TTS 朗读的口播稿:每句 8–20 字、一句一件事、口语化;
数字和字母写成读法;另外输出一列「字幕版」保留原始写法并用 **加粗** 标 1 个关键词。
不要添加原文没有的卖点或数据。原文:{…}

检查清单 Checklist

  • 先试听 2 句确认音色/语速
  • 数字、英文、品牌名读音正确
  • durations.json 已生成,总时长符合目标
  • 商用前确认所在平台与地区对 AI 配音的标注要求(如需标注「AI 生成」)

常见问题与修复 Failure fixes

问题修复
edge-tts failed / 超时网络问题,脚本已重试 3 次;换网络或稍后再试;离线时用 assemble.py --tts none 先预览画面
读音错误在 line 里写谐音/拼读,sub 保留原文
句子之间停顿太长已自动去首尾静音;调 storyboard 的 pad(默认 0.25s)
声音太平换 YunjianNeural/XiaoyiNeural;--pitch "+5Hz";句尾用问号/感叹号
需要真人感edge-tts 是合成音;高要求场景改用真人录音,流水线照样可用(把录音放进 build/tts/lXX.wav)

edge-tts 由社区维护(rany2/edge-tts,LGPL-3.0),调用的是微软在线服务;本仓库只把它当依赖安装,不包含其代码。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Ai Voiceover Edge Tts AI skill do?

AI 口播配音:用免费的 edge-tts(微软 Edge 在线语音)为带货短视频逐句生成配音,自动去首尾静音、统计每句时长、缓存复用,可选音色/语速/音调,并给出口播稿改写规则。Use when the user needs a voice-over, 配音, 口播, 旁白, TTS, text-to-speech, AI 主播声音, or wants to turn a script into audio for 抖音 / TikTok / 视频号 videos.

Why use Ai Voiceover Edge Tts on TypingMind?

Because you install it once and use it with any model. Ai Voiceover Edge Tts is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Ai Voiceover Edge Tts in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/xianyu110/ecommerce-video-skills/tree/main/skills/ai-voiceover-edge-tts. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Ai Voiceover Edge Tts?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Ai Voiceover Edge Tts?

As many as you like. As long as a model supports skills, you can use Ai Voiceover Edge Tts with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Ai Voiceover Edge Tts AI skill free?

Yes. It is published on GitHub by xianyu110 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇