Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bfcc9dc

Browse filesBrowse files
authored
Move mic samples out of cloud-client so that cloud-client samples can be run in cloud shell (GoogleCloudPlatform#2062)
1 parent 49125ba commit bfcc9dc
Copy full SHA for bfcc9dc

File tree

Expand file treeCollapse file tree

8 files changed

+109
-2
lines changed
Filter options
Expand file treeCollapse file tree

8 files changed

+109
-2
lines changed

‎speech/cloud-client/requirements.txt

Copy file name to clipboard
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
google-cloud-speech==0.36.3
2-
pyaudio==0.2.11
3-
six==1.12.0

‎speech/microphone/README.rst

Copy file name to clipboard
+82Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
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/

‎speech/microphone/README.rst.in

Copy file name to clipboard
+24Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This file is used to generate README.rst
2+
3+
product:
4+
name: Google Cloud Speech API
5+
short_name: Cloud Speech API
6+
url: https://cloud.google.com/speech/docs/
7+
description: >
8+
The `Google Cloud Speech API`_ enables easy integration of Google speech
9+
recognition technologies into developer applications. Send audio and receive
10+
a text transcription from the Cloud Speech API service.
11+
12+
13+
- See the `migration guide`_ for information about migrating to Python client library v0.27.
14+
15+
16+
.. _migration guide: https://cloud.google.com/speech/docs/python-client-migration
17+
18+
setup:
19+
- auth
20+
- install_deps
21+
22+
cloud_client_library: true
23+
24+
folder: speech/microphone

‎speech/microphone/requirements.txt

Copy file name to clipboard
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
google-cloud-speech==0.36.3
2+
pyaudio==0.2.11
3+
six==1.12.0

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.