Personal voice assistant written in go using DeepSpeech. This was mainly created for personal use, so there may be some edge cases unaccounted for.
The prerequisites for trident are:
- libdeepspeech and DeepSpeech models (speech to text)
- flite (text to speech)
libdeepspeech along with its models can be found in its github releases. Be sure to download the
native_client tarball for your platform and the
flite can be installed via your distribution's repositories:
sudo apt install flite-dev
sudo dnf install flite-devel
sudo pacman -S flite festival-us
Move the previously downloaded models (
.scorer) into this repo as
deepspeech.scorer. Then, follow the next steps.
To build trident, run:
After that, install by running:
sudo make install
To change the activation tone, replace the
activate.wav file with any valid wav file and rebuild. The file will be embedded in the executable via
Trident has a config file called
trident.toml. It will first look for it in
<user config directory>/trident.toml (config directory as defined by
os.UserConfigDir()), then it will look for it in the same directory as the executable.