mynote/AudioProcess/wave_display_in_real_time.md
2018-02-12 16:27:08 +08:00

20 lines
721 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 实时读取显示波形和频谱
> 环境: 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会阻塞住
其他的就看看源码吧,就不到一百行代码,自己随便调调试试就行