Afplay - Apple Audio File Play wrapper for Node.js
Afplay is a wrapper for Apple Audio File Play (afplay).
Use Afplay to play audio files on OS X via afplay. Afplay afplay!
Afplay was written for Node.js 4+.
npm install --save afplay
Afplay is super simple to use!
Play a Local File
let Afplay = ;// Instantiate a new playerlet player = ;// Play a sound, handle result within a Promiseplayer;
Configure Volume & Play Time
It is possible to configure volume and play time (in seconds).
View the examples directory.
Afplay's initial logo was designed by scorpion6 on Fiverr. Font used is Lato Black.
This software is licensed under the MIT License. View the license.
Copyright © 2015 Michael K. Squires