AudioHub
AudioHub is a simple mplayer wrapper written in NodeJS. That provides command line audio playback from the terminal or your NodeJS app.
INSTALLING
Using Git:
git clone https://github.com/active9/audiohubcd audiohub*npm install
Using NPM:
npm install audiohub
CLI
AudioHub can play many audio formats directly from the command line. Give it a try:
audiohub path_to_a_music_file.mp3
MODULE
AudioHub may run included as a module in your projects.
var audiohub = ;var path = ; var audio = ;audio;
You may also specify a custom player if you don't have mplayer on the system. In the example below we will playback using vlc instead of mplayer.
var audiohub = ;var path = ; var audio = player: 'vlc';audio;
EXAMPLES
More examples in the examples folder on the github repo.
~Enjoy!
REQUIREMENTS
- Requires mplayer installed and configured within the system environment. (Windows users will need to manually add mplayer to the Environment Variable Path.)
CONTRIB
AudioHub is open-source via the MIT license we encourage Forking.
LICENSE
MIT