From ff3fc805450b942422c28e3a54e3fbf82361591c Mon Sep 17 00:00:00 2001 From: puneith Date: Wed, 13 Jul 2016 14:40:06 -0700 Subject: [PATCH 01/12] Update README.md --- speech/api/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/speech/api/README.md b/speech/api/README.md index 2d9028ad6037..8939771b7746 100644 --- a/speech/api/README.md +++ b/speech/api/README.md @@ -38,6 +38,21 @@ See the [Cloud Platform Auth Guide](https://cloud.google.com/docs/authentication#developer_workflow) for more information. +### Install pip + +Install `pip` if not already installed from [here][pip-here] + +### Install virtualenv + +Install `virtualenv` if not already installed from [here][virtualenv] + +### Create isolated Python environment + +``` +virtualenv ~/speechsamples +source ~/speechsamples/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]. @@ -57,6 +72,8 @@ The sample uses the [PyAudio][pyaudio] library to stream audio from your compute [pyaudio]: https://people.csail.mit.edu/hubert/pyaudio/ [portaudio]: http://www.portaudio.com/ [pyaudio-install]: https://people.csail.mit.edu/hubert/pyaudio/#downloads +[pip-here]: https://pip.pypa.io/en/stable/installing/ +[virtualenv]: https://virtualenv.pypa.io/en/stable/installation/ ## Run the example From 6b7b3b859c5b1f0577e476d71ee8d0abb2564eab Mon Sep 17 00:00:00 2001 From: puneith Date: Wed, 13 Jul 2016 14:41:59 -0700 Subject: [PATCH 02/12] Update README.md --- speech/api/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/speech/api/README.md b/speech/api/README.md index 8939771b7746..2fb865726ed6 100644 --- a/speech/api/README.md +++ b/speech/api/README.md @@ -40,11 +40,11 @@ for more information. ### Install pip -Install `pip` if not already installed from [here][pip-here] +Install [pip][pip] if not already installed ### Install virtualenv -Install `virtualenv` if not already installed from [here][virtualenv] +Install [virtualenv][virtualenv] if not already installed ### Create isolated Python environment From 7408439da8c3cb4415809d2d616cb6e587caac7e Mon Sep 17 00:00:00 2001 From: puneith Date: Wed, 13 Jul 2016 14:42:14 -0700 Subject: [PATCH 03/12] Update README.md --- speech/api/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speech/api/README.md b/speech/api/README.md index 2fb865726ed6..29842d676ea8 100644 --- a/speech/api/README.md +++ b/speech/api/README.md @@ -72,7 +72,7 @@ The sample uses the [PyAudio][pyaudio] library to stream audio from your compute [pyaudio]: https://people.csail.mit.edu/hubert/pyaudio/ [portaudio]: http://www.portaudio.com/ [pyaudio-install]: https://people.csail.mit.edu/hubert/pyaudio/#downloads -[pip-here]: https://pip.pypa.io/en/stable/installing/ +[pip]: https://pip.pypa.io/en/stable/installing/ [virtualenv]: https://virtualenv.pypa.io/en/stable/installation/ ## Run the example From 58050b22aa2beb8ab24f03d5fcd7386161d1886d Mon Sep 17 00:00:00 2001 From: puneith Date: Wed, 13 Jul 2016 14:43:30 -0700 Subject: [PATCH 04/12] Update README.md --- speech/api/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/speech/api/README.md b/speech/api/README.md index 29842d676ea8..0e1d78a28f3c 100644 --- a/speech/api/README.md +++ b/speech/api/README.md @@ -106,3 +106,9 @@ The sample uses the [PyAudio][pyaudio] library to stream audio from your compute Note that the `speech_streaming.py` sample does not yet support python 3, as the upstream `grpcio` library's support is [not yet complete](https://github.com/grpc/grpc/issues/282). + +### Deactivate virtualenv + +``` +deactivate +``` From 046f3a22e5580f120db60c2972661934e377d4f8 Mon Sep 17 00:00:00 2001 From: puneith Date: Wed, 13 Jul 2016 16:10:37 -0700 Subject: [PATCH 05/12] Update README.md --- speech/api/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/speech/api/README.md b/speech/api/README.md index 0e1d78a28f3c..21ec47194e8b 100644 --- a/speech/api/README.md +++ b/speech/api/README.md @@ -49,8 +49,8 @@ Install [virtualenv][virtualenv] if not already installed ### Create isolated Python environment ``` -virtualenv ~/speechsamples -source ~/speechsamples/bin/activate +virtualenv speechsamples +source speechsamples/bin/activate ``` ### Install the dependencies From 5df2d53b19f61fcbc3160d5f515711609466b5ad Mon Sep 17 00:00:00 2001 From: puneith Date: Wed, 13 Jul 2016 17:36:49 -0700 Subject: [PATCH 06/12] Update README.md --- speech/api/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/speech/api/README.md b/speech/api/README.md index 21ec47194e8b..e50a6069e56a 100644 --- a/speech/api/README.md +++ b/speech/api/README.md @@ -38,6 +38,10 @@ See the [Cloud Platform Auth Guide](https://cloud.google.com/docs/authentication#developer_workflow) for more information. +### Download code + +To download code or clone the repo go [here][home-page] + ### Install pip Install [pip][pip] if not already installed @@ -74,6 +78,7 @@ The sample uses the [PyAudio][pyaudio] library to stream audio from your compute [pyaudio-install]: https://people.csail.mit.edu/hubert/pyaudio/#downloads [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 ## Run the example From bde8b4e9de32cce8f30190a8916c336992739954 Mon Sep 17 00:00:00 2001 From: puneith Date: Wed, 13 Jul 2016 17:37:23 -0700 Subject: [PATCH 07/12] Update README.md --- speech/api/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speech/api/README.md b/speech/api/README.md index e50a6069e56a..d712a0e2dee6 100644 --- a/speech/api/README.md +++ b/speech/api/README.md @@ -40,7 +40,7 @@ for more information. ### Download code -To download code or clone the repo go [here][home-page] +To download code or clone the repo go [here][home-page] and then navigate appropriately. ### Install pip From 51c5f41146f33b55a0ecfd3ea4f00d352b927ed5 Mon Sep 17 00:00:00 2001 From: puneith Date: Wed, 13 Jul 2016 19:01:56 -0700 Subject: [PATCH 08/12] Update README.md --- speech/api/README.md | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/speech/api/README.md b/speech/api/README.md index d712a0e2dee6..17820bedeb9d 100644 --- a/speech/api/README.md +++ b/speech/api/README.md @@ -38,20 +38,17 @@ See the [Cloud Platform Auth Guide](https://cloud.google.com/docs/authentication#developer_workflow) for more information. -### Download code +### Setup -To download code or clone the repo go [here][home-page] and then navigate appropriately. +Before running these samples perform the setup steps: -### Install pip - -Install [pip][pip] if not already installed - -### Install virtualenv - -Install [virtualenv][virtualenv] if not already installed - -### Create isolated Python environment +1. Clone this repo +``` +git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git +cd python-docs-samples/speech/api +``` +2. Create virtualenv ``` virtualenv speechsamples source speechsamples/bin/activate From 4777f41b10074efec7844d166e4ecc37fe32e31f Mon Sep 17 00:00:00 2001 From: puneith Date: Wed, 13 Jul 2016 19:03:12 -0700 Subject: [PATCH 09/12] Update README.md --- speech/api/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/speech/api/README.md b/speech/api/README.md index 17820bedeb9d..e723787132c4 100644 --- a/speech/api/README.md +++ b/speech/api/README.md @@ -42,13 +42,13 @@ for more information. Before running these samples perform the setup steps: -1. Clone this repo +* Clone this repo ``` git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git cd python-docs-samples/speech/api ``` -2. Create virtualenv +* Create virtualenv ``` virtualenv speechsamples source speechsamples/bin/activate From 13be9d66d16842d70b5dec22b08407c7290202a3 Mon Sep 17 00:00:00 2001 From: puneith Date: Wed, 13 Jul 2016 19:03:46 -0700 Subject: [PATCH 10/12] Update README.md --- speech/api/README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/speech/api/README.md b/speech/api/README.md index e723787132c4..16a1cb8eba6e 100644 --- a/speech/api/README.md +++ b/speech/api/README.md @@ -43,16 +43,16 @@ for more information. Before running these samples perform the setup steps: * Clone this repo -``` -git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git -cd python-docs-samples/speech/api -``` + ``` + git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git + cd python-docs-samples/speech/api + ``` * Create virtualenv -``` -virtualenv speechsamples -source speechsamples/bin/activate -``` + ``` + virtualenv speechsamples + source speechsamples/bin/activate + ``` ### Install the dependencies From 667c85775161c36c61931a12ff6eb61c0dd2ccd5 Mon Sep 17 00:00:00 2001 From: puneith Date: Wed, 13 Jul 2016 19:04:21 -0700 Subject: [PATCH 11/12] Update README.md --- speech/api/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speech/api/README.md b/speech/api/README.md index 16a1cb8eba6e..e608e0132b48 100644 --- a/speech/api/README.md +++ b/speech/api/README.md @@ -40,7 +40,7 @@ for more information. ### Setup -Before running these samples perform the setup steps: +Before running these samples perform the steps: * Clone this repo ``` From c84263130baf3abeb3134cade67027ee10d739db Mon Sep 17 00:00:00 2001 From: puneith Date: Wed, 13 Jul 2016 19:45:24 -0700 Subject: [PATCH 12/12] Update README.md --- speech/api/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/speech/api/README.md b/speech/api/README.md index e608e0132b48..3aac392d0893 100644 --- a/speech/api/README.md +++ b/speech/api/README.md @@ -50,8 +50,8 @@ Before running these samples perform the steps: * Create virtualenv ``` - virtualenv speechsamples - source speechsamples/bin/activate + virtualenv env + source env/bin/activate ``` ### Install the dependencies