- Add Ruby 1.9 support
- Remove the
system()
calls :-) - Do some refactoring of the code
ruby-audioinfo glues together various audio ruby libraries to present an unified API to the developer. Currently, supported formats are:
mp3, ogg, mpc, ape, wma, flac, aac, mp4, m4a.
- beta write support for mp3 and ogg tags (other to be written)
- unified support for tag text-encoding.
AudioInfo.new('file.ext', 'utf-8')
and you're done! - support for MusicBrainz tags
AudioInfo::Album
class included, which gives an unified way to manage an album in a given directory.
AudioInfo.open("audio_file.one_of_supported_extensions") do |info|
info.artist # or info["artist"]
info.title # or info["title"]
info.length # playing time of the file
info.bitrate # average bitrate
info.to_h # { "artist" => "artist", "title" => "title", etc... }
end
sudo gem install vjt-ruby-audioinfo
Ruby's