|
| 1 | +.. This file is automatically generated. Do not edit this file directly. |
| 2 | +
|
| 3 | +Google Cloud Speech API Python Samples |
| 4 | +=============================================================================== |
| 5 | + |
| 6 | +.. image:: https://gstatic.com/cloudssh/images/open-btn.png |
| 7 | + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=speech/microphone/README.rst |
| 8 | + |
| 9 | + |
| 10 | +This directory contains samples for Google Cloud Speech API. The `Google Cloud Speech API`_ enables easy integration of Google speech recognition technologies into developer applications. Send audio and receive a text transcription from the Cloud Speech API service. |
| 11 | + |
| 12 | +- See the `migration guide`_ for information about migrating to Python client library v0.27. |
| 13 | + |
| 14 | +.. _migration guide: https://cloud.google.com/speech/docs/python-client-migration |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | +.. _Google Cloud Speech API: https://cloud.google.com/speech/docs/ |
| 20 | + |
| 21 | +Setup |
| 22 | +------------------------------------------------------------------------------- |
| 23 | + |
| 24 | + |
| 25 | +Authentication |
| 26 | +++++++++++++++ |
| 27 | + |
| 28 | +This sample requires you to have authentication setup. Refer to the |
| 29 | +`Authentication Getting Started Guide`_ for instructions on setting up |
| 30 | +credentials for applications. |
| 31 | + |
| 32 | +.. _Authentication Getting Started Guide: |
| 33 | + https://cloud.google.com/docs/authentication/getting-started |
| 34 | + |
| 35 | +Install Dependencies |
| 36 | +++++++++++++++++++++ |
| 37 | + |
| 38 | +#. Clone python-docs-samples and change directory to the sample directory you want to use. |
| 39 | + |
| 40 | + .. code-block:: bash |
| 41 | +
|
| 42 | + $ git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git |
| 43 | +
|
| 44 | +#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions. |
| 45 | + |
| 46 | + .. _Python Development Environment Setup Guide: |
| 47 | + https://cloud.google.com/python/setup |
| 48 | + |
| 49 | +#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+. |
| 50 | + |
| 51 | + .. code-block:: bash |
| 52 | +
|
| 53 | + $ virtualenv env |
| 54 | + $ source env/bin/activate |
| 55 | +
|
| 56 | +#. Install the dependencies needed to run the samples. |
| 57 | + |
| 58 | + .. code-block:: bash |
| 59 | +
|
| 60 | + $ pip install -r requirements.txt |
| 61 | +
|
| 62 | +.. _pip: https://pip.pypa.io/ |
| 63 | +.. _virtualenv: https://virtualenv.pypa.io/ |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | +The client library |
| 68 | +------------------------------------------------------------------------------- |
| 69 | + |
| 70 | +This sample uses the `Google Cloud Client Library for Python`_. |
| 71 | +You can read the documentation for more details on API usage and use GitHub |
| 72 | +to `browse the source`_ and `report issues`_. |
| 73 | + |
| 74 | +.. _Google Cloud Client Library for Python: |
| 75 | + https://googlecloudplatform.github.io/google-cloud-python/ |
| 76 | +.. _browse the source: |
| 77 | + https://github.com/GoogleCloudPlatform/google-cloud-python |
| 78 | +.. _report issues: |
| 79 | + https://github.com/GoogleCloudPlatform/google-cloud-python/issues |
| 80 | + |
| 81 | + |
| 82 | +.. _Google Cloud SDK: https://cloud.google.com/sdk/ |
0 commit comments