Installation
Hardware dependencies
Microphone: You must have a good microphone. Typical computer/notebook microphones are not sufficient.
For example, the Sony PlayStation 3 Eye camera.
Loud speaker, obviously.
Normal desktop CPU.
We'll be working on Raspberry Pi 4 support soon. Raspberry Pi 3 will not be supported.
Install OS dependencies
Ubuntu, Debian etc.
# apt install yarnpkg mpg123 mpd sox libasound2-dev default-jre-headless default-jdk git
Fedora, RedHat etc.
Install RPM Fusion (for mpd)
# dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
# dnf install mpg123 mpd sox alsa-lib-devel java-1.8.0-openjdk-headless java-1.8.0-openjdk-devel gitInstall Yarn
Complete step 3 below.
$ npm install -g yarn
Mac
# brew node yarn sox mpd mpg123 openjdk gitSkip step 3.
Install node.js
Go to the node.js website and download node version 14 or later.
node version 12 may work.
node version 10 in Ubuntu 20.04 is too old.
Extract the archive somewhere.
ln -s/your/path/to/node//usr/local/bin/node
Install MaryTTS
git clone https://github.com/marytts/marytts/Build it with
./gradlewInstall voices by running
wget `grep location.*cmu-slt download/marytts-components.xml|sed -e "s|.*href=\"||" -e "s|\".*||"`unzip voice-cmu-slt-5.2.zipor alternatively starting the UI app./gradlew runInstallerGuien-US
cmu-slten-US
cmu-rmsen-GB
dfki-spikeen-GB
dfki-prudence
Restart the server:
./gradlew runOpen http://localhost:59125 in a browser, to check whether the server is running and the voices are listed in the dropdown.
Download data files
Download the Pia app data files
cdto the Pia source directorymkdir datacd data/tar xjf /path/to/pia-data.tar.bz2mkdir deepspeech-0.7.3-modelsThe DeepSpeech model version needs to match the version of DeepSpeech npm module perfectly. Double-check the version that you have with
grep version node_modules/deepspeech/package.json.
cd deepspeech-0.7.3-models/Download the DeepSpeech 0.7.3 model file and DeepSpeech 0.7.3 scorer file into this directory.
They are 1.2 GB, so while they download, you can already adjust config.json, see step 6.3. below.
Install node packages
cdto the Pia source directoryyarn installcp config-min.json config.jsonAdapt
config.json
Run Pia
cdto the Pia source directoryyarn startYou should see
(...) Applications loaded: clock: success (...) Listening to your command...Say "Hey Edison, what time is it?"
Find more commands to say by looking at
app/*/intents.en.json
Configure the applications
Create your own voice apps :-)
Implement your voice commands in JavaScript, with the help of npm modules.
Last updated