@ Bhavneet Sharma 可以获得 .wav 音频文件的直方图。请找到下面编写的代码以及给定代码的输出图片。希望这会对您有所帮助。import numpy as npimport matplotlib.pyplot as pltrate, data = wavfile.read('test3.wav') # reading wave file.print ('All_data =',data)print('Number of sample in DATA =',len(data))c=data[0:499] # reading first 500 samples from data variable with contain 200965 samples.print('Number of sample in C =',len(c))plt.hist(c, bins='auto') # arguments are passed to np.histogram.plt.title("Histogram with 'auto' bins")plt.show()如果它对你有用。请不要错过投票答案。谢谢你。