/ Модель

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

Лицензия
Apache 2.0
Базовая модель
Kokoro-82M
Библиотека
pytorch
Опубликована
11 ноя 2026

nano-edge-tts

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

Компактный декодер для синтеза английской речи, заменяющий волновой декодер Kokoro-82M и уменьшающий его размер.

478скачиваний за 30 дней19лайковвеса обновлены20 ноя 2026

Бенчмарки

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

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Синтез речи» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

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

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

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

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

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

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

nano-edge-tts — компактный декодер речи, разработанный автором репозитория drmhse как замена волнового декодера Kokoro-82M. Он сохраняет текстовую часть Kokoro, включая произношение, тайминг, высоту тона и голоса, а аудио синтезирует двумя небольшими нейросетями и гармонико-шумовым синтезатором. Декодер содержит около 1,75 млн параметров; вся модель с текстовой частью — около 30,2 млн. Веса декодера распространяются в формате safetensors, библиотека — PyTorch.

Модель предназначена для синтеза речи из текста в приложениях, использующих Kokoro, в том числе для локального запуска. Она обучена методом дистилляции декодера Kokoro и рассчитана прежде всего на 28 американских и британских английских голосов. Другие языки Kokoro могут работать, но не тестировались. В отдельных озвученных фрагментах слышен слабый машинный оттенок; качество и скорость оценивались ограниченно. Лицензия — Apache-2.0.

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

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

Ограничения

Обучение и оценка проводились на 28 американских и британских английских голосах Kokoro; работа с другими языками не проверена. На некоторых голосах слышен слабый машинный оттенок, а тесты прослушивания проводил один слушатель.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

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

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

Открыть на Hugging Face

nano-edge-tts

A 1.75M-parameter decoder for Kokoro-82M that runs no neural network at audio rate.

Kokoro's text side (pronunciation, timing, pitch and all voices) is unchanged. Its 53.3M-parameter waveform decoder is replaced by two small networks that run 80 and 160 times a second and set per-frequency gains on a pulse train and on white noise. Two inverse STFTs turn the result into audio.

The pipeline: Kokoro's text side, the mapper and renderer that replace Kokoro's decoder, a fixed pulse-and-noise synthesiser, and the audio

Paper: No Network at Audio Rate: A 1.75M-Parameter Harmonic-plus-Noise Decoder for Kokoro-82M (method, results, listening tests and negative results).

Kokoro-82Mnano-edge-tts
decoder parameters53.3M1.75M
whole model parameters81.8M30.2M
decoder weights on disk213 MB7.0 MB
decoder speed, one CPU thread (real-time factor)¹0.13780.0042 (33× faster)
phonemes to audio, one CPU thread (real-time factor)²0.14110.0127 (11× faster)
peak memory, whole pipeline²1.4 to 1.7 GB0.75 GB
Whisper small.en word errors, 240 sentences235 (4.63%)238 (4.69%)
UTMOS, 28 validation clips4.3834.327

¹ 240 validation sentences, PyTorch, Apple M4. ² Six validation sentences, 55 s of audio, same machine. Raw numbers are in results/.

Parameter counts to scale: Kokoro's decoder, and the mapper and renderer that replace it

How it sounds

The same sentence through Kokoro's decoder and through this one:

voiceKokoro-82Mnano-edge-tts
af_heart
af_bella
am_michael
am_fenrir
bf_emma
bm_george

In blind A/B tests by one listener (the author), an earlier checkpoint was heard as the same as Kokoro on 9 of 12 pairs. The released model is close to Kokoro on most sentences and not identical: on some, voiced sounds between 1 and 4 kHz are a little too pure, heard as a faint machine-like tone. The paper describes the defect and two attempts to train it away that did not work.

Blind listening results across three pages during training

Quick start

pip install kokoro==0.9.4 safetensors soundfile
hf download drmhse/nano-edge-tts --local-dir nano-edge-tts --exclude "samples/*"
cd nano-edge-tts
import numpy as np, soundfile as sf
from kokoro import KPipeline
from nano_edge_tts import load

pipe = KPipeline(lang_code='a', model=load())   # 'a' American English, 'b' British English
audio = np.concatenate([r.audio.numpy() for r in pipe('The decoder that made this has under two million parameters.', voice='af_heart')])
sf.write('out.wav', audio, 24000)

load() returns Kokoro-82M with its decoder replaced, so it works anywhere a KModel does. Kokoro's own weights and voices are downloaded from its repository on first use. load_decoder() returns the decoder alone: decoder(asr, F0, N, style) -> waveform, the same call as Kokoro's.

Files

filecontents
nano-edge-tts.safetensors, config.jsonMapper and renderer weights (1,749,643 parameters) and their sizes
nano_edge_tts.pyThe whole decoder in one file: excitation, STFTs, mapper, renderer, loader. Needs only PyTorch
paper.pdfThe paper
samples/, samples.pyThe pairs above and the script that renders them
results/Evaluation on 240 validation sentences, and whole-pipeline speed and memory

How it works

  • Mapper (0.96M parameters, 80 frames/s): six ConvNeXt blocks turn Kokoro's decoder inputs into a 512-channel description of the sound.
  • Renderer network (0.79M parameters, 160 frames/s): four ConvNeXt blocks output, per frame, a gain and a phase rotation for each of 301 frequency bins of a pulse train, and a gain for each of 61 bins of white noise at five sub-steps.
  • Synthesiser (no parameters): a pulse train at the predicted pitch carries every harmonic, noise carries breath and consonants. The pulses use a 25 ms window, which separates harmonics; the noise uses a 5 ms window, which keeps consonant attacks sharp.

Training distils Kokoro's decoder: spectral losses against Kokoro's audio, waveform discriminators, and a critic on frozen WavLM layers that has to tell Kokoro's clips from this decoder's. None of those ship with the model.

Limitations

  • Trained and evaluated on Kokoro's 28 American and British English voices. Other Kokoro languages run but are untested.
  • Kokoro is the target, so this model is at best as good as Kokoro, and it inherits Kokoro's pronunciation and prosody.
  • Kokoro's 28.5M-parameter text side is unchanged; it is now 94% of the parameters and 69% of the CPU time.
  • A faint machine-like tone on some voiced sounds, most on two or three voices (see the paper).
  • Listening results come from one listener. Speed was measured in PyTorch on a laptop CPU, not on a phone.

See also

nano-edge-tts-standalone replaces Kokoro's text side too: 3.27M parameters in all, no Kokoro network at inference, with every training checkpoint published.

Licence and credit

Apache-2.0, the same as Kokoro-82M, whose text side and voices this model depends on. Kokoro-82M is by hexgrad. WavLM (Microsoft) was used only as a frozen feature extractor during training.

@misc{chumba2026nanoedgetts,
  title  = {No Network at Audio Rate: A 1.75M-Parameter Harmonic-plus-Noise Decoder for Kokoro-82M},
  author = {Mike Chumba},
  year   = {2026},
  url    = {https://huggingface.co/drmhse/nano-edge-tts}
}

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

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

GPU в ailist

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

Можно запустить

Подбираем GPU…

Ревизия весов
52606e3

0 моделей