Skip to content

Add an optional transcribe.cpp recognizer for local GGUF models - #923

Open
Nathan-Roll1 wants to merge 1 commit into
Uberi:masterfrom
Oruk-AI:add-transcribe-cpp-recognizer
Open

Nathan-Roll1 wants to merge 1 commit into
Uberi:masterfrom
Oruk-AI:add-transcribe-cpp-recognizer

Conversation

@Nathan-Roll1

@Nathan-Roll1 Nathan-Roll1 commented Nov 22, 2026 •

Copy link
Copy Markdown

This adds recognize_transcribe_cpp(audio_data, model=...) for offline recognition with a caller-owned GGUF model. It resamples to the model’s native rate and opens a new session per phrase, so callers can keep the weights loaded. The optional transcribe-cpp extra supplies the engine. The recognizer does not download a model.

Example model context (oruk/oruk-fourier-2b): For users trying the README's optional English GGUF example (2.19 GB single-file Q8_0), oruk/oruk-fourier-2b lowers 7-split public English Open ASR Leaderboard mean WER from 5.75% to 4.95% vs. base Qwen/Qwen3-ASR-1.7B-hf (native BF16, reproduced by @ebezzam; AMI-Cleaned 6.73% vs. 8.31%, VoxPopuli-AA-Cleaned 1.46% vs. 2.85%, GigaSpeech-Cleaned 6.50% vs. 7.22%; 3-beam default vs. base greedy).

I work on Oruk Fourier and tested the adapter on Linux CPU with both Fourier 2B Q8 and Canary 180M Flash Q8. Each model returned the same transcript for WAV and FLAC versions of one recording and recognized the project’s “one, two, three” fixture. Exact transcripts.

The base pytest suite passed locally (36 passed, 24 skipped), including three new tests for sample conversion, model reuse and empty results. Mypy and the RST checks passed. The README gives a CPU example and identifies the example weights’ noncommercial license.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant