Repository navigation
Add vocabs.txt, a list of words to spell as listed - #28
Open
nigelgilbert wants to merge 13 commits into
Open
nigelgilbert wants to merge 13 commits into
nigelgilbert wants to merge 13 commits into
Conversation
… and match on casefold
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.
What this does
A new file,
vocabs.txtin the Kiku Flow folder, lists one term per line. The sidecar reads it at load.on_transcribedhooks run. Works with either engine.[stt] engine = "whisper", the terms also go to the model as itsinitial_prompt.sidecar/scripts/word_confidence.pyprints each word Parakeet heard with its confidence.docs/customization.md, and updates todocs/hooks.md,README.mdandsidecar/README.md.The reply's
rawfield stays what speech recognition heard, before the vocabulary.What this does not do
It does not yet fix a word Parakeet hears as a different word, such as "Mac" heard as "map". That is step 3 of
docs/vocabulary-plan.md, and it waits on step 1's measurements: recordings run throughword_confidence.py, to see whether Parakeet's confidence separates a misheard word from a real one.Open questions
whisper-tinyturned one and three seconds of silence into invented text, which would be pasted. The defaultwhisper-large-v3-turbois untested. The docs carry a caveat; there is no code guard.vocabs.txt. This is reasoned from AppKit behaviour and not run. That paste was already lost in this state before the branch.word_confidence.pythrowaway. It is committed so step 1 can be run; drop it if it should not live in the repo.Review
One factory review: 19 candidates, 13 kept, 10 folded in. The full list is in
docs/factory-report-feature-vocab-1.md.Tests
uv run pytest -qinsidecar/: 142 passed (117 on main).uv run pyright,uv run ruff check,uv run ruff format --check: clean.app/test.sh: 19 passed (18 on main).Not tested: the menu item in the running app, and the Whisper hint on the default model.