跳到主要内容Skip to main content
语音与音频Speech & Audio生产可用Production

F5-TTS

SWivid / F5-TTS

基于 Flow Matching 与 Diffusion Transformer 的 TTS:用短参考音频做零样本声音克隆,支持中英与速度控制,提供训练与推理代码。A TTS model based on Flow Matching and a Diffusion Transformer: zero-shot voice cloning from a short reference, Chinese and English, with speed control and training code.

15.6k stars 2289 forks Python 语言Language MIT 许可License 最近推送Last push 2026-11-03

为什么选Why choose it

  • 克隆相似度与自然度在开源 TTS 里靠前,推理代码完整。Zero-shot cloning from a short reference.
  • 可自己微调,适合做有声内容与角色音色。Flow-matching and DiT architecture.
  • Sway Sampling 等推理技巧有论文与消融,便于复现。Training and inference code are available.

不适合Not for

声音克隆涉及声音权与诈骗风险,必须取得授权并披露。You need a CPU-only real-time engine.
不是实时低延迟引擎,长文本要分块。You cannot secure consent for cloned voices.
参考音频的噪声与口音会直接进入输出。参考音频的噪声与口音会直接进入输出。

最小上手Minimum setup

  1. 按 README 装环境与模型,准备 5-10 秒干净参考音频。Clone a consented reference and synthesise one sentence.
  2. 用 CLI 生成一句,检查发音与相似度。Test Chinese and English with the same voice.
  3. 再跑 Gradio demo,试中英混排与语速。Compare speed settings for naturalness.

依赖与成本Dependencies and cost

Python + PyTorch;GPU 推荐(推理可 CPU 但慢);参考音频;模型权重。Check runtime, model weights and external service dependencies in the README.

许可与使用边界License and usage boundaries

代码 MIT;预训练权重与 Emilia 数据可能另有非商用/署名条款,商用前读模型卡。Code is MIT; model weights, training data and generated content may have separate terms — check each before commercial use.

开源不等于可商用:GPL / AGPL 有传染性;代码许可、模型许可、生成内容许可要分开看。上线前读仓库 LICENSE 与模型卡,必要时让法务确认。Open source is not automatically commercial-use friendly: GPL / AGPL are copyleft; code, model and output licenses are separate. Read the LICENSE and model card before launch, and involve legal when needed.

替代与相邻Alternatives and neighbors

  • CosyVoice — 特定场景Niche,零样本语音合成与音色克隆,支持多语言与情感控制。Zero-shot speech synthesis and voice cloning with multilingual and emotional control.
  • GPT-SoVITS — 特定场景Niche,少样本语音克隆与 TTS:约 1 分钟干净语音就能微调,支持中英日跨语言,带训练与推理 WebUI。Few-shot voice cloning and TTS: fine-tune on about one minute of clean speech, support Chinese, English and Japanese cross-lingual output, with training and inference web UIs.
  • Fish Speech — 特定场景Niche,多语言 TTS 与音色克隆,强调少样本、跨语言与情感表达。Multilingual TTS and voice cloning with a focus on few-shot, cross-lingual and emotional expression.

下一步Next steps

  • 打开 GitHub,先读 README、LICENSE、最近 release 与 issue。Open GitHub and read the README, LICENSE, latest release and issues first.
  • 按“部署依赖 / 显存 / 数据 / 网络 / 权限”列一张上手清单。Make an onboarding checklist for deployment dependencies, VRAM, data, network and permissions.
  • 用一个小样本跑通,再决定是否进生产;不要直接上生产数据。Run a small sample first, then decide on production; never start with production data.

GitHub 仓库 ↗GitHub repository ↗ 文档 ↗Docs ↗ 加入对比Add to compare

快照口径:stars / forks / language / license / pushed_at 来自 GitHub API 2026-11-20 快照;之后的变化没有回写。标签与“适合 / 不适合”是编辑判断,不是 GitHub 元数据。Snapshot: stars / forks / language / license / pushed_at come from the GitHub API snapshot on 2026-11-20; later changes are not written back. Tags and “fit / not fit” are editorial judgments, not GitHub metadata.
不背书:本站只做索引与风险提示,不审计代码、不保证安全、不替你做许可判断。仓库脚本与模型权重请自行审查。No endorsement: this site only indexes and flags risks; it does not audit code, guarantee security or make license decisions for you. Review repository scripts and model weights yourself.