/ Модель

Характеристики

Лицензия
OpenRAIL
Библиотека
pytorch
Опубликована
11 июл 2026

supertonic-zh

Синтез речиТекст → аудио

Supertonic-ZH — предварительная модель на основе Supertonic-3 для синтеза мандаринской речи из текста с помощью ONNX Runtime.

0скачиваний за 30 дней4лайкавеса обновлены13 июл 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Supertonic-ZH — неофициальная предварительная версия модели синтеза речи на мандаринском китайском языке, созданная на основе семейства Supertonic-3. Разработчик адаптировал текстовый энкодер, предсказатель длительности и векторный оцениватель для китайского языка и поставляет их как оптимизированные объединённые графы ONNX. Для инференса используется ONNX Runtime; замороженный вокодер Supertonic-3 нужно получить отдельно из upstream-репозитория, он не включён в этот репозиторий.

Модель преобразует китайский текст в речь и использует один предустановленный голос. Клонирование голоса в этой версии не поддерживается. Карточка также указывает сохранение поддержки английского, русского, арабского, французского, японского и корейского из базовой модели, но переключение между китайским и английским работает ненадёжно.

Это предварительная версия для оценки реализуемости, а не готовый продукт. Среди ограничений — высокочастотные артефакты, связанные с неизменённым вокодером, и присущие акустической модели ошибки в тонах, чтении многозвучных иероглифов и эрхуа. Доступ к весам предоставляется по запросу; текущая сборка доступна только для некоммерческой оценки по лицензии OpenRAIL, с ограничениями, связанными с использованием обучающих данных Baker/CSMSC.

Сценарии применения

  • синтез мандаринской речи из китайского текста
  • создание озвучки на китайском для демонстрационных материалов
  • оценка локального синтеза речи на устройстве
  • эксперименты с преобразованием китайского текста в аудио

Ограничения

Переключение между китайским и английским ненадёжно; возможны артефакты высоких частот и ошибки в тонах, чтении многозвучных иероглифов и эрхуа. Включён один предустановленный голос, а для инференса требуется отдельно получить вокодер Supertonic-3.

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

🗣️ Supertonic-ZH — v0.1.0-preview

Unofficial Mandarin (Chinese) text-to-speech · built on Supertonic-3.

Supertonic-3 is a fast, lightweight, on-device TTS family that does not synthesize Mandarin out of the box. Supertonic-ZH ships Mandarin as optimized, fused ONNX graphs (text encoder / duration predictor / vector estimator) that run in pure ONNX Runtime — no PyTorch. The vocoder is the frozen, unmodified upstream Supertonic-3 graph.

🔊 Hear it first — demos + benchmark: github.com/wuxuedaifu/supertonic_cn (Mandarin, plus retained English / Russian / Arabic / French / Japanese / Korean from the base model).

🔐 Gated / access

These weights are gated and provided on request under an evaluation license. Click "Request access" above. The current build is non-commercial only (Baker/CSMSC training data). Commercial licensing (a Baker-free build) is available separately — contact the author.

📦 What's in this repo

FileWhat it is
text_encoder_zh.onnxMandarin text encoder (fused / optimized ONNX)
duration_predictor_zh.onnxMandarin duration predictor (fused / optimized ONNX)
vector_estimator_zh.onnxMandarin flow / vector estimator (fused / optimized ONNX)
unicode_indexer_zh.jsonChinese Unicode tokenizer / vocabulary
voice_zh.jsonPreset Mandarin voice (style embedding)
example_infer.pyMinimal pure–ONNX Runtime inference example

Not included — obtain from upstream:

Usage

1. Request access

Open this repository on Hugging Face, review the license conditions, and click Request access.

This release is for evaluation and non-commercial use only.

2. Install dependencies

pip install huggingface_hub onnxruntime numpy soundfile

For NVIDIA GPU inference, install ONNX Runtime GPU instead:

pip install huggingface_hub onnxruntime-gpu numpy soundfile

Do not install both onnxruntime and onnxruntime-gpu in the same environment.

3. Authenticate with Hugging Face

hf auth login

Use a Hugging Face access token belonging to an account that has been granted access to this repository.

4. Download Supertonic-ZH

hf download dove88/supertonic-zh \
  --local-dir ./supertonic-zh

Alternatively, download it from Python:

from huggingface_hub import snapshot_download

model_dir = snapshot_download(
    repo_id="dove88/supertonic-zh",
    local_dir="./supertonic-zh",
)

print(f"Model downloaded to: {model_dir}")

5. Obtain the upstream vocoder

This repository does not redistribute vocoder.onnx.

Download vocoder.onnx from the official upstream repository:

Supertone/supertonic-3

Place it inside the downloaded model directory:

supertonic-zh/
├── text_encoder_zh.onnx
├── duration_predictor_zh.onnx
├── vector_estimator_zh.onnx
├── unicode_indexer_zh.json
├── voice_zh.json
├── example_infer.py
└── vocoder.onnx

6. Generate speech

cd supertonic-zh

python example_infer.py \
  "今天天气很好,我们一起去公园散步吧。"

The generated audio is saved as:

out.wav

Python example

import subprocess
import sys
from pathlib import Path

model_dir = Path("./supertonic-zh")
script_path = model_dir / "example_infer.py"

required_files = [
    "text_encoder_zh.onnx",
    "duration_predictor_zh.onnx",
    "vector_estimator_zh.onnx",
    "unicode_indexer_zh.json",
    "voice_zh.json",
    "vocoder.onnx",
    "example_infer.py",
]

missing_files = [
    filename
    for filename in required_files
    if not (model_dir / filename).exists()
]

if missing_files:
    raise FileNotFoundError(
        "Missing required files: " + ", ".join(missing_files)
    )

subprocess.run(
    [
        sys.executable,
        str(script_path),
        "欢迎使用 Supertonic 中文语音合成模型。",
    ],
    cwd=model_dir,
    check=True,
)

Included files

FileDescription
text_encoder_zh.onnxMandarin text encoder
duration_predictor_zh.onnxMandarin duration predictor
vector_estimator_zh.onnxMandarin flow/vector estimator
unicode_indexer_zh.jsonChinese character tokenizer and vocabulary
voice_zh.jsonPreset Mandarin voice embedding
example_infer.pyMinimal ONNX Runtime inference script

The upstream vocoder.onnx file is required but is not included in this repository.

See example_infer.py for the full ~60-line pipeline (tokenize → text encoder → duration → flow-matching loop → vocoder). No PyTorch required.

🎙️ Voice

Ships a single preset voice (voice_zh.json). Custom voice / voice cloning is a separate capability, not part of this release.

⚠️ Limitations

  1. Residual high-frequency artifact — bounded by the frozen upstream vocoder (never fine-tuned); a ceiling, not a bug.
  2. Chinese⇄English code-switching is currently unreliable — embedded English words can be unclear (the Chinese fine-tune had no English data). On the roadmap.
  3. Tone / polyphone / erhua accuracy are model-inherent to the character-level acoustic model.
  4. Single preset voice.

Treat this as a feasibility preview, not a finished product.

🧾 License & attribution

  • Base model: Supertonic-3, BigScience Open RAIL-M — its use-based restrictions (Attachment A) apply to this derivative and must be passed on to any downstream user.
  • This build: additionally non-commercial only because of the Baker/CSMSC training data.
  • Training data: AISHELL-3 (OpenSLR SLR93, Apache-2.0) + Baker/CSMSC (non-commercial).

Built on the publicly released Supertonic-3 model and sample code by Supertone Inc. This is an independent, unofficial extension.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · pytorch

Нельзя запустить

Доступ к модели ограничен автором; у платформы нет доступа к весам.

Ревизия весов
1c5232f

0 моделей