Skip to main content

ragleap-voice

Open-source (MIT), local-first speech tooling, with Indian languages as a priority.

Status: pre-alpha. Versions 0.1.0 to 0.4.1 add transcribe() and synthesize() with a Whisper large-v3 engine and an Indic Parler-TTS engine (see "What 0.1.0 adds" below). Since 0.4.0 whisper-large-v3 is verified (not a default), and the Whisper engine declares 31 languages, none of them Indian; every other model is unverified and none is a default. The Whisper engine's word and character error was measured on read speech in 81 languages (60 clips each, one run per language on a Colab GPU); the Parler engine has been run on only a few clips on one maintainer's machine. No noisy or telephone audio has been measured. This is a release for testing, not a finished product.

What works today

A command line and a small standard-library-only Python core (no runtime dependencies, Python 3.10 or newer) for finding, locking, downloading and verifying speech models safely:

pip install ragleap-voice
uv pip install ragleap-voice
uvx ragleap-voice models list
ragleap-voice models list
ragleap-voice models show indic-parler-tts
ragleap-voice models check
  • models list, show and check read a manifest of candidate models with their licences, pinned revisions and status. One entry, whisper-large-v3, is verified (the evidence is in docs/verification-record-whisper-large-v3.md); every other entry is unverified: a research lead, not an endorsement. None is a default.
  • Lock files record the size and SHA-256 of every file at a pinned revision. models verify checks a cache folder against them (offline, read-only). models check rejects verified or default entries that lack a matching lock, use licences outside the allowlist, or list pickle-capable files (formats that can run code when loaded).
  • models pull NAME downloads from Hugging Face only: HTTPS, a host allowlist, and the access token (HF_TOKEN) is sent only to huggingface.co. Every file is checked against its lock before anything enters the cache, and --offline makes no network calls. Entries can declare dependencies, which are pulled first.
  • models lock NAME is a maintainer tool that builds a lock by downloading and hashing every file.
  • Six entries are locked: whisper-large-v3 (verified: pulling it needs no flag), indic-parler-tts (a gated Hugging Face model: accept its conditions on the website and set HF_TOKEN) with its tokenizer dependency flan-t5-large-tokenizer, and the candidates naijavox-2, sunflowerasr-51-african-languages and zonos3-mini. The candidates are pinned but have not had a human review, so pulling them needs --allow-unverified. A lock does not cover a native server binary (for zonos3-mini the operator builds it).

Nothing in the package uses the network unless you run models pull or models lock.

What 0.1.0 to 0.3.6 add

0.3.6 adds an optional voice-activity detector, SileroGate (extra vad; not exported, off by default; the caller supplies the pinned model file), and publishes one-run benchmark results with their limits. Defaults are unchanged.

0.3.5 fixes thread safety: the offline variables used while opening the Whisper model are reference counted, transcribe() and synthesize() hold a per-engine lock around load, run and close, and Registry.register takes a lock. Defaults are unchanged.

0.3.4 adds an opt-in Japanese kanji number-word mode (numbers="ja") to the WER/CER helper and fixes the 十/百/千 ordering check in the Mandarin mode, so malformed tokens such as 二十三百 are preserved. Defaults are unchanged.

0.3.3 adds an opt-in Mandarin Chinese number-word mode (numbers="zh") to the WER/CER helper and hardens the model-folder fingerprint (device id) and Transcriber (a closed instance is rejected). Defaults are unchanged.

0.3.2 speeds up repeated Whisper calls: the model folder is fully hashed once per process (set RAGLEAP_VOICE_VERIFY=always to hash every call), the model is opened once per call instead of twice, and an opt-in Transcriber keeps the model open between calls. On one Colab T4 (one clip, not a benchmark) a call went from about 14-15 s to about 3.4 s with transcribe() and about 0.75 s with a Transcriber; this is batch decoding, not streaming latency.

0.3.1 exports transcribe_stream (a batch adapter: it buffers the audio and runs transcribe() once, with no partial transcripts) and synthesize_stream (chunked playback of a finished waveform) from the package, and adds A-law encode/decode helpers (ragleap_voice.audio, not exported) checked against G.711 Tables 1a/1b under a stated tie convention, with no conformance claim. Not measured: real phone audio, Python 3.13. Details: docs/design/streaming.md and docs/design/audio-helpers.md.

0.3.0 adds stream building blocks, not exported yet: stateful 2:1 resamplers (Down2Stream, Up2Stream), a frame-by-frame energy gate (StreamGate), transcribe_stream (a batch adapter: it buffers the audio and runs transcribe() once, with no partial transcripts), synthesize_stream (chunked playback of a finished waveform, not incremental generation), and a Hindi number-normalizer update (hi.2, from an outside contributor, not reviewed by a fluent speaker). Design and limits: docs/design/streaming.md. Nothing here has been measured on real phone audio.

0.2.0 adds opt-in number-word normalizers for the benchmark (Turkish with ordinals, Spanish, German, Italian, Indonesian, Brazilian Portuguese, Hindi, Malay; contributed by an outside volunteer, not reviewed by fluent speakers), standard-library audio helpers (not exported), an optional energy gate for transcribe() (off by default; measured to drop quiet real speech at its default floor), and a note on filler-phrase or empty output. Details and limits are in the changelog and benchmarks/voice/README.md.

0.1.0 added:

Pre-alpha: names and signatures can still change. The core has no runtime dependencies. Engines are separate: the Whisper engine needs its extra (pip install "ragleap-voice[whisper]"; without it the call raises an error that names this command), and the Parler engine has no extra, because you set up its Python environment yourself (see issue 990 below).

  • transcribe() and synthesize(), which check the licence, the lock and the verification status of every model before an engine sees it, and hand engines verified folders only. whisper-large-v3 is verified (not a default): after models pull whisper-large-v3, transcribe() with the Whisper engine needs no flag. Every other model is unverified, so calls that use one need allow_unverified=True.
  • A Whisper large-v3 engine (optional extra whisper, faster-whisper) that declares 31 languages: those whose measured error in coverage/stt.csv has a 95% interval ending at or below 15% on 60 read-speech clips (word error; character error for Mandarin, Cantonese and Thai). No Indian language qualifies (Hindi measured 26.8%). The rule is in docs/design/coverage-matrix.md section 7 and can be revised. Run with the real model on a CPU (int8, fresh environments on Python 3.12 and 3.10, one run each) and on Colab T4s with NVIDIA's cublas and cudnn pip packages preloaded by hand (the engine does not preload them). Other GPUs and CUDA versions have not been tried. Input must be mono 16-bit 16 kHz WAV.
  • An opt-in voice-activity gate for transcribe() and Transcriber.transcribe(): gate="silero" with gate_options={"model_path": "..."} (the pinned Silero model file, which you supply; extra vad) skips the engine when no speech is detected. Whisper writes a fluent phrase such as "Thank you." for silence, a tone or noise; in one laptop run (CPU, synthetic inputs) the gate removed all three and let a speech clip through unchanged, and on 796 recorded noise files it accepted 4.4% to 5.4% where the older gate="energy" accepted about 99%. Nothing was measured on speech mixed with noise, short or quiet speech, or phone-line noise. Off by default; not wired into transcribe_stream.
  • Not exported: a ZONOS3-Mini engine (ragleap_voice.zonos3_engine) and a Synthesizer that keeps its server running (ragleap_voice.synthesizer), for Hindi and Telugu stock voices on the CPU. They need the native zonos3-server (built by you, on the PATH), they are not registered by default and the model is unverified. On one laptop CPU (one run) a 2 s sentence took about 6 s after a start-up of about 11 s; nobody has listened to the output.
  • An Indic Parler-TTS engine, run as an isolated worker from a Python environment you set up yourself (RAGLEAP_VOICE_PARLER_PYTHON). Run once with the real model on a T4 for Hindi and English. The model is gated on Hugging Face. The parler-tts library is installed from GitHub and is not covered by the lock files, and the versions of its dependencies are not pinned by us.
  • No emotion names are declared. Style goes through options={"description": "..."}, and what that changes has not been measured. Voice cloning is not built.
  • Isolation separates conflicting dependencies and keeps tokens out of the worker. It is not a security sandbox.

Help with testing is wanted: https://github.com/ragleap/ragleap-core/issues/960 (Whisper), https://github.com/ragleap/ragleap-core/issues/990 (Parler) and the roadmap at https://github.com/ragleap/ragleap-core/issues/970.

Install check (one maintainer run, not a guarantee): ragleap-voice[whisper] installed from PyPI on a fresh Colab T4 runtime and transcribed one clip each in seven more declared languages (see issue 960). One clip per language is not an accuracy measurement.

Measurements

Reproducible benchmarks with their limits are published at https://github.com/ragleap/ragleap-core/tree/main/benchmarks/voice. They use small samples of read speech on one GPU. The WER/CER helper can optionally normalize English (numbers=True), Turkish (numbers="tr") cardinal and ordinal words, Spanish (numbers="es") cardinal words, German (numbers="de") cardinal words, Italian (numbers="it") cardinal words, Indonesian (numbers="id"), Brazilian Portuguese (numbers="pt-BR"), Hindi (numbers="hi"), Malay (numbers="ms"), Mandarin Chinese (numbers="zh"), or Japanese kanji (numbers="ja") cardinal words; all options are off by default and have not been applied to the published tables. Italian supports standard written forms below trilione (normalizer version 1+numbers-it.2), keeps adjacent standalone numbers separate, retains the decimal comma, and removes periods used as thousands separators when each group has three digits. Indonesian supports standard cardinals from zero through 999 triliun, treats period groups as thousands separators, and retains decimal commas. The ambiguous scale name biliun and larger scales are excluded. Its parser preserves malformed scale phrases and keeps adjacent standalone cardinals separate; because it is context-free, common words such as satu in ordinary prose may still be interpreted as a number. Other language strings raise ValueError rather than falling back to English. In those tests an open Indian-language recogniser (IndicConformer) had clearly lower word error than Whisper large-v3 on Hindi, Tamil, Telugu, Malayalam and Kannada. Naturalness, emotion quality and comparisons with commercial services have not been measured, and this project makes no claim about them.

Brazilian Portuguese is available as numbers="pt-BR" (normalizer version 1+numbers-pt-BR.1), opt-in and not applied to published tables. It supports standard standalone cardinals through 999,999,999,999,999,999 with Brazilian short-scale names through quadrilhão (also quatrilhão); malformed scale sequences and adjacent standalone values are preserved, decimal commas are retained, and only complete period-grouped numbers are normalized. Ordinals, fractions, spoken decimals, dates and currency-specific forms are out of scope. Since the normalizer has no grammatical context, cardinal words in ordinary prose can still be converted.

Hindi is available as numbers="hi" (normalizer version 1+numbers-hi.2), opt-in and not applied to published tables. It supports Devanagari standalone cardinals through 99 खरब (9,999,999,999,999), with descending सौ, हज़ार/हजार, लाख, करोड़, अरब and खरब scales. CLDR, BIS, the Government of India Hindi coursebook, and the Hindi grammar reference differ on some spellings; the parser accepts only directly attested variants. It retains Hindi decimal points and removes commas only for complete Indian-style grouping. Ordinals, fractions, negatives, spoken decimals, dates, currencies, transliterations, collective forms and larger scales are excluded. Ordinal-containing phrases are kept intact, including inflected ordinal forms. The source-attested spelling पांच is accepted alongside पाँच; NFKC handles decomposed nukta in करोड़. It retains a terminal sentence comma or period only after validating the complete grouped number. The context-free parser may normalize cardinals used as ordinary prose.

Malay is available as numbers="ms" (normalizer version 1+numbers-ms.1), opt-in and not applied to published tables. It supports standard standalone cardinals from kosong/sifar through 999,999,999,999,999,999, including seribu/sejuta and the Malaysian short-scale values bilion = 10⁹, trilion = 10¹², and kuadrilion = 10¹⁵. Because DBP dictionary material records conflicting long- and short-scale uses for bilion/trilion, this mode follows CLDR, the DBP school mathematics glossary, and DBP's short-scale numeric examples. It removes commas only from fully valid three-digit grouping and retains decimal points. Ordinals, dates, fractions, spoken negative forms, spoken decimals, currency, dialect/inflected forms, and scales at or above 10¹⁸ are excluded; malformed scale phrases remain unchanged. This context-free parser may still normalize cardinal homonyms used in ordinary prose.

Mandarin Chinese is available as numbers="zh" (normalizer version 1+numbers-zh.1), opt-in and not applied to published tables. Written Chinese has no word spaces, so a token containing only number characters (零〇一二两三四五六七八九十百千万亿) is read as one number run, while a token that mixes numbers with prose stays unchanged. It supports standalone simplified-character cardinals from 零 through the 万亿 (10¹²) scale with standard 万/亿 compositions, reads all-unit tokens digit by digit (一二三 → 123, 二〇二六 → 2026), and accepts 两 as 2 before 百/千/万/亿. Malformed sequences such as 十十, 万万 or 一百零十 are preserved intact; a multi-character token starting with 零 (零一, 零零, 零一百) is kept whole. Colloquial truncations read formally (二百五 → 205, not the slang 250). Ordinals (第一), dates, fractions, currency, Traditional characters, and 兆 are excluded; commas between digits are removed as thousands separators as in the English mode.

Japanese (kanji) is available as numbers="ja" (normalizer version 1+numbers-ja.1), opt-in and not applied to published tables. Written Japanese has no word spaces, so a token containing only number characters (零〇一二三四五六七八九十百千万億兆) is read as one number run, while a token that mixes numbers with prose stays unchanged. It supports standard kanji cardinals from 零 through the 兆 (10¹²) scale with 万/億 compositions, reads digit runs made of unit characters and 〇 digit by digit (一二三 → 123, 二〇二六 → 2026), and treats 零 strictly as a positional zero marker that never acts as a digit, with 〇 as the digit zero. Malformed sequences such as 十十, 万万 or 一億万 and double scales such as 万億 are preserved intact; a multi-character token starting with 零 (零一, 零零, 零一百) is kept whole. Kana readings (にじゅうさん), 大字 forms (壱, 弐), ordinals, dates, fractions and currency are excluded; commas between digits are removed as thousands separators as in the English mode. Written and checked by an outside contributor; a fluent Japanese speaker has not reviewed it.

Planned, not available

Streaming, a voice-activity gate, resampling, voice profiles with a consent record, emotion and style control, a registry of community-trained models, verified models, and more languages and engines.

Licence

MIT. Models are separate downloads with their own licences, listed in the manifest and in https://github.com/ragleap/ragleap-core/blob/main/packages/ragleap-voice/THIRD_PARTY_NOTICES.md

Source and issues: https://github.com/ragleap/ragleap-core/tree/main/packages/ragleap-voice

Metadata

Release files for ragleap-voice 0.4.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 ragleap-voice 0.4.1
File Size Uploaded Provenance Actions
ragleap_voice-0.4.1.tar.gz 226.0 kB With provenance Details for ragleap_voice-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ragleap-voice 0.4.1
File Interpreter ABI Platform Actions
ragleap_voice-0.4.1-py3-none-any.whl Python 3 none any Details for ragleap_voice-0.4.1-py3-none-any.whl

Total release size: 362.8 kB

Release files / ragleap_voice-0.4.1.tar.gz

Download URL ragleap_voice-0.4.1.tar.gz
Size 226.0 kB
Tags Source
SHA-256 checksum
How to use checksums
34469d54c2115b2c6e80136c4d77b21991e7beb76f509d57ce268dee525358ee
BLAKE2b-256 checksum
How to use checksums
212d8ff8e12f641296344a152c9a41cb73faff5c7fb1c5bfbca9e91100aa8e3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / ragleap_voice-0.4.1-py3-none-any.whl

Download URL ragleap_voice-0.4.1-py3-none-any.whl
Size 136.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ffffa1edac69fcd0bdd4e4d3aad2c1210847009c663a0310566e16e864ee00d0
BLAKE2b-256 checksum
How to use checksums
262e2885661fe585d2322f22565340f08b19a38c623f6971a3e360a7af0441f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for ragleap-voice 0.4.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ragleap_voice-0.4.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

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