-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #128 from kalliope-project/tests_nico
some fixes for v0.3
- Loading branch information
Showing
17 changed files
with
205 additions
and
341 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
# Kalliope installation | ||
|
||
## Prerequisites | ||
|
||
Please follow the right link bellow to install requirements depending on your target environment: | ||
- [Raspbian (Raspberry Pi 2 & 3)](installation/raspbian_jessie.md) | ||
- [Ubuntu 14.04/16.04](installation/ubuntu_16.04.md) | ||
- [Debian Jessie](installation/debian_jessie.md) | ||
|
||
## Installation | ||
|
||
### Method 1 - User install using the PIP package | ||
|
||
You can install kalliope on your system by using Pypi: | ||
``` | ||
sudo pip install kalliope | ||
``` | ||
|
||
### Method 2 - Manual setup using sources | ||
|
||
Clone the project: | ||
``` | ||
git clone https://github.com/kalliope-project/kalliope.git | ||
cd kalliope | ||
``` | ||
|
||
Install the project: | ||
``` | ||
sudo python setup.py install | ||
``` | ||
|
||
### Method 3 - Developer install using Virtualenv | ||
|
||
Install the `python-virtualenv` package: | ||
``` | ||
sudo apt-get install python-virtualenv | ||
``` | ||
|
||
Clone the project: | ||
``` | ||
git clone https://github.com/kalliope-project/kalliope.git | ||
cd kalliope | ||
``` | ||
|
||
Generate a local python environment: | ||
``` | ||
virtualenv venv | ||
``` | ||
|
||
Install the project using the local environment: | ||
``` | ||
venv/bin/pip install --editable . | ||
``` | ||
|
||
### Method 4 - Developer, dependencies install only | ||
|
||
Clone the project: | ||
``` | ||
git clone https://github.com/kalliope-project/kalliope.git | ||
cd kalliope | ||
``` | ||
|
||
Install the python dependencies directly: | ||
``` | ||
sudo pip install -r install/python_requirements.txt | ||
``` | ||
|
||
## Test your env | ||
|
||
To ensure that you can record your voice, run the following command to capture audio input from your microphone: | ||
``` | ||
rec test.wav | ||
``` | ||
|
||
Press CTRL-C after capturing a sample of your voice. | ||
|
||
Then play the recorded audio file | ||
``` | ||
mplayer test.wav | ||
``` | ||
|
||
You can then test that your Kalliope is working by using the "bonjour" order integrated in the [default brain](../kalliope/brain.yml). | ||
Start kalliope: | ||
``` | ||
kalliope start | ||
``` | ||
|
||
Kalliope will load default settings and brain, the output should looks the following | ||
``` | ||
Starting event manager | ||
Events loaded | ||
Starting Kalliope | ||
Press Ctrl+C for stopping | ||
Starting REST API Listening port: 5000 | ||
``` | ||
|
||
Then speak the hotwork out loud to wake up Kalliope. By default, the hotwork is "Kalliopé" with the french pronunciation. | ||
If the trigger is successfully raised, you'll see "say something" into the console. | ||
``` | ||
2016-12-05 20:54:21,950 :: INFO :: Keyword 1 detected at time: 2016-12-05 20:54:21 | ||
Say something! | ||
``` | ||
|
||
Then you can say "bonjour" and listen the Kalliope response. | ||
``` | ||
Say something! | ||
Google Speech Recognition thinks you said Bonjour | ||
Order matched in the brain. Running synapse "say-hello-fr" | ||
Waiting for trigger detection | ||
``` | ||
|
||
## Get a starter configuration | ||
We create some starter configuration that only need to be downloaded and then started. | ||
Those repositories provide you a basic structure to start playing with kalliope. We recommend you to clone one of them and then go to the next section. | ||
|
||
- [French starter config](https://github.com/kalliope-project/kalliope_starter_fr) | ||
- [English starter config](https://github.com/kalliope-project/kalliope_starter_en) | ||
|
||
|
||
## Next: Create you own bot | ||
If everything is ok, you can start playing with Kalliope. First, take a look to the [default settings](settings.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,125 +1,28 @@ | ||
# Kalliope installation on Debian Jessie | ||
# Kalliope requirements for Debian Jessie | ||
|
||
## Requirements | ||
## Debian packages requirements | ||
|
||
### Debian packages requirements | ||
|
||
Edit `/etc/apt/sources.list` and check that you have `contrib` and `non-free` and backports archives enabled: | ||
Edit `/etc/apt/sources.list` and check that you have `contrib` and `non-free` are enabled: | ||
``` | ||
deb http://httpredir.debian.org/debian jessie main contrib non-free | ||
deb-src http://httpredir.debian.org/debian jessie main contrib non-free | ||
deb http://httpredir.debian.org/debian jessie-backports main contrib non-free | ||
deb-src http://httpredir.debian.org/debian jessie-backports main contrib non-free | ||
``` | ||
|
||
Install some required system libraries and softwares: | ||
|
||
``` | ||
sudo apt-get update | ||
sudo apt-get install git python-pip python-dev libsmpeg0 libttspico-utils libsmpeg0 flac dialog libffi-dev libffi-dev libssl-dev portaudio19-dev build-essential libssl-dev libffi-dev sox libatlas3-base mplayer | ||
``` | ||
|
||
You also need some packages from the backports: | ||
|
||
``` | ||
sudo apt-get install -t jessie-backports python-setuptools | ||
sudo apt-get install -t jessie-backports python-pyasn1 | ||
``` | ||
|
||
## Installation | ||
|
||
### Method 1 - User install using the PIP package | ||
|
||
You can install kalliope on your system: | ||
``` | ||
sudo pip install kalliope | ||
``` | ||
|
||
Or just in your user home: | ||
``` | ||
pip install --user kalliope | ||
``` | ||
|
||
Run Kalliope from a shell: | ||
``` | ||
kalliope start | ||
``` | ||
|
||
### Method 2 - Manual user install using the git repository | ||
|
||
Clone the project: | ||
``` | ||
git clone https://github.com/kalliope-project/kalliope.git | ||
``` | ||
|
||
Install the project: | ||
``` | ||
sudo python setup.py install | ||
``` | ||
|
||
Run Kalliope from a shell: | ||
``` | ||
kalliope start | ||
``` | ||
|
||
### Method 3 - Developer install using Virtualenv | ||
|
||
Install the `python-virtualenv` package: | ||
``` | ||
sudo apt-get install python-virtualenv | ||
``` | ||
|
||
Clone the project: | ||
``` | ||
git clone https://github.com/kalliope-project/kalliope.git | ||
cd kalliope | ||
``` | ||
|
||
Generate a local python environment: | ||
``` | ||
virtualenv venv | ||
sudo apt-get install git python-dev libsmpeg0 libttspico-utils libsmpeg0 flac dialog libffi-dev libffi-dev libssl-dev portaudio19-dev build-essential libssl-dev libffi-dev sox libatlas3-base mplayer | ||
``` | ||
|
||
Install the project using the local environment: | ||
Let's install the last release of python-pip | ||
``` | ||
venv/bin/pip install --editable . | ||
``` | ||
|
||
Run Kalliope from a shell: | ||
wget https://bootstrap.pypa.io/get-pip.py | ||
sudo python get-pip.py | ||
``` | ||
venv/bin/kalliope start | ||
``` | ||
|
||
### Method 4 - Developer, dependencies install only | ||
|
||
Clone the project: | ||
``` | ||
git clone https://github.com/kalliope-project/kalliope.git | ||
cd kalliope | ||
``` | ||
|
||
Install the python dependencies directly: | ||
``` | ||
sudo pip install -r install/python_requirements.txt | ||
``` | ||
|
||
Run Kalliope from a shell directly: | ||
``` | ||
python kalliope.py start | ||
``` | ||
|
||
## Test your env | ||
|
||
To ensure that you can record your voice, run the following command to capture audio input from your microphone: | ||
``` | ||
rec test.wav | ||
``` | ||
|
||
Press CTRL-C after capturing a sample of your voice. | ||
|
||
Then play the recorded audio file | ||
Then, with pip, the last release of setuptools | ||
``` | ||
mplayer test.wav | ||
sudo pip install -U pip setuptools | ||
``` | ||
|
||
If everything is ok, you can start playing with Kalliope. First, take a look to the [default settings](../settings.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.