Kaldi - Classic Install
Caster currently supports Kaldi on Microsoft Windows 7 through Windows 10. Consider supporting the author daanzu if you use his engine full-time.
1. Python
-
First Download and install Python 3 listed as
Windows installer (64-bit)
.Make sure to select
Add python to path
. This can be done manually by searching for "edit environment variables for your account" and adding your Python 3 folder to the list of Path values.Be sure the
wheel
package is installed. It can be installed withpip install wheel
on a command line. You may need to update pip by runningpip install --upgrade pip
first.
2. Caster
- Download Caster from the master branch.
- Open up the zip file downloaded
- Copy the contents of
Caster-master
folder. You can put it anywhere, but it is common to use%USERPROFILE%\Documents\Caster
. - Optional Step for Caster's
Legion
MouseGrid - Legion Feature available on Windows 8 and above.- The Legion MouseGrid requires Microsoft Visual C++ Redistributable Packages for Visual Studio 2015, 2017 and 2019 (x86). Note: Should not be needed if Windows 10 is up-to-date.
- Click
Install_Caster_Kaldi.bat
to install prerequisite dependencies and set up Kaldi.
3. Set up Kaldi Model
- Download your preferred Kaldi model at kaldi-active-grammar/releases
- Extract
kaldi_model_< Model Type >.zip
to%USERPROFILE%\Documents\Caster
4. Launch for Kaldi for Classic Install.
- Go to
%USERPROFILE%\Documents\Caster
- Double-click on
Run_Caster_Kaldi.bat
Note: Kaldi is flexible engine which can be configured via engine parameters to customize your experience.
- You can modify the
Run_Caster_Kaldi.bat
file forpython -m dragonfly load _*.py --engine kaldi --no-recobs-messages --engine-options "model_dir=kaldi_model, vad_padding_end_ms=300"
- List of kaldi engine parameters. Scroll down for parameter explanations.
Update Caster
- Backup
%USERPROFILE%\Documents\Caster
- Delete
%USERPROFILE%\Documents\Caster
- Repeat Steps
1. - 5.
within the Caster install section
Troubleshooting Kaldi
- No commonly reported issues yet.
Known Issues
- Kaldi outputs a lot of text to the caster status window on Windows OS
- Kaldi mitigation for keyboard action processing bug via debug mode