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

This wheel is pure Python and does not bundle the native library — install libcrispasr separately, the same way crispasr's Python bindings work:

macOS

brew install crispasr        # once published; until then build from source

Linux / Windows / from source

git clone https://github.com/CrispStrobe/CrispASR
cd CrispASR
cmake -B build && cmake --build build -j
sudo cmake --install build   # installs libcrispasr.{so,dylib,dll}

If libcrispasr is in a non-standard location, set CRISPASR_LIB_PATH:

export CRISPASR_LIB_PATH=/path/to/libcrispasr.so

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.23.tar.gz (39.4 kB view details)

Uploaded Source

Built Distribution

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

crispasr-0.8.23-py3-none-any.whl (38.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: crispasr-0.8.23.tar.gz
  • Upload date:
  • Size: 39.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.8

File hashes

Hashes for crispasr-0.8.23.tar.gz
Algorithm Hash digest
SHA256 bcfc18e13a74142eef7ad381493c97d623a5d6dcd6f0d1d13c6b6abbc4354d2a
MD5 cb9393f639a5cad3ec384b552b0d8ee3
BLAKE2b-256 60ceddb82e514739d3323bfeb7fd780196b489123769fb7af57e95c558ca6066

See more details on using hashes here.

File details

Details for the file crispasr-0.8.23-py3-none-any.whl.

File metadata

  • Download URL: crispasr-0.8.23-py3-none-any.whl
  • Upload date:
  • Size: 38.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.8

File hashes

Hashes for crispasr-0.8.23-py3-none-any.whl
Algorithm Hash digest
SHA256 2416e53cee2e6c8fac4e676eede92e328441c0043217e3200ca2120b0fadcda8
MD5 71e4e26bc5ce44dfcb634dfc1492d324
BLAKE2b-256 f12463c5b830d7259b8bc21fb05d78bd0c12a90fdf9999362d93ff03dee75330

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

0.8.25

5 files

0.8.24

5 files

This release

0.8.23 This release

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