Skip to main content

fireredtts3-onnx

FireRedTTS3(零样本语音克隆 / 多语言 TTS)的 ONNX Runtime 部署,纯 CPU、无 torch 依赖。

一键运行(uvx)

uvx fireredtts3-onnx

首次运行自动从 Hugging Face 下载 tokenizer(~11MB)与 ONNX 产物(~16GB), 然后启动 HTTP TTS 服务:

POST /tts
{
  "text": "今天天气很好,我们一起去公园散步吧。",
  "prompt_text": "参考音频对应的文本",
  "prompt_audio_b64": "<参考音频 wav 的 base64>",
  "prompt_audio_sr": 16000,
  "language": "Chinese"        # 可选,默认 Chinese
}
-> {"audio_b64": "<合成 wav base64>", "sample_rate": 24000}

GET /health

单次合成(不启动服务):

uvx fireredtts3-onnx --text "你好世界" --prompt-wav ref.wav --prompt-text "参考文本" --out gen.wav

模型目录

默认缓存到 ~/.cache/fireredtts3-onnx

  • weights/ 文本 tokenizer(来自 FireRedTeam/FireRedTTS3,运行时为纯 numpy,无需原始权重)
  • onnx/ 转换产物(19 个分段 ONNX:campp / redae 编解码 / patch_encoder / dit / 线性头 / embed / norm / prefill_seg1-4 / step_seg1-4,backbone 8.5GB 拆 8 段内联单文件)

产物仓库默认 yunfengwang/fireredtts3-onnx,可用环境变量覆盖:

export FIREREDTTS3_ONNX_REPO="your-hf-account/fireredtts3-onnx"
export HF_ENDPOINT=https://hf-mirror.com   # 国内镜像

说明

  • 语言标签支持 README 所列 24 种语言与 21 种中文方言(如 ZH_Sichuan
  • 未提供参考音频时使用静音 prompt(语音克隆效果依赖参考音频质量)
  • 文本规范化(TN)请自行在调用前完成

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fireredtts3_onnx-0.2.0.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fireredtts3_onnx-0.2.0-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file fireredtts3_onnx-0.2.0.tar.gz.

File metadata

  • Download URL: fireredtts3_onnx-0.2.0.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.4

File hashes

Hashes for fireredtts3_onnx-0.2.0.tar.gz
Algorithm Hash digest
SHA256 dd2defab15c2f51fc7a79bd28c91992a6974bd0227c724a586134e1800ddec2c
MD5 9c02be8ed9fa2c1f21b59b97f22d14bc
BLAKE2b-256 ac6270cd1a4627b1804a633361186794abe09d9ef299faedb9f721955607a0ce

See more details on using hashes here.

File details

Details for the file fireredtts3_onnx-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fireredtts3_onnx-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 61625a6d3b7f97bbfbc9aa382543cc5e2b3d3aa223077ee37f19f44bd9b85ab7
MD5 e39dadd1440ee050ee37d2496d261ff0
BLAKE2b-256 2172921fd615c5ad91267d82d1493ccfb2f91b762ca4689eaf345d1d92309796

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.1

2 files

This release

0.2.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page