0.0
No commit activity in last 3 years
No release in over 3 years
Convert audio file in json format
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

~> 2.0
~> 0.19
 Project Readme

wave-to-json

generate a waveform in json format Build Status

Installation

wave-to-json require sox.

install it via brew or apt

brew install sox

or

sudo apt-get install sox libsox-fmt-mp3

Usage by examples

convert mp3 file to json format

WaveToJson.new(SOURCE, DESTINATION, OPTIONS).generate
  • Both channels
WaveToJson.new('test.mp3', 'test.json').generate
  • Left channel

Generate from left channel

WaveToJson.new('test.mp3', 'test.json', channel: :left).generate
  • Right channel

Generate json format from right channel

WaveToJson.new('test.mp3', 'test.json', channel: :right).generate

CLI Usage

  $ wave_to_json generate song.mp3 waveform.json