Popularity
1.2
Growing
Activity
7.3
Growing
45
1
4

Description

WahWah is an audio metadata reader ruby gem, it supports many popular formats including mp3(ID3 v1, v2.2, v2.3, v2.4), m4a, ogg, oga, opus, wav, flac and wma.

WahWah is written in pure ruby, and without any dependencies.

Monthly Downloads: 66
Programming language: Ruby
License: MIT License
Tags: Music And Sound     Audio     Tags     Mp3     ID3     M4a     Flac     Ogg    
Latest version: v1.1.1

WahWah alternatives and similar gems

Based on the "Music and Sound" category

Do you think we are missing an alternative of WahWah or a related project?

Add another 'Music and Sound' Gem

README

WahWah

Build Status codecov

WahWah is an audio metadata reader ruby gem, it supports many popular formats including mp3(ID3 v1, v2.2, v2.3, v2.4), m4a, ogg, oga, opus, wav, flac and wma.

WahWah is written in pure ruby, and without any dependencies.

Installation

Add this line to your application's Gemfile:

gem 'wahwah'

And then execute:

$ bundle

Or install it yourself as:

$ gem install wahwah

Compatibility

WahWah support ruby 2.5+

Usage

WahWah is so easy to use.

require 'wahwah'

# Get metadata from an audio file

tag = WahWah.open('/files/example.wav')

tag.title       # => 'song title' 
tag.artist      # => 'artist name'
tag.album       # => 'album name'
tag.albumartist # => 'albumartist name'
tag.composer    # => 'composer name'
tag.comments    # => ['comment', 'another comment']
tag.track       # => 1
tag.track_total # => 10
tag.genre       # => 'Rock'
tag.year        # => '1984'
tag.disc        # => 1
tag.disc_total  # => 2
tag.duration    # => 256 (in seconds) 
tag.bitrate     # => 192 (in kbps) 
tag.sample_rate # => 44100 (in Hz)
tag.bit_depth   # => 16 (in bits, only for PCM formats)
tag.file_size   # => 976700 (in bytes)
tag.images      # => [{ :type => :cover_front, :mime_type => 'image/jpeg', :data => 'image data binary string' }]


# Get all support formats

WahWah.support_formats # => ['mp3', 'ogg', 'oga', 'opus', 'wav', 'flac', 'wma', 'm4a']