实现目标:
portaudio是一个开源的跨平台Audio API。它为多种声音设备提供了统一的编程接口。
安装Pyaudio
PyAudio provides Python bindings for PortAudio, the cross-platform audio I/O
library. With PyAudio, you can easily use Python to play and record audio on a
variety of platforms, such as GNU/Linux, Microsoft Windows, and Apple Mac OS X. http://people.csail.mit.edu/hubert/pyaudio/