cd ~/
git clone https://github.com/MycroftAI/mycroft-core.git/tree/master
cd mycroft-core
bash dev_setup.sh
- Y (run on stable ‘master’ branch)
- Y (automatically update)
- N (not needed if you have an internet connection at all times)
- Y (make Mycroft’s job easier)
- Y (automatically check code when submitting)
The first thing that needs to be done is to place Hey-Tux.tgz file (found in the Mycroft-Precise directory of this GitHub repository) in the .mycroft/precise/
folder on your machine. Before moving on to the next step, unzip the Hey-Tux.tgz
in the same folder (.mycroft/precise/
) using the following command:
tar -xvzf Hey-Tux.tgz
Next, follow the following steps to implement Tux:
cd ~/
cd mycroft-core
./bin/mycroft-config edit user
In the window that appears, copy the following code (you can choose to put Hey-Tux-Old.pb
in place of Hey-Tux-New.pb
if you want to try the older Precise wake-word model for Tux). Within <user folder name>
you should write down your user account's folder name (it shoud be obvious that the names shoud be written without the <>
):
{
"max_allowed_core_version": 20.2,
"listener": {
"wake_word": "hey tux"
},
"hotwords": {
"hey tux": {
"module": "precise",
"local_model_file": "/home/<user folder name>/.mycroft/precise/Hey-Tux-New.pb"
}
}
}
Press Ctrl + S
to save and Ctrl + X
to exit the window. You can use this JSON Formatter & Validator tool to make sure that the code you typed in is correct. Next type the following command:
./bin/mycroft-config reload
If you would like to see what Tux is hearing, and also see what Tux is saying, type the following command. This will bring an interface to interact with Tux.
./start-mycroft.sh debug
Press Ctrl + C
to exit the interface (this will also close all Tux services). If you want Tux to work in the background without an interface, type the following command:
./start-mycroft.sh all
To end all background services of Tux, simply type:
./stop-mycroft.sh
If you have any questions, comments, or concerns, you can email me at shahzeb.jadoon.sj@gmail.com