node-pulseaudio
v0.0.6
Published
Pulseaudio controller for nodeJS
Downloads
6
Readme
node-pulseaudio
A node.js library to control the systems output volume
Usage
The library currently has support for simple async functions and returns promise object. The volume is specified as an integer between 0 and 100
var PulseAudio = require('node-pulseaudio');
var promise = PulseAudio.get()
promise
.then(volume => {
console.log(volume) //Ex.: 42
})
.catch(err => {
console.log(err)
})
var promise = PulseAudio.set(25)
promise
.then(response => {
console.log(response)
})
.catch(err => {
console.log(err)
})
OS suport
Current only Linux is supported, please send a pull request if you are using another setup.
Authors
- Felipe J. L. Rita (zerodois) - Zerodois
License
This project is licensed under the MIT License - see the LICENSE file for details