Io is built for Debian Bullseye only. I am a beginner, use this at your own risk
Io is built on Kalliope
To activate Kalliope after installation:
source venv/bin/activateCheck that the service is ok
sudo systemctl status kalliope
Create the brain of your assistant by: attaching an input signal (vocal order, scheduled event, MQTT message, GPIO event, etc..) to one or multiple actions called neurons.
Kalliope's License: Copyright (c) 2018. All rights reserved. Kalliope is covered by the GNU GENERAL PUBLIC LICENSE v3.0. Kalliope's Copyright and license notices must be preserved. Contributors provide an express grant of patent rights. See the LICENSE.md file for more details.
Originally "Kalliope requirements for Debian Jessie/Stretch"
Edit /etc/apt/sources.list and check that you have contrib and non-free are enabled:
Install some required system libraries and softwares: Note: I've broken these down into subsections to make it easier to identify broken ones.
sudo apt update
sudo apt install -y git python3-dev libpython3-dev libsmpeg0 libttspico-utils flac \
sudo apt install -y libffi-dev libssl-dev portaudio19-dev build-essential \
sudo apt install -y libatlas3-base mplayer wget vim sudo locales \
sudo apt install -y pulseaudio-utils libasound2-plugins python3-pyaudio libasound2-dev \
sudo apt install -y libportaudio2 libportaudiocpp0 ffmpegLet's install the last release of python-pip (this may be incorrect)
wget https://bootstrap.pypa.io/get-pip.py
sudo python3 get-pip.pyThen, with pip, the last release of setuptools
sudo pip3 install -U setuptoolsInstall the python-virtualenv package:
sudo pip3 install virtualenvClone the project:
git clone https://github.com/kalliope-project/kalliope.git
cd kalliopeGenerate a local python3 virtual environment:
virtualenv venv -p /usr/bin/python3Activate the local environment:
source venv/bin/activateInstall using pip
python3 -m pip install .To ensure that you can record your voice, run the following command to capture audio input from your microphone:
arecord 123.wavPress CTRL-C after capturing a sample of your voice.
Then play the recorded audio file
mplayer 123.wavYour installation is now complete, let's take a look now to the getting started documentation to learn how to use Kalliope.
If you want to start Kalliope automatically:
Place the script bellow in /etc/systemd/system/kalliope.service.
Update the path <my_config_path> with the path where you've placed your brain.yml and settings.yml.
Update the <username> with a non root user. For example, on Raspbian you can set pi.
[Unit]
Description=Kalliope
After=pulseaudio.service
[Service]
WorkingDirectory=<my_config_path>
Environment='STDOUT=/var/log/kalliope.log'
Environment='STDERR=/var/log/kalliope.err.log'
ExecStart=/bin/bash -c "/usr/local/bin/kalliope start > ${STDOUT} 2> ${STDERR}"
User=<username>
[Install]
WantedBy=multi-user.targetE.g
[Unit]
Description=Kalliope
After=pulseaudio.service
[Service]
WorkingDirectory=/home/pi/my_kalliope_config
Environment='STDOUT=/var/log/kalliope.log'
Environment='STDERR=/var/log/kalliope.err.log'
ExecStart=/bin/bash -c "/usr/local/bin/kalliope start > ${STDOUT} 2> ${STDERR}"
User=pi
[Install]
WantedBy=multi-user.targetCreate both log files and give rights to you user
sudo touch /var/log/kalliope.log
sudo touch /var/log/kalliope.err.log
sudo chown pi:pi /var/log/kalliope*Then, reload systemctl, start the service and enable it at startup
sudo systemctl daemon-reload
sudo systemctl start kalliope
sudo systemctl enable kalliopeCheck that the service is ok
sudo systemctl status kalliope