from matplotlib import pyplot
import thinkdsp
wave=thinkdsp.read_wave("Oldboy.wav")
wave.plot()
pyplot.show()
我现在有个Oldboy的音频,包含四个声音
通过画图可以得到波形
目前的需求是希望能开发一个接口,读取音频后,会将音量大于某个值的声音识别为一个有效声音,
输出声音个数
这里提供了一个相近需求的例子,可惜在墙外 https://colab.research.google.com/github/AllenDowney/ThinkDSP/blob/master/code/chap01soln.ipynb ,
官网介绍 https://thinkdsp-cn.readthedocs.io/zh_CN/latest/01-sounds-and-signals.html#id15