Generate waveform data in json format from mp3 file
go get github.com/styner32/go-wave-to-json
This requires sox
.
install it via brew
or apt
$ brew install sox
or
$ sudo apt-get install sox libsox-fmt-mp3
waveform.Generate("source.mp3", "result.json")