Skip to content

Commit beefc43

Browse files
author
Bill Prin
committed
Add notes and troubleshooting for system dips
1 parent cdb652b commit beefc43

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

TESTING.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,22 @@ Before you can run tests locally you must have:
1414

1515
$ curl https://sdk.cloud.google.com | bash
1616

17+
## System Dependencies
18+
19+
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/).
20+
21+
For example, to install portaudio:
22+
23+
brew install portaudio
24+
25+
If you have trouble installing a necessary system library, try filing an issue.
26+
27+
### Troubleshooting
28+
29+
#### PortAudio on OS X
30+
31+
See [speech/api/README.md](speech/api/README.md).
32+
1733
## Preparing a project for testing
1834

1935
Most tests require you to have an active, billing-enabled project on the

speech/api/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,20 @@ The sample uses the [PyAudio][pyaudio] library to stream audio from your compute
8080
[home-page]: https://github.com/GoogleCloudPlatform/python-docs-samples
8181
[virtualenv]: https://virtualenv.pypa.io/en/stable/installation/
8282
83+
### Troubleshooting
84+
85+
#### PortAudio on OS X
86+
87+
If you see the error
88+
89+
fatal error: 'portaudio.h' file not found
90+
91+
Try adding the following to your ~/.pydistutils.cfg file,
92+
substituting in your appropriate brew Cellar directory:
93+
94+
include_dirs=/usr/local/Cellar/portaudio/19.20140130/include/
95+
library_dirs=/usr/local/YourUsername/homebrew/Cellar/portaudio/19.20140130/lib/
96+
8397
## Run the example
8498
8599
* To run the `speech_rest.py` sample:

0 commit comments

Comments
 (0)