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 sent on request: https://gapi.uz/gapiring. With access to the model repository islomov/gapi-uz-gapiring-v1, set HF_TOKEN to your Hugging Face token and the files are downloaded on first use and cached; with the files on disk, pass Gapiring("edge", path="folder").

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).

Licence

Free for individuals and for companies with annual revenue under $1 million, commercial products included; larger companies need an inexpensive commercial licence. Model files are sent on request: https://gapi.uz/gapiring. Full text: LICENSE.

Metadata

Release files for gapiring 0.1.1

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.1
File Size Uploaded Provenance Actions
gapiring-0.1.1.tar.gz 83.1 kB Without provenance Details for gapiring-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 177.0 kB

Release files / gapiring-0.1.1.tar.gz

Download URL gapiring-0.1.1.tar.gz
Size 83.1 kB
Tags Source
SHA-256 checksum
How to use checksums
afbb1f0908cd7a92c8536ba8dadc7f265d58f618bd737c2ae58debb9588c041f
BLAKE2b-256 checksum
How to use checksums
8db31fb0b6c5f0a36c8e2addf22d077a785c8113ad21380f10268dc046e0e970
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.1-py3-none-any.whl

Download URL gapiring-0.1.1-py3-none-any.whl
Size 93.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d77304e6e93a5b038276daf33466758eaaa617eb2b3b63212e9de2d7fd953de5
BLAKE2b-256 checksum
How to use checksums
514dabe6bae77d88733f6e40dc6e1d60643a1ea23b3d7ac5d308a8724b870507
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.1

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