Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
ruby-audioinfo glues together various audio libraries and presents a single API to the developer. Currently, supported formats are: mp3, ogg, mpc, ape, wma, flac, aac, mp4, m4a.
Ruby

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.hgignore
.hgtags
History.txt
Manifest.txt
README.rdoc
Rakefile
ruby-audioinfo.gemspec

README.rdoc

ruby-audioinfo

by Guillaume Pierronnet

DESCRIPTION:

ruby-audioinfo glue together various audio ruby libraries and presents a unified API to the developper. Currently, supported formats are: mp3, ogg, mpc, ape, wma, flac, aac, mp4, m4a.

FEATURES/PROBLEMS:

  • beta write support for mp3 and ogg tags (other to be written)

  • unified support for tag text-encoding. AudioInfo.new(“file”, “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.

SYNOPSIS:

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

REQUIREMENTS:

INSTALL:

  • sudo gem install ruby-audioinfo

LICENSE:

Ruby

Something went wrong with that request. Please try again.