FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Speech version bump by gguuss · Pull Request #899 · GoogleCloudPlatform/python-docs-samples · GitHub

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (2) .txt  (1) All 2 file types selected
Only manifest files
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
2 changes: 1 addition & 1 deletion speech/cloud-client/requirements.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-cloud-speech==0.25.0
google-cloud-speech==0.25.1
4 changes: 2 additions & 2 deletions speech/cloud-client/transcribe_async.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

Example usage:
python transcribe_async.py resources/audio.raw
python transcribe_async.py gs://cloud-samples-tests/speech/brooklyn.raw
python transcribe_async.py gs://cloud-samples-tests/speech/brooklyn.flac
"""

import argparse
Expand Down Expand Up @@ -67,7 +67,7 @@ def transcribe_gcs(gcs_uri):
audio_sample = speech_client.sample(
content=None,
source_uri=gcs_uri,
encoding='LINEAR16',
encoding='FLAC',
sample_rate_hertz=16000)

operation = audio_sample.long_running_recognize('en-US')
Expand Down
2 changes: 1 addition & 1 deletion speech/cloud-client/transcribe_async_test.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_transcribe(capsys):

def test_transcribe_gcs(capsys):
transcribe_async.transcribe_gcs(
'gs://python-docs-samples-tests/speech/audio.raw')
'gs://python-docs-samples-tests/speech/audio.flac')
out, err = capsys.readouterr()

assert re.search(r'how old is the Brooklyn Bridge', out, re.DOTALL | re.I)

Back | FazBrowse Home | New Git URL