Skip to content

utter 0.0.1

Choose a tag to compare

@pyscape pyscape released this 13 Sep 21:14
· 350 commits to main since this release
f158147

The first release of utter, a pure-Rust streaming speech recognizer for Vosk models, built for applications that act on partial results. Zero dependencies: no C toolchain, no Docker, no cloud. It opens a stock Vosk model directory as-is.

What it does

  • Streams 16 kHz audio in small blocks and after every block reports the words it believes so far, the rival readings it is still weighing, the span and energy of each word, and when the speaker stopped.
  • Decodes under a grammar, as the Vosk wheel's KaldiRecognizer does with a word list, with an optional unknown-word symbol at a cost you set.
  • Partials carry alternatives, word times, each reading's relation to the current best and the motion of its lead, and whether a word has begun on a wordless block.
  • Finals say what closed them, an endpoint or a flush, and how long each word held.
  • A host endpoint bound: a final once the trailing silence reaches a bound you choose, unless a reading that extends the partial by a further word is within a veto margin of it.

Surfaces

  • Rust: the utter crate. Model::open, Recognizer::new, accept, partial, result, final_result.
  • C: a shared library and include/utter.h, mirroring libvosk's vosk_api.h names. The Linux, Windows and macOS libraries are attached below with the header, licenses and notice.
  • Python: the utterpy package on PyPI, a drop-in for the vosk package's object surface, shipping type stubs.

All three return the same JSON strings. Every document and key is described in docs/reference/results.md; what changes for code written against the Vosk wheel is in docs/reference/vosk.md.

Measured

On the public Speech Commands benchmark it matches the stock Vosk wheel: 91.8% against 91.5% accuracy on 11,005 clips, finals agreeing on 99.2% of them, the same 40 ms median first-appearance latency. Every gate and benchmark page is under docs/gates and docs/benchmarks, with the scripts that produce them.

One parity gap is open: segment-for-segment agreement with libvosk on the private test corpus sits just under the mark the gate asks for, on near ties in the acoustics.

Models

The English small model, vosk-model-small-en-us-0.15, is the reference. Other small models with the same layout are expected to work and have not been checked. Models with network components the runtime does not implement, such as the CNN-TDNN in vosk-model-en-us-0.22-lgraph, are refused when opened, naming the component.

Stability

The API keeps the Vosk wheel's shape. Expect breaking changes before 0.1.

License

MIT, with the Kaldi model reader, MFCC and nnet3 forward pass vendored from Vosk-Rust under Apache-2.0 with its notices kept.

One detail to handle in the workflow: the release job has generate_release_notes: true, which appends GitHub's auto-generated commit list under whatever body the release carries. If you want only the notes above, I'll switch that flag off and have the job read the body from a file in the repository, so the notes are reviewed in the PR like everything else. Say so and I'll add it.

What's Changed

  • Bump actions/checkout from 4 to 7 by @dependabot[bot] in #1
  • Bump actions/setup-python from 5 to 7 by @dependabot[bot] in #2
  • Bump github/codeql-action from 3 to 4 by @dependabot[bot] in #3
  • Bump actions/upload-artifact from 4 to 7 by @dependabot[bot] in #4
  • Bump actions/cache from 4 to 6 by @dependabot[bot] in #5
  • utter 0.0.1: the streaming runtime, its gates and benchmarks, and the release path by @pyscape in #6
  • The release builds the library for six platforms by @pyscape in #7
  • README: registry badge URLs that miss the stale cache by @pyscape in #8

New Contributors

Full Changelog: https://github.com/pyscape/utter/commits/v0.0.1