• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Install PortAudio
2+++++++++++++++++
3
4Install `PortAudio`_. This is required by the `PyAudio`_ library to stream
5audio from your computer's microphone. PyAudio depends on PortAudio for cross-platform compatibility, and is installed differently depending on the
6platform.
7
8* For Mac OS X, you can use `Homebrew`_::
9
10      brew install portaudio
11
12  **Note**: if you encounter an error when running `pip install` that indicates
13  it can't find `portaudio.h`, try running `pip install` with the following
14  flags::
15
16      pip install --global-option='build_ext' \
17          --global-option='-I/usr/local/include' \
18          --global-option='-L/usr/local/lib' \
19          pyaudio
20
21* For Debian / Ubuntu Linux::
22
23      apt-get install portaudio19-dev python-all-dev
24
25* Windows may work without having to install PortAudio explicitly (it will get
26  installed with PyAudio).
27
28For more details, see the `PyAudio installation`_ page.
29
30
31.. _PyAudio: https://people.csail.mit.edu/hubert/pyaudio/
32.. _PortAudio: http://www.portaudio.com/
33.. _PyAudio installation:
34  https://people.csail.mit.edu/hubert/pyaudio/#downloads
35.. _Homebrew: http://brew.sh
36