Basic voice activated app created for Raspberry Pi 3 with NodeJS + Electron. Uses Annyang and Responsive Voice JavaScript libraries.
Check this forum post with video.
-
Boot!
-
Use a monitor & keyboard & mouse to connect to the wifi
sudo raspi-config
sudo reboot
df -h
sudo apt-get update
sudo apt-get dist-upgrade
wget https://nodejs.org/dist/v4.3.2/node-v4.3.2-linux-armv6l.tar.gz
tar -xvf node-v4.3.2-linux-armv6l.tar.gz
cd node-v4.3.2-linux-armv6l
sudo cp -R * /usr/local/
sudo aptitude install pulseaudio
sudo nano /etc/modules
Add line:
snd_bcm2835
CTRL + O (save) CTRL + X (exit)
sudo apt-get install mplayer
sudo amixer -c 0 cset numid=3 1
-
Copy the ‘personal-assistant’ code (easier with a flash-drive).
-
Install packages (basically just electron package, aprox. 60MB)
npm install
- Setup the personal-assistant as autostart
Create a new file
sudo nano /home/pi/personal-assistant.sh
Add the following to this file (the folder should be the same as step 9)
!#/bin/bash
cd /home/pi/Documents/personal-assistant && npm start
CTRL + O (save) CTRL + X (exit)
Set system as owner
sudo chown pi:pi /home/pi /personal-assistant.sh
sudo chmod +x /home/pi/personal-assistant.sh
add this .sh (script) to startup
sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart.sh
add the following line:
/home/pi/personal-assistant.sh &