avs-device-sdk-pi
Scripts to enable Alexa voice activation using Picovoice Porcupine
☕
😄
![paypal](https://camo.githubusercontent.com/758a4b22a5c56662c568b7ffb24373659bc0266bcc721e882b16ef4f2bb51f16/68747470733a2f2f7777772e70617970616c6f626a656374732e636f6d2f656e5f55532f692f62746e2f62746e5f646f6e6174655f4c472e676966)
If you like the work, find it useful and if you would like to get me a
- Follow Amazon's official setup guide from here for the installation procedure.
- After the completion of the Alexa installation, install the requisites for Picovoice porcupine using:
sudo apt-get update
sudo apt-get install python3-pip wmctrl xdotool
pip3 install pvporcupine
pip3 install pvrecorder
- Download the alexa_picovoice_trigger.py file from this git.
- Create the Access Key in Picovoice console and download the keyword from Picovoice Porcupine git.
- For voice activation, open a terminal and enter the following:
wmctrl -l
Note the id value of the terminal in the extreme left.
6. Start the Alexa's Startsample.sh script from the same terminal.
7. Open the alexa_picovoice_trigger.py script and change the id value given here with the id value noted.
7. Start the Picovoice porcupine trigger using the following syntax:
python3 /home/pi/alexa_picovoice_trigger.py --access_key ${ACCESS_KEY} --keyword_paths ${KEYWORD_PATH_ONE}
- Now, Alexa can be triggered with Picovoice Porcupine wakeword engine.