AI卡包 ACCESS.AICARDBAO.COM
首页 / 开源 / F5-TTS
AI TOOL / #12980

F5-TTS

基于 Flow Matching 的 TTS,语音流畅自然,零样本克隆贴近原声。

详细介绍

功能要点

  • Flow Matching 架构,流畅忠实的语音合成
  • 零样本声音克隆,音色贴近参考

F5-TTS:结合ConvNeXt V2技术的扩散变换模型,训练与推理速度更快。

E2 TTS: Flat-UNet Transformer,对论文中提出的模型进行了最接近的复现。

Sway Sampling: 在推理过程中采用流步骤采样策略,显著提升了性能。

感谢所有贡献者!

新闻动态

安装说明

如有需要,可创建独立的环境

# 创建一个支持python_version>=3.10的conda环境(也可使用virtualenv)
conda create -n f5-tts python=3.11
conda activate f5-tts

# 如果尚未安装FFmpeg,请先进行安装
conda install ffmpeg

安装与您的硬件配置匹配的PyTorch版本

需要NVIDIA GPU

```bash # 根据您的CUDA版本安装pytorch,例如: pip install torch==2.8.0+cu128 torchaudio==2.8.0+cu128 --extra-index-url https://download.pytorch.org/whl/cu128
# 同样也适用于之前的版本,例如: pip install torch==2.4.0+cu124 torchaudio==2.4.0+cu124 --extra-index-url https://download.pytorch.org/whl/cu124 # 等等。 ```

AMD GPU

``bash # 如果你使用的是ROCm版本,可以这样安装pytorch(仅限Linux系统): pip install torch==2.9.1+rocm7.2 torchaudio==2.9.1+rocm7.2 --extra-index-url https://download.pytorch.org/whl/rocm7.2 # 对于较旧的GPU(仅限RDNA1/2/3系列): # pip install torch==2.5.1+rocm6.2 torchaudio==2.5.1+rocm6.2 --extra-index-url https://download.pytorch.org/whl/rocm6.2 ` **注意:** RDNA 3.5和RDNA 4系列的GPU(如Radeon 8050S/8060S、RX 9060/9070系列)需要使用ROCm 7.x版本——因为这些架构(gfx1151/gfx1201)并不包含在ROCm 6.x中 ([6.2版本的兼容性表格](https://rocm.docs.amd.com/en/docs-6.2.4/compatibility/compatibility-matrix.html)与[7.2版本的兼容性表格](https://rocmdocs.amd.com/en/docs-7.2.3/compatibility/compatibility-matrix.html)进行了对比)。如果在这些GPU上使用ROCm 6.x,会出现HIP错误:无效设备函数`的问题(参见#1236)。

Intel GPU

```bash
# 根据你的XPU版本来安装pytorch,例如……
累计访问:10 更新时间:2026-12-03 AI 工具

相关推荐