/ Модель

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

Лицензия
Apache 2.0
Опубликована
14 ноя 2026

tiny-voca

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

Компактная модель n4ze3m для локального синтеза американской английской речи двумя фиксированными голосами.

18 909скачиваний за 30 дней453лайкавеса обновлены20 ноя 2026

Бенчмарки

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

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

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

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

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

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

tiny-voca — компактная англоязычная модель синтеза речи, созданная автором репозитория n4ze3m с нуля. Вся система содержит около 4,54 млн параметров и использует трансформерный энкодер фонем, предсказатель длительности и два трансформера для предсказания характеристик речи. Для генерации волны применяется source-filter синтезатор вместо нейронного вокодера. Модель поддерживает два фиксированных голоса — женский F2 и мужской M2 с американским произношением — и выдаёт монофонический звук с частотой 24 кГц. Доступны веса PyTorch, экспорт ONNX и варианты GGUF; заявлена работа примерно в 70 раз быстрее реального времени на четырёх потоках CPU.

Модель предназначена для локального озвучивания текста, в том числе на телефоне или в браузере. Она принимает фонемные токены и ударения, а преобразование текста в фонемы выполняет внешний phonemizer. Один вызов обрабатывает до 512 токенов и примерно 32 секунд речи; длинный текст следует разбивать на предложения. Лицензия — Apache-2.0.

Модель работает только с английским языком и двумя неизменяемыми голосами, не поддерживает клонирование голоса, потоковую генерацию или вариативность просодии. Голос может звучать синтетически; иностранные имена, необычные написания, числа и сокращения могут произноситься неверно. Обучение проводилось на синтетической речи, а опубликованная оценка основана на небольших наборах и не заменяет формальное прослушивание.

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

  • озвучивание английского текста женским или мужским голосом
  • локальная генерация речи на CPU
  • озвучивание текста в браузере через ONNX Runtime Web
  • создание коротких аудиофрагментов для приложений и прототипов

Ограничения

Поддерживается только английский язык и два фиксированных голоса; нет клонирования голоса, потоковой генерации и случайного варьирования просодии. Произношение имён, необычных написаний, чисел и сокращений зависит от phonemizer; голос может звучать синтетически, а опубликованная оценка проведена на небольших наборах.

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

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

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

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

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

Открыть на Hugging Face

tiny-voca

tiny-voca is a small English text-to-speech model with two voices, F2 (female) and M2 (male). The complete model, including the waveform generator, has 4.5M parameters and was trained from scratch on about 18 hours of synthetic speech. It runs about 70x faster than real time on four CPU threads.

Parameters4,537,291
VoicesF2, M2 (American English)
Output24 kHz mono
InputText, converted to phonemes with dizione
Pretrained weights in the modelNone
LicenseApache-2.0

Files

FileSizeContents
tiny-voca.pt18.2 MBPyTorch weights, float32
onnx/model.onnx21.4 MBONNX export, float32, opset 17
config.jsonModel settings, phoneme vocabulary, voices
phonemizer/5.4 MBData files for dizione
samples/The audio on this page

SHA256:

  • tiny-voca.pt: ebb22871524c5732520fb1652e6aefcec708a7452e83bdd00adcf6181db5ef70
  • onnx/model.onnx: fe6d918791a15b82e37465981d7f27a070e46b46635e5a3482fc8dff87a1ae46

Samples

TextF2M2
Hello! This is tiny voca, a small text to speech model that runs on a phone or in a browser.
The meeting moved to 3:30 pm on March 14th, so we have about 45 minutes left.
Did you really think I would forget your birthday?
She had never seen the sea before, and for a long while she stood at the edge of the water without saying a word.

Usage

PyTorch

pip install git+https://github.com/n4ze3m/dizione git+https://github.com/n4ze3m/tiny-voca
hf download n4ze3m/tiny-voca --local-dir tiny-voca
export DIZIONE_DATA=tiny-voca/phonemizer

python -m tiny_voca.infer \
  --checkpoint tiny-voca/tiny-voca.pt \
  --voice F2 \
  --text "Hello! This is tiny voca." \
  --output hello.wav
OptionDefaultMeaning
--text-fileRead the text from a file instead of --text.
--voiceF2F2 or M2
--speed1.0Speaking rate
--pitch-shift0Added to log F0. 0.058 is about one semitone.
--pitch-range1.0Scales pitch movement around the utterance mean.

Text of any length works. The command reads it one sentence at a time and joins the audio. A text that ends without a mark gets a full stop. A sentence with nothing to read, such as one in another script, is skipped. The saved audio never peaks above 0.99.

ONNX

The graph takes phoneme ids and stress values and returns the waveform. Text is converted to ids outside the graph with dizione; the ids are the positions in vocab in config.json.

import numpy as np
import onnxruntime as ort
import soundfile as sf
import dizione   # needs DIZIONE_DATA=tiny-voca/phonemizer

phones = dizione.phonemize("Hello! This is tiny voca.")
one = lambda value: np.array([value], dtype=np.float32)

session = ort.InferenceSession("tiny-voca/onnx/model.onnx")
audio, durations = session.run(None, {
    "tokens": np.array([phones.ids], dtype=np.int64),
    "stress": np.array([phones.stress], dtype=np.int64),
    "voice": np.array([0], dtype=np.int64),      # 0 = F2, 1 = M2
    "speed": one(1.0),
    "pitch_shift": one(0.0),
    "pitch_range": one(1.0),
})
audio = audio[0]
audio = audio * min(1.0, 0.99 / np.abs(audio).max())    # the model can peak above 1.0
sf.write("hello.wav", audio, 24000)
InputTypeShapeMeaning
tokensint64[1, N]Phoneme ids, including the start and end tokens
stressint64[1, N]0 none, 1 primary, 2 secondary
voiceint64[1]0 = F2, 1 = M2
speedfloat32[1]1.0 as predicted; larger is faster
pitch_shiftfloat32[1]Added to log F0
pitch_rangefloat32[1]Scales pitch movement
OutputTypeShapeMeaning
audiofloat32[1, samples]Waveform at 24 kHz
durationsint64[1, N]Length of each token in frames of 256 samples

The model reads one utterance per call, up to 512 tokens and 32 seconds. Split longer text into sentences; tiny_voca.infer.speak_text does this in Python. End each utterance with a mark such as a full stop: without one the last word breaks off. The audio can peak a little above 1.0 (about one sentence in twenty), so scale it down before you save 16-bit samples, as above. The same file runs in onnxruntime-web (WebAssembly). Its audio matches the PyTorch model to within 0.6% of the peak amplitude, apart from the random noise signal, which each runtime draws itself.

Model

Text is converted to phonemes with a stress value for each. A transformer encoder (4 blocks) reads the phonemes, a duration predictor gives each one a length in frames, and two frame-level transformers (2 and 5 blocks) predict pitch, voicing and energy and then the parameters of the waveform generator. All blocks use 192 channels, 4 heads and rotary position embeddings.

The waveform is produced by a source-filter synthesizer instead of a neural vocoder. A band-limited pulse train at the predicted pitch and a noise signal are each shaped by a time-varying filter, whose cepstrum the network predicts once per frame (256 samples, 10.7 ms). This part has 25,862 parameters.

ComponentParameters
Embeddings (phoneme, stress, voice)16,704
Text encoder1,588,864
Duration and pause predictor123,906
Frame transformer A, prosody head795,971
Frame transformer B1,985,984
Source-filter waveform head25,862
Total4,537,291

Training

Datan4ze3m/tiny-voca: 16,018 clips, 17.6 hours, two voices
Steps104,737
HardwareOne RTX 4090, 7.7 hours
LossesMulti-resolution spectral losses; adversarial loss with multi-period and multi-resolution discriminators after step 8,000

The training audio is synthetic. Both voices were created from text descriptions with Qwen3-TTS VoiceDesign, and the recordings were generated with Qwen3-TTS 1.7B Base. No recording of a real speaker is involved. Phoneme durations come from forced alignment with facebook/wav2vec2-lv-60-espeak-cv-ft, which is used only to label the training data. No pretrained weights are part of the model.

Evaluation

Word error rate of synthesized speech, transcribed with Whisper small.en. The recordings of the same sentences are scored the same way for reference.

SentencesClipsWER, tiny-vocaWER, recordings
Validation80.6%0.6%
Test80.9%0.9%
New sentences, not in the dataset160.0%

These sets are small and the scores are a sanity check, not a benchmark. No formal listening test has been run.

Open TTS Leaderboard

Official leaderboard snapshot: 20 November 2026 (v1.7.0), English, without voice cloning, equal average across Seed-TTS, CV3-Eval, MiniMax and ZTTS2-Mini-clean; 45 ranked models (full-coverage English). Each tiny-voca voice is a separate row; F2 currently ranks 5th by average WER and M2 ranks 7th. The hosted leaderboard notes tiny-voca is CPU-only on both rows.

RankModelParamsAverage WER % ↓UTMOS22 ↑
1Kokoro-82M82 M0.664.51
2Paradee-8M-v1.38 M0.694.38
3Ming-3.0-tts-0.5B1.48 B0.704.28
4Audio8-TTS-Realistic-0.6b0.94 B0.744.45
5tiny-voca (F2)4.5 M0.744.43
6Inflect Micro v312 M0.754.36
7tiny-voca (M2)4.5 M0.764.35
8phonon-40m-en51 M0.764.45
9pocket-tts100 M0.774.37

In the 16 November 2026 snapshot (v1.6.3, 50 ranked models, before ZTTS2-Mini-clean was added) M2 ranked 8th at 0.733 and F2 ranked 13th at 0.773.

📊 Open TTS Leaderboard (20 Nov 2026 snapshot)

🎧 Compare model outputs with Qwen3 TTS (model used for training) and Kokoro

Limitations

  • English only, two fixed voices, no voice cloning.
  • The voice is clear but can sound slightly synthetic.
  • The F2 voice sounds younger than intended. It was designed as an adult voice (the prompt asked for an adult American woman in her mid twenties; see voices.json in the dataset). A more mature voice is planned.
  • The same text is always read the same way. There is no sampling of prosody.
  • Speech is slightly faster than the training recordings at the default speed.
  • Foreign names and unusual spellings are often mispronounced. Numbers, abbreviations and homographs depend on the phonemizer.
  • No streaming.
  • The training data is itself synthetic, so the model cannot be more natural than the model that generated it.

Cost

The whole project cost $9.56 of GPU time on one rented RTX 4090. That is the dataset, the failed tries and the final training run.

Cost breakdown

Support

It cost less than a pizza to make. If you like it, you can buy me one: https://ko-fi.com/n4ze3m

License

The weights and code are released under Apache-2.0. The files in phonemizer/ are derived from the CMU Pronouncing Dictionary and other sources; their licenses are in phonemizer/LICENSE.cmudict and phonemizer/LICENSE.homograph-data.

Citation

@software{nazeem2026tinyvoca,
  author = {Nazeem, Muhammed},
  title  = {tiny-voca: a 4.5M-parameter two-voice English text-to-speech model},
  year   = {2026},
  url    = {https://huggingface.co/n4ze3m/tiny-voca}
}

Author: Muhammed Nazeem (ORCID 0009-0002-9991-0217).

Acknowledgements

The design builds on FastSpeech 2 (explicit duration and prosody prediction), DDSP and the neural homomorphic vocoder (source-filter synthesis with predicted filters), and HiFi-GAN and UnivNet (discriminators). No code or weights from these projects are used.

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

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

GPU в ailist

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

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

GGUF-веса поддерживаются только для текстовых LLM (llama.cpp).

Ревизия весов
5fe0664

0 моделей