android13/external/python/google-api-python-client/scripts/readme-gen/templates/install_portaudio.tmpl.rst

36 lines
1.1 KiB
ReStructuredText

Install PortAudio
+++++++++++++++++
Install `PortAudio`_. This is required by the `PyAudio`_ library to stream
audio from your computer's microphone. PyAudio depends on PortAudio for cross-platform compatibility, and is installed differently depending on the
platform.
* For Mac OS X, you can use `Homebrew`_::
brew install portaudio
**Note**: if you encounter an error when running `pip install` that indicates
it can't find `portaudio.h`, try running `pip install` with the following
flags::
pip install --global-option='build_ext' \
--global-option='-I/usr/local/include' \
--global-option='-L/usr/local/lib' \
pyaudio
* For Debian / Ubuntu Linux::
apt-get install portaudio19-dev python-all-dev
* Windows may work without having to install PortAudio explicitly (it will get
installed with PyAudio).
For more details, see the `PyAudio installation`_ page.
.. _PyAudio: https://people.csail.mit.edu/hubert/pyaudio/
.. _PortAudio: http://www.portaudio.com/
.. _PyAudio installation:
https://people.csail.mit.edu/hubert/pyaudio/#downloads
.. _Homebrew: http://brew.sh