/ Модель

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

Лицензия
CC BY 4.0
Базовая модель
pocket-tts-basque
Библиотека
onnx
Опубликована
18 окт 2026

pocket-tts-basque-onnx

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

ONNX-экспорт компактной модели Pocket TTS для потокового синтеза баскской речи на CPU с поддержкой встроенных голосов и клонирования голоса.

0скачиваний за 30 дней0лайковвеса обновлены18 окт 2026

Бенчмарки

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

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

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

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

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

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

itzune/pocket-tts-basque-onnx — экспорт в ONNX баскской модели Pocket TTS, созданной на основе модели itzune/pocket-tts-basque. Она предназначена для потокового синтеза речи на процессоре через ONNX Runtime без PyTorch. Архитектура включает шестислойную трансформерную основу, голову flow matching и энкодер Mimi для переноса голоса; доступны графы fp32 и динамически квантованные int8. Модель поддерживает пять встроенных голосов и клонирование голоса по короткому аудиофрагменту.

Синтез начинается до завершения генерации всей фразы: первый аудиофрагмент появляется примерно через 0,1 секунды, а скорость на указанном в карточке восьмиядерном процессоре составляет несколько скоростей реального времени. Модель рассчитана на баскский язык; слова на других языках в смешанной речи произносятся с баскской фонетикой. По данным карточки, примерно 1–2 % предложений могут продолжить референсный аудиофрагмент вместо заданного текста. Обучение проводилось на синтетической речи, а качество int8 проверялось на ограниченном наборе примеров. Лицензия — CC BY 4.0.

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

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

Ограничения

Модель предназначена для баскского языка; слова на других языках могут произноситься с баскской фонетикой. Около 1–2 % предложений могут продолжать референсный аудиофрагмент вместо входного текста, а качество int8 проверено только на ограниченном наборе примеров.

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

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

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

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

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

Открыть на Hugging Face

Pocket TTS Basque — ONNX (euskarazko ahots-sintesia, PyTorch gabe)

ONNX export of itzune/pocket-tts-basque, the 6-layer Basque (euskara) Pocket TTS model, for streaming text-to-speech on a CPU with onnxruntime only — no PyTorch. Same weights, same five bundled voices, same zero-shot voice cloning; fp32 and int8 graphs.

The bundle follows the format of KevinAHM/pocket-tts-onnx (the community ONNX export of Kyutai's Pocket TTS), whose reference runtime is included here as pocket_tts_onnx.py.

Files

filewhat it is
flow_lm_main[_int8].onnxtransformer backbone (text + voice conditioning, one latent frame per step)
flow_lm_flow[_int8].onnxflow-matching head (latent sampling)
mimi_encoder[_int8].onnxMimi encoder, for cloning a voice from a clip
mimi_decoder[_int8].onnxMimi decoder, streaming (latent frames → 24 kHz audio)
text_conditioner[_int8].onnxtoken embeddings
bundle.json, bos_before_voice.npystate layout and metadata for the runtime; learned BOS vector placed before the voice
tokenizer.model, vocab.json, token_scores.jsonBasque SentencePiece tokenizer (4000 tokens), also as JSON
voices/*.safetensorsthe five bundled voices (Maider, Antton, Nahia, Ane, Aitor; see voices/voices.json)
pocket_tts_onnx.pyreference streaming runtime by KevinAHM (Apache-2.0)

The int8 graphs use dynamic MatMul quantization. The reference runtime always runs the Mimi encoder and the text conditioner in fp32 and uses int8 for the other three, so precision="int8" needs about 160 MB of files and precision="fp32" about 440 MB; the mimi_encoder_int8 and text_conditioner_int8 graphs are there for other runtimes.

Usage

pip install onnxruntime numpy sentencepiece safetensors huggingface_hub soundfile
import sys
import numpy as np
import soundfile as sf
from huggingface_hub import snapshot_download

bundle = snapshot_download("itzune/pocket-tts-basque-onnx", allow_patterns=[
    "*int8.onnx", "mimi_encoder.onnx", "text_conditioner.onnx",  # the runtime runs these two in fp32
    "*.json", "*.npy", "*.model", "*.py", "voices/*"])
sys.path.insert(0, bundle)
from pocket_tts_onnx import PocketTTSOnnx

# temperature 0.3 is this model's default (the runtime's own default, 0.7, is for Kyutai's models)
tts = PocketTTSOnnx(models_dir=bundle, precision="int8", temperature=0.3)

voice = f"{bundle}/voices/Maider.safetensors"   # or a 5-10 s .wav of clean Basque speech to clone
audio = np.concatenate(list(tts.stream("Kaixo! Hau euskarazko ahots sintetiko bat da.", voice)))
sf.write("kaixo.wav", audio, tts.sample_rate)  # 24 kHz

tts.stream() yields audio as it is generated (the first chunk after two latent frames), so playback can start long before the sentence is finished; precision="fp32" uses the full-precision graphs.

Notes:

  • Write the text as it should be read: numbers, dates, abbreviations and symbols must be spelled out in words (e.g. hogeita lau rather than 24). The dataset's normaliser (bssd.text_norm) does this for standard Basque.
  • Not compatible with sherpa-onnx as is: this model inserts a learned BOS vector before the voice (bos_before_voice.npy), which sherpa-onnx's Pocket TTS implementation does not apply.
  • Only clone voices you have the right to use.

Speed

scripts/bench_onnx.py (three sentences of 1-7 s, Maider voice, streaming, generation only, after a warm-up) on an 8-core x86 laptop CPU, with the PyTorch model on the same machine for comparison:

runtimethreadsfirst audiospeed (× real time)
ONNX int820.07 s4.4×
ONNX fp3220.09 s3.5×
PyTorch fp3220.07 s6-7×
PyTorch int8 (--quantize)40.03-0.05 s8×

The ONNX runtime is slower than PyTorch but still several times faster than real time, with first audio in about 0.1 s, at a fraction of the install size (onnxruntime and friends: ~150 MB, against several GB for PyTorch).

Export

Exported with the community exporter lomotron/pocket-tts-onnx-export (pinned commit, with a small fix for exporting from a config file) from the released basque.yaml; every graph was verified against the PyTorch model within tolerance before quantization. Reproduce with scripts/export_onnx.sh in https://github.com/itzune/pocket-tts-basque.

Limitations

As for itzune/pocket-tts-basque: Basque only (code-switched words are read with Basque phonetics); a small share of sentences (about 1-2 %) comes out as a continuation of the reference clip instead of the input text; trained on synthetic speech. int8 quantization was checked by ear and with ASR on the benchmark sentences, not with the full evaluation of the PyTorch model.

License and attribution

Model weights: CC-BY-4.0 (as itzune/pocket-tts-basque and the upstream Pocket TTS weights). pocket_tts_onnx.py: Apache-2.0, from KevinAHM/pocket-tts-onnx. Please cite Kyutai's Pocket TTS, the HiTZ-Aholab studio corpus for the Maider and Antton voices, and the BSSD dataset (itzune/bssd, CC-BY-SA-4.0).

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

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

GPU в ailist

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

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

В репозитории нет config.json: не понять архитектуру модели.

Ревизия весов
96344d1

0 моделей