mirror of
https://github.com/wahyd4/play-sound.git
synced 2026-08-09 04:46:23 +10:00
be5c61e862e650a137a7ace3b6dd9aeb677e5077
play-sound
Play sounds by shelling out to one of the available audio players.
installation
npm install play-sound
examples
var player = require('play-sound')(opts = {})
player.play('foo.mp3') // $ mplayer foo.mp3
Options:
players- list of available audio players to check (default:['mplayer', 'afplay', 'mpg123', 'mpg321', 'play'])player- audio player to use, skips availability checks
prior art
play.js - play sound files from node.js to your speakers
license
MIT
Languages
JavaScript
100%