Tuesday, 22 November, 2016 UTC


Summary

In a previous tutorial, we learned how to send email notifications Using Nodemailer and Gmail. In today’s session, we will learn how to play sounds using Node.js. As a bonus, we will learn how to continue to play a sound until our notification has been acknowledged by pressing a key on the keyboard. How does that sound? 🙂 Enough bad puns! 🙂 Let’s get started! Prepare the foundation for playing sounds in Node.js To play a sound in our Node.js code, we will use an NPM package called (perhaps not surprisingly) play-sound. This package works with a number of different command-line audio players including: mplayer afplay mpg123 mpg321 play omxplayer If the play-sound Read More