Skip to content

Commit

Permalink
Add notes and troubleshooting for system dips
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Prin committed Aug 17, 2016
1 parent cdb652b commit beefc43
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
16 changes: 16 additions & 0 deletions TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 14 additions & 0 deletions speech/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit beefc43

Please sign in to comment.