Tts Voice Synthesis logo

Tts Voice Synthesis

CommunityPopular
anbeime
tts-voice-synthesis

影片与视频编辑、内容创作者在制作视频配音或有声书时,当需要克隆音色、生成情感化配音或流式实时语音合成请用此技能。支持1.7B高质量与0.6B快速双模型,一键实现多语言方言配音,让语音创作更高效更自然。

Overview

Publisheranbeime
Repositoryskill
Skill nametts-voice-synthesis
Stars
7.9K
Forks
703
Bundled files
5
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.

  • 5 bundled files

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

  • Open source

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

Installation

Install the Tts Voice Synthesis 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/anbeime/skill/tree/main/skills/tts-voice-synthesis
  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/anbeime/skill.git /tmp/skill
mkdir -p .claude/skills
cp -r /tmp/skill/skills/tts-voice-synthesis .claude/skills/tts-voice-synthesis
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Tts Voice Synthesis 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 Tts Voice Synthesis 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 Tts Voice Synthesis 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.

TTS 语音合成服务

任务目标

  • 本 Skill 用于:将文本转换为高质量语音,支持音色克隆、情感适配、流式生成和多语言支持
  • 能力包含:
    • 角色音色自动采集与克隆(从参考音频提取音色特征)
    • 拟人化语义适配配音(根据文本情绪自动调整语音语调、语速、音调)
    • 流式实时配音(支持边输入文本边生成语音)
    • 多语言与方言支持(中文、英文及多种方言)
    • 双模型选择(1.7B 高质量模型、0.6B 快速模型)
  • 触发条件:当需要将文本转换为语音、克隆特定音色、生成情感化配音时使用

前置准备

  • 模型下载:根据选择的 TTS 模型下载对应的权重,详见 references/model_config.md
  • 硬件要求:
    • GPU:推荐使用 8GB+ 显存的 GPU(0.6B 模型可在 CPU 上运行)
    • 内存:建议 16GB+ 系统内存
    • 磁盘空间:至少 10GB 可用空间(模型权重约 3-5GB)
  • 依赖配置:确保已安装所需的 Python 依赖包

操作步骤

模式一:基础语音合成

  1. 文本准备

    • 确认待合成的文本内容
    • 智能体将分析文本情绪和语义特征
  2. 选择音色

    • 使用预置音色(见 references/model_config.md)
    • 或使用已克隆的自定义音色
  3. 执行合成

    • 调用 scripts/tts_generate.py 进行语音生成
    • 根据情绪分析结果自动设置语音参数
  4. 验证输出

    • 检查生成的音频质量和情感匹配度
    • 如有需要,调整参数重新生成

模式二:音色克隆

  1. 准备参考音频

    • 提供目标音色的参考音频文件(3-30 秒,清晰语音)
    • 确保参考音频无背景噪音、音质清晰
  2. 提取音色特征

    • 调用 scripts/voice_clone.py 提取音色特征
    • 保存为可复用的音色模型
  3. 使用克隆音色

    • 使用提取的音色模型生成语音
    • 可应用于不同文本的配音

模式三:流式实时配音

  1. 文本分段

    • 将长文本分段处理(智能体自动完成)
    • 确保分段自然,不会截断语义
  2. 流式生成

    • 调用 scripts/tts_generate.py 启用流式模式
    • 逐步生成并输出音频片段
  3. 实时合并

    • 将生成的音频片段实时合并
    • 输出完整的配音文件

模式四:情感适配配音

  1. 文本情绪分析

    • 智能体分析文本的情绪倾向(高兴、悲伤、愤怒、平静等)
    • 识别关键情感词和语气
  2. 语音参数调整

    • 根据情绪自动调整:
      • 语速(悲伤时放慢,兴奋时加快)
      • 音调(悲伤时降低,兴奋时提高)
      • 音量(根据情感强度调整)
  3. 生成验证

    • 生成情感化语音
    • 验证情感表达是否准确

资源索引

注意事项

  • 模型选择:
    • 1.7B 模型:音质更高,适合高质量配音、有声书等场景
    • 0.6B 模型:速度更快,适合实时交互、智能客服等场景
  • 音色克隆:
    • 参考音频应清晰、无背景噪音
    • 时长建议 5-15 秒,最短不少于 3 秒
    • 单人语音效果最佳,避免多人混合音频
  • 流式生成:
    • 适合长文本和实时交互场景
    • 会产生多个临时音频片段
  • 情感适配:
    • 文本情绪分析由智能体完成
    • 最终效果取决于情感标注的准确性
    • 可手动调整语音参数进行微调

使用示例

  • 基础语音合成:
    bash
    python scripts/tts_generate.py \
      --text "你好,欢迎使用语音合成服务" \
      --output_path ./output/hello.wav \
      --model_size 1.7B \
      --voice default
  • 音色克隆:
    bash
    python scripts/voice_clone.py \
      --reference_audio ./reference.wav \
      --voice_name my_voice \
      --output_dir ./voices
  • 情感化配音:
    bash
    python scripts/tts_generate.py \
      --text "今天真是太开心了!" \
      --output_path ./output/happy.wav \
      --emotion happy \
      --speed 1.2 \
      --pitch 1.1
  • 流式生成:
    bash
    python scripts/tts_generate.py \
      --text_file ./long_text.txt \
      --output_path ./output/stream_output.wav \
      --streaming true

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 Tts Voice Synthesis AI skill do?

影片与视频编辑、内容创作者在制作视频配音或有声书时,当需要克隆音色、生成情感化配音或流式实时语音合成请用此技能。支持1.7B高质量与0.6B快速双模型,一键实现多语言方言配音,让语音创作更高效更自然。

Why use Tts Voice Synthesis on TypingMind?

Because you install it once and use it with any model. Tts Voice Synthesis 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 Tts Voice Synthesis in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/anbeime/skill/tree/main/skills/tts-voice-synthesis. 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 Tts Voice Synthesis?

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 Tts Voice Synthesis?

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

Is the Tts Voice Synthesis AI skill free?

It is published on GitHub by anbeime. Check the repository for licensing terms. 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 👇