mirror of
https://github.com/wahyd4/play-sound.git
synced 2026-08-09 04:46:23 +10:00
71d9438c585d0ee64fdaaa24bdeedc5fc4ebe790
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', function(err){
if (err) throw err
}) // $ mplayer foo.mp3
player.play('foo.mp3', { timeout: 300 }, function(err){ // opts will be passed to child process
if (err) throw err
})
options
players– List of available audio players to check. Default: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%