| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8f14c7e commit 4faf346
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1 +1 @@ | |||
| 1 | - google-cloud-speech==0.25.0 | ||
| 1 | + google-cloud-speech==0.25.1 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,7 +19,7 @@ | |||
| 19 | 19 | ||
| 20 | 20 | Example usage: | |
| 21 | 21 | python transcribe_async.py resources/audio.raw | |
| 22 | - python transcribe_async.py gs://cloud-samples-tests/speech/brooklyn.raw | ||
| 22 | + python transcribe_async.py gs://cloud-samples-tests/speech/brooklyn.flac | ||
| 23 | 23 | """ | |
| 24 | 24 | ||
| 25 | 25 | import argparse | |
@@ -67,7 +67,7 @@ def transcribe_gcs(gcs_uri): | |||
| 67 | 67 | audio_sample = speech_client.sample( | |
| 68 | 68 | content=None, | |
| 69 | 69 | source_uri=gcs_uri, | |
| 70 | - encoding='LINEAR16', | ||
| 70 | + encoding='FLAC', | ||
| 71 | 71 | sample_rate_hertz=16000) | |
| 72 | 72 | ||
| 73 | 73 | operation = audio_sample.long_running_recognize('en-US') | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -29,7 +29,7 @@ def test_transcribe(capsys): | |||
| 29 | 29 | ||
| 30 | 30 | def test_transcribe_gcs(capsys): | |
| 31 | 31 | transcribe_async.transcribe_gcs( | |
| 32 | - 'gs://python-docs-samples-tests/speech/audio.raw') | ||
| 32 | + 'gs://python-docs-samples-tests/speech/audio.flac') | ||
| 33 | 33 | out, err = capsys.readouterr() | |
| 34 | 34 | ||
| 35 | 35 | assert re.search(r'how old is the Brooklyn Bridge', out, re.DOTALL | re.I) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments