Skip to content

Commit 714eae8

Browse files
authored
Merge pull request #420 from GoogleCloudPlatform/virtual_env_inst
Virtual env inst
2 parents 0e1e250 + c842631 commit 714eae8

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

speech/api/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,22 @@ See the
3838
[Cloud Platform Auth Guide](https://cloud.google.com/docs/authentication#developer_workflow)
3939
for more information.
4040

41+
### Setup
42+
43+
Before running these samples perform the steps:
44+
45+
* Clone this repo
46+
```
47+
git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git
48+
cd python-docs-samples/speech/api
49+
```
50+
51+
* Create virtualenv
52+
```
53+
virtualenv env
54+
source env/bin/activate
55+
```
56+
4157
### Install the dependencies
4258
4359
The sample uses the [PyAudio][pyaudio] library to stream audio from your computer's microphone. PyAudio depends on [PortAudio][portaudio], which may need to be compiled when you install PyAudio. If you run into compilation issues that mention PortAudio, you may have to [install some dependencies][pyaudio-install].
@@ -57,6 +73,9 @@ The sample uses the [PyAudio][pyaudio] library to stream audio from your compute
5773
[pyaudio]: https://people.csail.mit.edu/hubert/pyaudio/
5874
[portaudio]: http://www.portaudio.com/
5975
[pyaudio-install]: https://people.csail.mit.edu/hubert/pyaudio/#downloads
76+
[pip]: https://pip.pypa.io/en/stable/installing/
77+
[virtualenv]: https://virtualenv.pypa.io/en/stable/installation/
78+
[home-page]: https://github.com/GoogleCloudPlatform/python-docs-samples
6079
6180
## Run the example
6281
@@ -89,3 +108,9 @@ The sample uses the [PyAudio][pyaudio] library to stream audio from your compute
89108
Note that the `speech_streaming.py` sample does not yet support python 3, as
90109
the upstream `grpcio` library's support is [not yet
91110
complete](https://github.com/grpc/grpc/issues/282).
111+
112+
### Deactivate virtualenv
113+
114+
```
115+
deactivate
116+
```

0 commit comments

Comments
 (0)