python wav文件与wave bytes的转化
# -*- coding: utf-8 -*-import waveimport pylab as plimport numpy as np# 打开WAV文档f = wave.open(r"E:\aryaxyang\test1.wav", "rb")# 读取格式信息# (nchannels, sampwidth, framerate, nframes, comptype, compname)params = f.getparams()nchannels,