diff --git a/TESTING.md b/TESTING.md index 10cca80ead76..acc0add951b3 100644 --- a/TESTING.md +++ b/TESTING.md @@ -14,6 +14,22 @@ Before you can run tests locally you must have: $ curl https://sdk.cloud.google.com | bash +## System Dependencies + +Running the complete suite may require system dependencies. Most of these should be installable via typical package managers like `apt-get` and [brew](http://brew.sh/). + +For example, to install portaudio: + + brew install portaudio + +If you have trouble installing a necessary system library, try filing an issue. + +### Troubleshooting + +#### PortAudio on OS X + +See [speech/api/README.md](speech/api/README.md). + ## Preparing a project for testing Most tests require you to have an active, billing-enabled project on the diff --git a/speech/api/README.md b/speech/api/README.md index 0b13bbc898ec..00191eab38f0 100644 --- a/speech/api/README.md +++ b/speech/api/README.md @@ -80,6 +80,20 @@ The sample uses the [PyAudio][pyaudio] library to stream audio from your compute [home-page]: https://github.com/GoogleCloudPlatform/python-docs-samples [virtualenv]: https://virtualenv.pypa.io/en/stable/installation/ +### Troubleshooting + +#### PortAudio on OS X + +If you see the error + + fatal error: 'portaudio.h' file not found + +Try adding the following to your ~/.pydistutils.cfg file, +substituting in your appropriate brew Cellar directory: + + include_dirs=/usr/local/Cellar/portaudio/19.20140130/include/ + library_dirs=/usr/local/YourUsername/homebrew/Cellar/portaudio/19.20140130/lib/ + ## Run the example * To run the `speech_rest.py` sample: