Skip to content

Latest commit

 

History

History
51 lines (31 loc) · 758 Bytes

README.md

File metadata and controls

51 lines (31 loc) · 758 Bytes

Jacked

The gem that gets information from audio files.

Build Status

Installation

Add this line to your application's Gemfile:

gem 'jacked'

And then execute:

$ bundle

Or install it yourself as:

$ gem install jacked

Usage

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