How can I decode a RAW / WAV file into a list of numbers?

How can I decode a RAW / WAV file into a list of numbers?

I need to do, since I need to create a spectrogram / waveform from an audio file.

I thought I could use a list of numbers and create an image using a charting application (e.g. gnuplot)

+1
source share
1 answer

Files A rawusually do not need to be decoded, since it is already a list of numbers (hence, "raw").

WavThe file is also a list of numbers, but with a heading with additional information (number of channels, sampling rate, etc.). You do not indicate which environment / programming language you use (which may help other people help you), but if it is c / C ++, you can use http://www.mega-nerd.com/libsndfile/

+2
source

Source: https://habr.com/ru/post/1781204/


All Articles