The gem that gets information from audio files.
Add this line to your application's Gemfile:
gem 'jacked'
And then execute:
$ bundle
Or install it yourself as:
$ gem install jacked
To initialize write:
jacked = Jacked.create("path/to/file")
to get the file_type
jacked.file_type #=> audio
to get the file_format
jacked.file_format #=> mp3, wav, etc...
to get the duration
jacked.duration #=> in seconds. eg.: 234
to get the waveform (in json format)
jacked.waveform #=> get a json with: width, height and data