Skip to content

Latest commit

 

History

History

ansible

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Ansible playbook

This playbook prepares the Raspberry Pi for use as voice assistant with Rhasspy and Node-RED. Both applications will be running on Docker CE. It also stages driver files for a ReSpeaker voice card and starts an online radio Docker container.

Raspberry Pi OS (aka Raspbian) is the preferenced distribution as it is more stable and offers better driver support for the ReSpeaker, but Ubuntu Server should also be possible. Please not that conventional Debian won't work.

If you want to slim-down your Ubuntu installation, there is also an Ansible Playbook.

Dependencies

The following Ansible roles are used:

Usage

Copy your SSH key to your Raspberry Pi:

$ ssh-copy-id pi@<ip-address>

Update the inventory file to include your Raspberry Pi IP addresses:

[assistants]
192.168.178.200

When using Rasbian instead of Ubuntu, change the remote_user variable to pi.

Run the playbook:

$ ansible-playbook -i inventory

Wait - this can take up to 45 minutes. Once finishes, login to the Raspberry Pi and compile the seeed-voicecard drive (if you're using a ReSpeaker voice card):

$ ssh ubuntu@<ip_address>
$ sudo bash
# cd seeed-voicecard
# ./ubuntu-prerequisite.sh
# ./install.sh

Once finished, reboot the system:

# reboot

You should now be able to access the applications via the following links:

Post-configuation

Rhasspy

  • Settings
    • Audio Recording > PyAudio
    • Wake Word > Rhasspy Raven or Porcupine
    • Speech to Text > Pocketsphinx
    • Intent Recognition > Fsticuffs
    • Text to Speech > NanoTTS
    • Audio Playing > aplay
    • Intent Handling > Remote HTTP
    • Sounds
      • Wake WAV: /usr/lib/rhasspy/.venv/lib/python3.7/site-packages/snowboy/resources/ding.wav
      • Recorded WAV: /usr/lib/rhasspy/.venv/lib/python3.7/site-packages/snowboy/resources/dong.wav
  • Save Settings
  • F5
  • Download
  • Sentences

TODOs

MaryTTS