开发者

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

开发者 https://www.devze.com 2023-01-31 02:42 出处:网络
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 the audio file.

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 the audio file.

开发者_如何学运维

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


A raw files usually don't need any decoding, since it is already a list of numbers (hence 'raw').

Wav file is also a list of numbers, but with a header with extra information (number of channels, sampling rate, etc.). You don't mention what environment/programming language you use (which might help other people to help you), but if it is c/c++ you can use http://www.mega-nerd.com/libsndfile/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号