Skip to content

Commit

Permalink
Fix broken link in Speech README. (#3821)
Browse files Browse the repository at this point in the history
  • Loading branch information
jybaek authored and lukesneeringer committed Aug 18, 2017
1 parent df37095 commit 813b534
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
22 changes: 9 additions & 13 deletions docs/speech/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -266,19 +266,15 @@ If ``interim_results`` is set to :data:`True`, interim results
... requests = [speech.types.StreamingRecognizeRequest(
... audio_content=stream.read(),
... )]
>>> results = sample.streaming_recognize(
... config=speech.types.StreamingRecognitionConfig(
... config=config,
... iterim_results=True,
... ),
... requests,
... )
>>> for result in results:
... for alternative in result.alternatives:
... print('=' * 20)
... print('transcript: ' + alternative.transcript)
... print('confidence: ' + str(alternative.confidence))
... print('is_final:' + str(result.is_final))
>>> config = speech.types.StreamingRecognitionConfig(config=config)
>>> responses = client.streaming_recognize(config,requests)
>>> for response in responses:
... for result in response:
... for alternative in result.alternatives:
... print('=' * 20)
... print('transcript: ' + alternative.transcript)
... print('confidence: ' + str(alternative.confidence))
... print('is_final:' + str(result.is_final))
====================
'he'
None
Expand Down
4 changes: 2 additions & 2 deletions speech/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Python Client for Google Cloud Speech

- `Documentation`_

.. _Documentation: https://googlecloudplatform.github.io/google-cloud-python/latest/speech/usage.html
.. _Documentation: https://googlecloudplatform.github.io/google-cloud-python/latest/speech/

Quick Start
-----------
Expand Down Expand Up @@ -41,7 +41,7 @@ and receive a text transcription from the Cloud Speech API service.
See the ``google-cloud-python`` API `speech documentation`_ to learn how to
connect to the Google Cloud Speech API using this Client Library.

.. _speech documentation: https://googlecloudplatform.github.io/google-cloud-python/latest/speech/usage.html
.. _speech documentation: https://googlecloudplatform.github.io/google-cloud-python/latest/speech/
.. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-speech.svg
:target: https://pypi.org/project/google-cloud-speech/
.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-speech.svg
Expand Down

0 comments on commit 813b534

Please sign in to comment.