- Rust 78.5%
- JavaScript 6.6%
- TypeScript 4%
- HTML 4%
- Shell 2%
- Other 4.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
* Android dictation: decode a prompted dictation again without the prompt when it repeats, is empty or only echoes it What: hexspeech.cpp checks every prompted decode up to 30 s (custom vocabulary, or Labs › Learn from my fixes' words, as Whisper's initial prompt). If it ended at its token limit with no end-of-text and its last 32 tokens fail Whisper's own repetition test (entropy under entropy_thold, 2.4), wrote nothing, or wrote only the prompt's two or more terms, the clip is decoded once more without the prompt, in a fresh state, and that text is used. Labs › Diagnostics' Last dictation says when it happened, why and how long it took (timings grow from 8 to 10 longs: the time of the second decode and the reason). The benchmark's native.cpp takes an optional prompt per list line and mirrors the guard (HEX_NO_GUARD=1 is the decode before it); score.py and generate.py add a prompted-clip check. android/README.md and benchmark/README.md describe it; android/README.md also gets the known limit that a sentence said twice in a row comes out once. Why: a one-word prompt in front of a short clip makes Whisper write the sentence until its token limit, and the retry at 0.2 keeps the prompt. Gate emulator, Hex Preview 2424, sarah.wav (1.6 s) x20 back to back: custom vocabulary "stadium" with the lab off, 9 tenfold and 2 empty (today's builds); the lab's learned station -> stadium, 13 tenfold; no prompt, 0. The host decode of the file repeats on 193 of 288 cuts with "stadium", 0 of 468 without. Desktop drops a prompt echo (gguf_session.rs drop_prompt_echo); Android has found speech by then, so it decodes again. No length rule: on 150 clips of 1.2-7 s with a name, the prompt raised names right from 0-10% to 30-67% at every length and repeated only up to 2.4 s, all of which the guard catches. Verified: on the Studio, ./gradlew :app:testDebugUnitTest :app:assembleDebug (292 tests, 0 failures, including the new Last dictation cases in StripTextTest); the debug APK's libhexspeech.so carries the guard. Benchmark (host build of the app's whisper.cpp, armv8-a): the prompted check fails before the guard (3 of 3 tenfold, score.py exit 1) and passes with it (3 of 3 "Sarah is at the station.", exit 0); the 40 corpus and 30 long clips' texts are byte-identical to dev's native.cpp; the long-clip check is unchanged (59 errors of 1,263 words at both windows, no clip worse, every utterance kept past 30 s). Not yet run on a device or emulator. Removed or replaced: nothing removed. A prompted decode that repeated, came back empty or echoed its prompt used to be inserted as it was; it is now replaced by the unprompted decode. * Android dictation: also decode again a prompted dictation that is one phrase twice in too little audio What: a fourth trigger for #2783's guard, for prompted decodes up to 30 s like the others: the whole text is one phrase of three or more words written two or more times and nothing else, with more words than 4 a second of the decoded audio. Then the clip is decoded once more without the prompt and that text is used. Labs › Diagnostics names it "a phrase written twice". The benchmark's native.cpp mirrors it; score.py adds hint-sarah2 (generate.py now takes a clip's silence before and after), a cut where "Sarah, stadium" writes the sentence exactly twice and stops, and fails a prompted clip above 1.5 times its words (it was twice, which an exact two-copy text passed). Why: on the gate emulator one of 20 pair-learned dictations (a5) wrote "Sarah is at the stadium Sarah is at the stadium." and ended before the token limit, so no trigger fired. The rate condition keeps real repeats out: 40 synthetic clips of a sentence said twice (3.4-4.4 s) ran 1.9-2.9 words a second, the prompt's two-copy loops 4.4-5.6. Without it the trigger would have redone every real repeat written twice (20-22 of 40 per prompt) and turned one of them into a single copy, as the unprompted decode drops a sentence said twice in a row. Verified: on the Studio, ./gradlew --no-daemon :app:testDebugUnitTest :app:assembleDebug (292 tests, 0 failures, the new case in StripTextTest included). Host: the trigger fires on all 7 two-copy loops of the sarah.wav cut grid, on none of 588 finished prompted decodes of the 150 name clips and none of 117 of the 40 real repeats. Benchmark: before the guard all 4 prompted cases repeat (score.py exit 1), with it all 4 come out "Sarah is at the station." (exit 0); corpus and long-clip texts byte-identical to dev's native.cpp; long-clip check unchanged. Removed or replaced: score.py's repeated-clip threshold goes from twice to 1.5 times the words said. |
||
| .cargo | ||
| .cloudflare/cache | ||
| .config | ||
| .github | ||
| android | ||
| app | ||
| assets | ||
| crates | ||
| design | ||
| docs | ||
| ios | ||
| macos/HexMicrophoneDriver | ||
| native | ||
| nix | ||
| packaging | ||
| perf | ||
| prototypes/app-shell | ||
| release-notes | ||
| resources | ||
| scripts | ||
| sdk | ||
| site | ||
| skills | ||
| src | ||
| tests | ||
| .gitignore | ||
| .hivemind.toml | ||
| .markdownlint-cli2.jsonc | ||
| AGENTS.md | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| clippy.toml | ||
| CONTRIBUTING.md | ||
| flake.lock | ||
| flake.nix | ||
| LICENSE | ||
| README.md | ||
| ROADMAP.md | ||
| SECURITY.md | ||
| strobe.json | ||
| THIRD_PARTY_NOTICES.md | ||
Hex
Hex is local voice dictation for Mac, Windows and Linux. Hold a key, speak, and it pastes.
How it works
- hold the shortcut, speak, then let go
- Hex transcribes on your device and pastes into whatever app you're in
- the first run downloads a speech model; after that nothing leaves your machine
- experimental features live in Labs, at the bottom of the sidebar
What it does
- hold the shortcut to dictate, or set Shortcut mode to Tap to start and stop with a press
- the text lands at the cursor in whatever app you're in
- Option-Shift-V pastes the last dictation again (Ctrl-Alt-V on Windows and Linux)
- History keeps your dictations, searchable, for 7 days by default
- Output runs every dictation through steps you choose (word replacements, built-in cleanups, your own scripts, an optional OpenCode rewrite), with different steps per app or website
- Vocabulary is one list of names Hex should know; Whisper and Qwen3-ASR read it while transcribing, Parakeet models read it with Labs › Vocabulary help on, and the OpenCode rewrite uses it
- Annotate records the screen while you draw and talk, on macOS, Linux and Windows (GNOME Wayland needs Labs › Annotate on GNOME)
- an authenticated local API and the TypeScript SDK transcribe with the same model, for your own tools
- Meetings is a macOS lab that records a call and writes the transcript
Output and History:
Speech models
Hex downloads one model the first time it runs and transcribes with it on your
machine from then on. On an English system that's Parakeet Unified English: it
writes while you talk, so the text is ready when you let go. Other languages
start with the model recommended for them. That model also serves meetings and
hex transcribe.
Settings' picker offers more, among others:
- Parakeet v3: 25 European languages, and it hears which one you speak
- Cohere Transcribe: the fewest wrong words, in 14 languages; a big download
- Whisper large-v3-turbo: almost any language, and it reads your vocabulary
- Qwen3-ASR 0.6B: Chinese and 29 more, and it reads your vocabulary
- SenseVoice Small: Chinese, Japanese, Korean and English; a small download
- Nemotron 3.5 ASR: writes while you talk, in 27 languages
- Granite Speech 5.0: IBM's model, seven languages, with punctuation
- one-language models: ivrit.ai Whisper for Hebrew, GigaAM v3 for Russian, NB-Whisper for Norwegian, KB-Whisper for Swedish, QwenCleo-ASR for Egyptian Arabic
- more English models: Parakeet v2 and Underdog Bark 3.0
Add a GGUF model of your own with "Add model file…" in the picker; see your own speech models.
Downloads
Stable is the current release. Dev is the newest build of dev and updates
itself from the dev channel.
| Platform | Stable | Dev |
|---|---|---|
| macOS (Apple silicon) | DMG | DMG |
| Windows x64 | Installer | Installer |
| Windows ARM64 | Installer | Installer |
| Linux x86_64 | Executable | Executable |
| Linux x86_64 (Debian, Ubuntu) | .deb | .deb |
| Linux x86_64 (Fedora, openSUSE) | .rpm | .rpm |
| Linux ARM64 | Executable | Executable |
| Linux ARM64 (Debian, Ubuntu) | .deb | .deb |
| Linux ARM64 (Fedora, openSUSE) | .rpm | .rpm |
Or install with:
- Homebrew:
brew install --cask anomalyco/tap/hex - AUR:
yay -S hex-bin - install script (Linux):
curl -fsSL https://anoma.ly/hex/install-linux.sh | sh - Nix (Linux):
nix profile add github:anomalyco/hex
Command line
hex transcribe meeting.m4a prints a recording's transcript, whether or not
the app is running. It reads WAV, AIFF, CAF, FLAC, MP3, Ogg, WebM, and
MP4/M4A/MOV, including a video's soundtrack. The same hex controls the
running app (hex status, hex dictation, hex settings); see
docs/cli.md.
On macOS the CLI is inside the app. Homebrew links it for you; otherwise link
it somewhere on your PATH that you own:
ln -s /Applications/Hex.app/Contents/MacOS/hex ~/.local/bin/hex
Linux and Windows installs put hex on your PATH.
More docs are in docs/.
Contributing
We don't take pull requests. Open an issue describing the bug or idea, and our agents usually turn it around fast.
MIT licensed.