The documentation of scipy.io.wavfile.read
says that it returns sample rate and data. But what does data actually mean here in case of .wav
files?
Can anyone let me know in layman terms how that data is prepared?
PS. I read somewhere that it means amplitude? Is what I read correct? If yes, how is that amplitude calculated and returned by scipy.io.wavfile.read
?
scipy.io.wavfile.read
is a convenience wrapper to decompose the.wav
file into a header and the data contained in the file.From the source code
Simplified code from the source:
The data itself is usually PCM represented sound pressure levels in successive frames for the different channels. The sampling rate returned by
scipy.io.wavfile.read
is necessary to determine how many frames represent a second.A good explanation of the
.wav
format is offered by this question.scipy doesn't calculate much on its own.