Skip to main content

Gapiring

Uzbek text-to-speech that runs on an ordinary CPU, with no GPU and no server. Two voices (f1 female, m1 male), a role and a manner of speech by name, including an emotional mode, and audio that streams as it is made.

pip install gapiring
gapiring say "Assalomu alaykum! Sizga qanday yordam bera olaman?" --voice f1 --role assistant --manner warm --out hello.wav
from gapiring import Gapiring

tts = Gapiring("edge", dictionary=True, normalize="literary")
tts.save("order.wav", "Buyurtmangiz 25-noyabr soat 14:30 da yetkaziladi, to'lov Payme orqali.", voice="m1", role="operator", manner="calm")

for chunk in tts.stream("Oyimning tug'ilgan kuniga sovg'a buyurtma qilgandim.", voice="f1", role="emotional", manner="upset"):
    play(chunk)          # float32, 24 kHz mono, the first chunk after about 20 ms on a desktop CPU
edge large
Transformer layers 6 24
Download 117 MB (int8) 346 MB (int8) or 1.3 GB (full precision)
Speed, 2 CPU threads about 10x real time about 4x real time (int8)
For CPU, phone class devices server, desktop

The model files are downloaded from islomov/gapi-uz-gapiring-v1 on first use and cached. While that repository is private, set HF_TOKEN to a token with access to it.

Roles and manners

role manner
operator neutral warm cheerful empathetic calm dictation persuasive brisk
assistant neutral warm cheerful empathetic calm dictation soothing
emotional angry upset irritated worried tired sceptical confused hurried joking grateful curious friendly calm elderly

gapiring manners prints the same list. Sounds go inside the text: [laugh], [sigh], [pause], [breath]. Give the model one sentence or a short paragraph per call.

Text

normalize="literary" reads numbers, dates, times, money, percentages, units and phone numbers out as words and turns Cyrillic into Uzbek Latin; "conversational" also uses the Tashkent spoken forms. dictionary=True reads English words, brands and acronyms the Uzbek way (Payme -> Peymi, CRM -> si-ar-em, deadline -> dedlayn); it takes about 4 s and 400 MB to load, so leave it out on small devices when the text has no English. tts.said(text) shows the text as the voice gets it.

Dependencies: numpy, onnxruntime, tokenizers, huggingface_hub. Built on Kyutai Pocket TTS (CC-BY-4.0).

Metadata

Release files for gapiring 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gapiring 0.1.0
File Size Uploaded Provenance Actions
gapiring-0.1.0.tar.gz 82.2 kB Without provenance Details for gapiring-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gapiring 0.1.0
File Interpreter ABI Platform Actions
gapiring-0.1.0-py3-none-any.whl Python 3 none any Details for gapiring-0.1.0-py3-none-any.whl

Total release size: 175.5 kB

Release files / gapiring-0.1.0.tar.gz

Download URL gapiring-0.1.0.tar.gz
Size 82.2 kB
Tags Source
SHA-256 checksum
How to use checksums
655edf22b20f759796d053befbb778ee0d4d9f117d67c283882655e7e0d2aad0
BLAKE2b-256 checksum
How to use checksums
4ab901b13fec93f4a258a7025824201316b5e292e6838acb8039e9a78508c810
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.13

Release files / gapiring-0.1.0-py3-none-any.whl

Download URL gapiring-0.1.0-py3-none-any.whl
Size 93.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d99475ec49561a587293d06037beb12e6c06d3536a0e50aa6f69060d4c16045f
BLAKE2b-256 checksum
How to use checksums
71d4f54b005b74493b7fcc1f852b91baea64fa665832e7d6e71b75e65d6fc9f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.13

Security for gapiring 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page