Skip to content

Jasper module for my HAL9000 Raspberry PI project that plays random wavs

License

Notifications You must be signed in to change notification settings

ArtBIT/jasper-module-wavplay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Jasper-Module-WavPlay

Upon trigger, it plays a random wav file from a pre-configured directory.

Jasper WavPlay Module for my HAL9000 Raspberry PI Instructable

Steps to install WavPlay Module

git clone https://github.com/ArtBIT/jasper-module-wavplay.git
cp jasper-module-wavplay/WavPlay.py <path to jasper/client/modules>
#i.e. cp jasper-module-wavplay/WavPlay.py /usr/local/lib/jasper/client/modules/
mkdir ~/wavs
cp path-to-downloaded-wavs/*.wav ~/wavs
  • Edit ~/.jasper/profile.yml and add the follwing at the bottom:
wavplay:
  path: /home/pi/wavs
  • Restart the Pi:
sudo reboot

Congrats, JASPER WavPlay Module is now installed and ready for use!

Here are some examples:

YOU: Say something.
JASPER: *plays a random wav from the ~/wavs directory*
YOU: Dave?
JASPER: *plays a random wav from the ~/wavs directory*