Quick and dirty way to test sound on a raspberry pi.
Based on https://gist.github.com/TooTallNate/3947591
-
Install nvm
-
Use the correct node version:
nvm use
-
Install dependencies
sudo apt-get install libasound2-dev npm install
node index.js sound-file.mp3