When reading a audio file using something such as
rate, wavData = scipy.io.wavfile.read('test.wav')
what exactly does the data inside of wavData
represent?
wavData is an array of numbers each representing a single sample of the audio signal. The samples are snapshots of the audio amplitude spaced evenly in time. So if your rate is returned as 48000 then the first 48000 elements of wavData would be 1 second worth of the audio signal. For more information read about PCM on wikipedia: https://en.wikipedia.org/wiki/Pulse-code_modulation.
来源:https://stackoverflow.com/questions/33640274/what-exactly-is-the-data-returned-when-reading-a-wav-file