import matplotlib.pyplot as plt
import numpy as np
plt.figure()
l=sig.shape[0]
x = [i/8000 for i in range(l)]
plt.plot(x, clientData, c='r')
plt.show()
下面是serviceData可视化的代码与波形图
import matplotlib.pyplot as plt
import numpy as np
plt.figure()
l=sig.shape[0]
x = [i/8000 for i in range(l)]
plt.plot(x, serviceData , c='b')
plt.show()
import matplotlib.pyplot as plt
import numpy as np
plt.figure()
l=sig.shape[0]
x = [i/8000 for i in range(l)]
plt.plot(x, serviceData, c='r', alpha=0.8)
plt.plot(x, clientData, c='b', alpha=0.8)
plt.show()
Pingback: Python分离立体声wav压缩文件的左右声道 – 最好的小安排