Skip to content
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions speech/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,17 @@ Before running these samples perform the steps:
cd python-docs-samples/speech/api
```

* Create virtualenv
* Create [virtualenv][virtualenv]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create a [virtualenv][virtualenv]

```
virtualenv env
source env/bin/activate
```

### Install the dependencies

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].
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.

* You may run into compilation issues when doing pip install below, in which case [install some dependencies][pyaudio-install].
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...when doing the pip install below, in which case you may need to [install some dependencies][pyaudio-install].


* If you're running the `speech_rest.py` sample:

Expand All @@ -76,6 +78,7 @@ The sample uses the [PyAudio][pyaudio] library to stream audio from your compute
[pip]: https://pip.pypa.io/en/stable/installing/
[virtualenv]: https://virtualenv.pypa.io/en/stable/installation/
[home-page]: https://github.com/GoogleCloudPlatform/python-docs-samples
[virtualenv]: https://virtualenv.pypa.io/en/stable/installation/

## Run the example

Expand Down