Skip to main content

crispasr

Python bindings for CrispASR — lightweight on-device speech recognition via ggml.

Supports the ASR backends compiled into the linked CrispASR library, including Whisper, Qwen3-ASR, FastConformer, Canary, Parakeet, Cohere, Granite-Speech, Voxtral, wav2vec2, GLM-ASR, Kyutai-STT, Moonshine, FireRed, OmniASR, and VibeVoice-ASR.

Install

pip install crispasr

Platform wheels bundle the native libcrispasr — nothing else to install — for Linux (x86_64, arm64), macOS (Apple Silicon, Metal-accelerated), and Windows (x86_64).

GPU wheels

CUDA and Vulkan builds are published to a separate index (llama-cpp-python style — pass --extra-index-url):

# NVIDIA CUDA (Linux + Windows)
pip install crispasr --extra-index-url https://crispstrobe.github.io/CrispASR/whl/cuda/
# Vulkan (Windows)
pip install crispasr --extra-index-url https://crispstrobe.github.io/CrispASR/whl/vulkan/

Other platforms / bring-your-own library

Where no prebuilt wheel matches, pip installs the pure-Python sdist, which loads a libcrispasr you supply. Build/install it from source and, if it lands in a non-standard location, point CRISPASR_LIB_PATH at the file:

git clone https://github.com/CrispStrobe/CrispASR
cd CrispASR && cmake -B build && cmake --build build -j && sudo cmake --install build
export CRISPASR_LIB_PATH=/usr/local/lib/libcrispasr.so   # only if non-standard

Quick start

from crispasr import CrispASR

model = CrispASR("ggml-base.en.bin")
for seg in model.transcribe("audio.wav"):
    print(f"[{seg.start:.1f}s - {seg.end:.1f}s] {seg.text}")
model.close()

Or use the unified Session API for non-Whisper backends (Qwen3-ASR, FastConformer, Parakeet, …):

from crispasr import Session

s = Session("qwen3-asr-0.6b-q4_k.gguf")
for seg in s.transcribe_pcm(pcm_f32, sample_rate=16000):
    print(seg.text)

API

  • CrispASR — Whisper-compatible high-level API
  • Session — unified API across all backends compiled into libcrispasr
  • align_words(...) — word-level CTC alignment
  • diarize_segments(...) — speaker diarization (energy / xcorr / vad-turns / pyannote)
  • SpeakerEmbedder(spec) — pluggable embedder ("auto"/"titanet", "indextts"/"ecapa", or a .gguf path)
  • PyannoteCache(pcm, model) — pre-computed pyannote-seg posteriors for cross-slice consistency
  • agglomerative_cluster(embeddings, ...) — single-linkage cosine clustering for globally stable speaker IDs
  • TitaNet / SpeakerDB — standalone speaker verification + closed-roster profile matching (consent-gated; requires expected_names + consent=True, see docs/diarization-speakers.md)
  • detect_language_pcm(...) — language ID
  • registry_lookup(...) — auto-download known models from the model hub
  • registry_default_bundle(...) — enumerate the exact primary, companion, and extra files used by -m auto, including licence-acceptance policy

See the main repo for full documentation, model registry, and CLI.

License

MIT — see LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crispasr-0.8.25.tar.gz (41.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

crispasr-0.8.25-py3-none-win_amd64.whl (12.3 MB view details)

Uploaded Python 3Windows x86-64

crispasr-0.8.25-py3-none-manylinux_2_28_x86_64.whl (46.3 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

crispasr-0.8.25-py3-none-manylinux_2_28_aarch64.whl (39.4 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

crispasr-0.8.25-py3-none-macosx_11_0_arm64.whl (26.8 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

File details

Details for the file crispasr-0.8.25.tar.gz.

File metadata

  • Download URL: crispasr-0.8.25.tar.gz
  • Upload date:
  • Size: 41.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for crispasr-0.8.25.tar.gz
Algorithm Hash digest
SHA256 cf8698899fa36b83ef61417db6515fb0b50c2b00d6c250d045cab533c35adcea
MD5 1a48a06143c511f84c83836b97044bb4
BLAKE2b-256 fa49bdc2d3d1df2590061b43b4ba7321651ecb76255cb1e899aff8342e8ac5e0

See more details on using hashes here.

File details

Details for the file crispasr-0.8.25-py3-none-win_amd64.whl.

File metadata

  • Download URL: crispasr-0.8.25-py3-none-win_amd64.whl
  • Upload date:
  • Size: 12.3 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for crispasr-0.8.25-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 eb8bd10790b14e7877c158ceca9e35c995796dc01d3aa1260c5f40ec9325e596
MD5 3cb7fa368deafda46c562b286cd6a145
BLAKE2b-256 07c6b7773d137e4f754a71f0ac5a6608fd043e6097f1d49b70bc0d7e9407bba1

See more details on using hashes here.

File details

Details for the file crispasr-0.8.25-py3-none-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for crispasr-0.8.25-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ff6d3dda25b0b1511b2d0a959926fd38912de0cbe866e319f977f5c2c9004c86
MD5 a17b8faaf57e278037284225bd5f3246
BLAKE2b-256 506f6ab7d7d35d458fc5cc08621bf6bdd2a55024f381e80369446f965fba8dc0

See more details on using hashes here.

File details

Details for the file crispasr-0.8.25-py3-none-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for crispasr-0.8.25-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2809290ca92336660124fcc00f478f65070f3b4c37283aa7d743d43db4f2a3f9
MD5 e95907fd01f9463263c2d19e683e88f2
BLAKE2b-256 071e31b8b77b473fb0b3ed8563dc356d5d4e1164b024c338aaedb315fb69ba5c

See more details on using hashes here.

File details

Details for the file crispasr-0.8.25-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for crispasr-0.8.25-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9897c746c738cf76a9ecc1d674941ace5c07da4078ca1e8c877f12cadb0cbe5d
MD5 4399dff4b69af183dc9e15b3a146dbd9
BLAKE2b-256 d011adde46fa1f6fc6a4307e51735d736d01b03ebd3ef3c202b45f4dc5d9feaf

See more details on using hashes here.

Release history Release notifications | RSS feed

0.8.32

5 files

0.8.31

5 files

0.8.30

5 files

0.8.29

5 files

0.8.28

5 files

0.8.27

5 files

This release

0.8.25 This release

5 files

0.8.24

5 files

0.8.23

2 files

0.8.22

2 files

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