Repository navigation
Add an optional transcribe.cpp recognizer for local GGUF models - #923
Open
Nathan-Roll1 wants to merge 1 commit into
Open
Nathan-Roll1 wants to merge 1 commit into
Nathan-Roll1 wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 optionaltranscribe-cppextra supplies the engine. The recognizer does not download a model.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.