Audite

Portable mp3 player for Ruby

Download as .zip Download as .tar.gz View on GitHub

Audite - a portable mp3 player in Ruby

Audite is a portable ruby library for playing mp3 files built on libmp123 and portaudio.

Features

Usage

Audite ships an example player:

audite test.mp3

API Example

require 'audite'

player = Audite.new

player.events.on(:complete) do
  exit
end

player.events.on(:level) do |level|
  puts level
end

player.events.on(:position_change) do |pos|
  puts pos
end

player.load('test.mp3')
player.start_stream
player.forward(20) 

OSX Install

brew install portaudio
brew install mpg123

gem install audite

Debian / Ubuntu Install

apt-get install libportaudiocpp0 portaudio19-dev libmpg123-dev
gem install audite

Soundcloud2000

Audite provides the audio engine for Soundcloud2000