This commit is contained in:
light
2018-02-12 16:27:08 +08:00
parent 2f93d4a638
commit ad583d960b
11 changed files with 159 additions and 2 deletions
+20
View File
@@ -0,0 +1,20 @@
# 实时读取显示波形和频谱
> 环境: Ubuntu16.04 python2.12 matplotlib
> 源码: https://github.com/lightjiang/AudioProcess
## 效果图
![img1](https://github.com/lightjiang/AudioProcess/raw/master/audio_process_1.png)
![img2](https://github.com/lightjiang/AudioProcess/raw/master/audio_process_2.png)
发 呜呜~ 音, 低频部分明显上升
![img3](https://github.com/lightjiang/AudioProcess/raw/master/audio_process_3.png)
傅里叶变换直接调用的numpy.fft工具,大概就能看个分布趋势吧
matplot动图更新频率因为帧读取长度选择而定,调高没用, read会阻塞住
其他的就看看源码吧,就不到一百行代码,自己随便调调试试就行