Skip to content

Instantly share code, notes, and snippets.

@sausheong
Created December 29, 2019 02:39
Show Gist options
  • Select an option

  • Save sausheong/9bb1ce79c83f3fe3b0841c3db3e8488c to your computer and use it in GitHub Desktop.

Select an option

Save sausheong/9bb1ce79c83f3fe3b0841c3db3e8488c to your computer and use it in GitHub Desktop.
waveform
reader = Audio::MPEG::Decoder.new
File.open('mrt_closing.mp3', 'rb') do |input|
File.open('out.wav', 'wb') do |output|
reader.decode(input, output)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment