Skip to content

Releases: daanzu/kaldi-active-grammar

v3.1.0

24 Nov 12:06
Compare
Choose a tag to compare

Fixed

  • Fix updating of SymbolTable multiple times for new words, so that there is only one instance for a single Model.

Changed

  • Only mark lexicon stale if it was successfully modified.
  • Removed deprecated CLI binaries from Windows build, reducing wheel size by ~65%.

Donations are appreciated to encourage development.

Donate Donate Donate Donate

Artifacts

  • Models are available here and below.

v3.0.0

31 Oct 10:42
Compare
Choose a tag to compare

Changed

  • Pronunciation generation for lexicon now better supports local mode (using the g2p_en package), which is now also the default mode. It is also preferred over the online mode (using CMU's web service), which is now disabled by default. See the Setup section of the README for details. The new models now include the data files for g2p_en.
  • PlainDictation output now discards any silence words from transcript.
  • lattice_beam default value reduced from 6.0 to 5.0, to hopefully avoid occasional errors.
  • Removed deprecated CLI binaries from build for linux/mac.

Fixed

  • Whitespace in the model path is once again handled properly (thanks @matthewmcintire).
  • NativeWFST.has_path() now handles loops.
  • Linux/Mac binaries are now more stripped.

Donations are appreciated to encourage development.

Donate Donate Donate Donate

Artifacts

  • Models are available here and below.

v2.1.0

08 Apr 03:40
Compare
Choose a tag to compare

You can subscribe to announcements on GitHub (see Watch panel above), or on Gitter (see instructions Gitter)

Donations are appreciated to encourage development.

Donate Donate Donate Donate

See major changes introduced in v2.0.0 and associated downloads.

Added

  • NativeWFST support for checking for impossible graphs (no successful path), which can then fail to compile.
  • Debugging info for NativeWFST.

Changed

  • lattice_beam default value reduced from 8.0 to 6.0, to hopefully avoid occasional errors.
  • Minor fix for OpenBLAS compilation for some architectures on linux/mac.

Fixed

  • Reloading grammars with NativeWFST.

Artifacts

  • Models are available here
  • kaldi-dragonfly-winpython: A self-contained, portable, batteries-included (python & libraries & model) distribution of kaldi-active-grammar + dragonfly2. Just unzip and run!
  • kaldi-caster-winpython: A self-contained, portable, batteries-included (python & libraries & model) distribution of kaldi-active-grammar + dragonfly2 + caster. Just unzip and run!

If you have trouble downloading, try using wget --continue.

V2.0.0: Faster Grammar Compilation; Cleaner Codebase; Preparation For New Features

21 Mar 15:20
Compare
Choose a tag to compare

You can subscribe to announcements on GitHub (see Watch panel above), or on Gitter (see instructions Gitter)

Donations are appreciated to encourage development.

Donate Donate Donate Donate

Added

  • Native FST support, via direct wrapping of OpenFST, rather than Python text-format implementation
    • Eliminates grammar (G) FST compilation step
  • Internalized many graph construction steps, via direct use of native Kaldi/OpenFST functions, rather than invoking separate CLI processes
    • Eliminates need for many temporary files (FSTs, .confs, etc) and pipes
  • Example usage for allowing mixing of free dictation with strict command phrases
  • Experimental support for "look ahead" graphs, as an alternative to full HCLG compilation
  • Experimental support for rescoring with CARPA LMs
  • Experimental support for rescoring with RNN LMs
  • Experimental support for "priming" RNNLM previous left context for each utterance

Changed

  • OpenBLAS is now the default linear algebra library (rather than Intel MKL) on Linux/MacOS
    • Because it is open source and provides good performance on all hardware (including AMD)
    • Windows is more difficult for this, and will be implemented soon in a later release
  • Default tmp_dir is now set to [model_dir]/cache.tmp
  • tmp_dir is now optional, and only needed if caching compiled FSTs (or for certain framework/option combinations)
  • File cache is now stored at [model_dir]/file_cache.json
  • Optimized adding many new words to the lexicon, in many different grammars, all in one loading session: only rebuild L_disambig.fst once at the end.
  • External interfaces: Compiler.__init__(), decoding setup, etc.
  • Internal interfaces: wrappers, etc.
  • Major refactoring of C++ components, with a new inheritance hierarchy and configuration mechanism, making it easier to use and test features with and without "activity"
  • Many build changes

Removed

  • Python 2.7 support: it may still work, but will not be a focus.
  • Google cloud speech-to-text removed, as an unneeded dependency. Alternative dictation is still supported as an option, via a callback to an external provider.

Deprecated

  • Separate CLI Kaldi/OpenFST executables
  • Indirect AGF graph compilation (framework==agf-indirect)
  • Non-native FSTs
  • parsing_framework==text

Artifacts

  • Models are available here
  • kaldi-dragonfly-winpython: A self-contained, portable, batteries-included (python & libraries & model) distribution of kaldi-active-grammar + dragonfly2. Just unzip and run!
  • kaldi-caster-winpython: A self-contained, portable, batteries-included (python & libraries & model) distribution of kaldi-active-grammar + dragonfly2 + caster. Just unzip and run!

If you have trouble downloading, try using wget --continue.

v1.8.0: New Models, Noise Resistance, Better Errors, More Documentation

05 Sep 14:45
Compare
Choose a tag to compare

You can subscribe to announcements on GitHub (see Watch panel above), or on Gitter (see instructions Gitter)

Donations are appreciated to encourage development.

Donate Donate Donate Donate
[GitHub is matching (only) my GitHub Sponsors donations.]

Added

  • New speech models (should be better in general, and support new noise resistance)
  • Make failed AGF graph compilation save and output stderr upon failure automatically
  • Example of complete usage with a grammar and microphone audio
  • Various documentation

Changed

  • Top FST now accepts various noise phones (if present in speech model), making it more resistant to noise
  • Cleanup error handling in compiler, supporting Dragonfly backend automatically printing excerpt of the Rule that failed

Fixed

  • Mysterious windows newline bug in some environments

Artifacts

  • Models are available here
  • kaldi-dragonfly-winpython: [stable release version] A self-contained, portable, batteries-included (python & libraries & model) distribution of kaldi-active-grammar + dragonfly2. Just unzip and run!
  • kaldi-caster-winpython-dev: [more recent development version] A self-contained, portable, batteries-included (python & libraries & model) distribution of kaldi-active-grammar + dragonfly2 + caster. Just unzip and run!

If you have trouble downloading, try using wget --continue.

v1.7.0: Support compiling some complex grammars (Caster text manipulation)

05 Sep 13:29
Compare
Choose a tag to compare

You can subscribe to announcements on GitHub (see Watch panel above), or on Gitter (see instructions Gitter)

Donations are appreciated to encourage development.

Donate Donate Donate Donate
[GitHub is matching (only) my GitHub Sponsors donations.]

Added

  • Add automatic saving of text FST & compiled FST files with log level 5

Changed

  • Miscellaneous naming

Fixed

  • Support compiling some complex grammars (Caster text manipulation), by simplifying during compilation (remove epsilons, and determinize)

Artifacts

  • Models are available here
  • kaldi-dragonfly-winpython: [stable release version] A self-contained, portable, batteries-included (python & libraries & model) distribution of kaldi-active-grammar + dragonfly2. Just unzip and run!
  • kaldi-caster-winpython-dev: [more recent development version] A self-contained, portable, batteries-included (python & libraries & model) distribution of kaldi-active-grammar + dragonfly2 + caster. Just unzip and run!

If you have trouble downloading, try using wget --continue.

v1.6.0: Easier Configuration; Public Automated Builds

12 Jul 14:58
Compare
Choose a tag to compare

This should be included the next dragonfly version.

You can subscribe to announcements on Gitter: see instructions. Gitter

Added

  • Can now pass configuration dict to KaldiAgfNNet3Decoder, PlainDictationRecognizer (without HCLG.fst).
  • Continuous Integration builds run on GitHub Actions for Windows (x64), MacOS (x64), Linux (x64).

Changed

  • Refactor of passing configuration to initialization.
  • PlainDictationRecognizer.decode_utterance can take chunk_size parameter.
  • Smaller binaries: MacOS 11MB -> 7.6MB, Linux 21MB -> 18MB.

Fixed

  • Confidence measurement in the presence of multiple, redundant rules.
  • Python3 int division bug for cloud dictation.

Artifacts

  • Models are available here
  • kaldi-dragonfly-winpython: [stable release version] A self-contained, portable, batteries-included (python & libraries & model) distribution of kaldi-active-grammar + dragonfly2. Just unzip and run!
  • kaldi-caster-winpython-dev: [more recent development version] A self-contained, portable, batteries-included (python & libraries & model) distribution of kaldi-active-grammar + dragonfly2 + caster. Just unzip and run!

If you have trouble downloading, try using wget --continue.

Donations are appreciated to encourage development.

Donate Donate Donate Donate
[GitHub is matching (only) my GitHub Sponsors donations.]

v1.5.0: Improved Recognition Confidence Estimation

06 Jun 10:49
Compare
Choose a tag to compare

You can subscribe to announcements on Gitter: see instructions. Gitter

Notes

  • Improved Recognition Confidence Estimation: two new, different measures:
    • confidence: basically the difference in how much "better" the returned recognition was, compared to the second best guess (>0)
    • expected_error_rate: an estimate of how often similar utterances are incorrect (roughly out of 1.0, but can be greater)
  • Refactoring in preparation for future improvements
  • Various bug fixes & optimizations

Artifacts

  • Models are available here
  • kaldi-dragonfly-winpython: [stable release version] A self-contained, portable, batteries-included (python & libraries & model) distribution of kaldi-active-grammar + dragonfly2. Just unzip and run!
  • kaldi-caster-winpython-dev: [more recent development version] A self-contained, portable, batteries-included (python & libraries & model) distribution of kaldi-active-grammar + dragonfly2 + caster. Just unzip and run!

If you have trouble downloading, try using wget --continue.

Donations are appreciated to encourage development.

Donate Donate Donate Donate
[GitHub is matching (only) my GitHub Sponsors donations.]

v1.4.0: MacOS Support, And Faster Graph Compilation

28 Mar 10:54
Compare
Choose a tag to compare

Support is now included in dragonfly2 v0.22.0! You can try a self-contained distribution available below.

You can subscribe to announcements on Gitter: see instructions. Gitter

Notes

  • MacOS Support
  • Faster Graph Compilation
  • Dictation: the dictation model now does not recognize a zero-word sequence
  • Various bug fixes & optimizations

Artifacts

  • kaldi_model_daanzu*: A better acoustic model, and varying levels of language model for dictation (bigger is generally better).
  • kaldi_model_zamia: A compatible general English Kaldi nnet3 chain model.
  • kaldi-dragonfly-winpython: [stable release version] A self-contained, portable, batteries-included (python & libraries & model) distribution of kaldi-active-grammar + dragonfly2. Just unzip and run!
  • kaldi-caster-winpython-dev: [more recent development version] A self-contained, portable, batteries-included (python & libraries & model) distribution of kaldi-active-grammar + dragonfly2 + caster. Just unzip and run!

If you have trouble downloading, try using wget --continue.

Donations are appreciated to encourage development.

Donate Donate Donate Donate
[GitHub is matching (only) my GitHub Sponsors donations.]

v1.3.0: Preparation and Fixes for Next Generation of Models

15 Jan 10:25
Compare
Choose a tag to compare

This should be included the next dragonfly version, or you can try a self-contained distribution available below.

You can subscribe to announcements on Gitter: see instructions. Gitter

Notes

  • Next Generation of Models: support for a new generation of models, trained on more data, and with hopefully better accuracy.
  • User Lexicon: if there is a user_lexicon.txt file in the current working directory of your initial loader script, its contents will be automatically added to the user_lexicon.txt in the active model when it is loaded.
  • Various bug fixes & optimizations

Artifacts

  • kaldi_model_daanzu*: A better acoustic model, and varying levels of language model for dictation (bigger is generally better).
  • kaldi_model_zamia: A compatible general English Kaldi nnet3 chain model.
  • kaldi-dragonfly-winpython: [stable release version] A self-contained, portable, batteries-included (python & libraries & model) distribution of kaldi-active-grammar + dragonfly2. Just unzip and run!
  • kaldi-dragonfly-winpython-dev: [more recent development version] A self-contained, portable, batteries-included (python & libraries & model) distribution of kaldi-active-grammar + dragonfly2. Just unzip and run!
  • kaldi-caster-winpython-dev: [more recent development version] A self-contained, portable, batteries-included (python & libraries & model) distribution of kaldi-active-grammar + dragonfly2 + caster. Just unzip and run!

If you have trouble downloading, try using wget --continue.

Donations are appreciated to encourage development.

Donate Donate Donate Donate
[GitHub is matching (only) my GitHub Sponsors donations.]