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 c4dff94

Browse filesBrowse files
xinjiezJon Wayne Parrott
authored andcommitted
Fixing speech/api tests (GoogleCloudPlatform#398)
1 parent 82717de commit c4dff94
Copy full SHA for c4dff94

File tree

Expand file treeCollapse file tree

3 files changed

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

3 files changed

+5
-2
lines changed

‎scripts/prepare-testing-project.sh

Copy file name to clipboardExpand all lines: scripts/prepare-testing-project.sh
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,8 @@ gcloud preview app deploy -q datastore/api/index.yaml
4343
echo "Creating pubsub resources."
4444
gcloud alpha pubsub topics create gae-mvm-pubsub-topic
4545

46+
echo "Creating speech resources."
47+
gsutil cp speech/api/resources/audio.flac gs://$GCLOUD_PROJECT/speech/
48+
4649
echo "To finish setup, follow this link to enable APIs."
4750
echo "https://console.cloud.google.com/flows/enableapi?project=${GCLOUD_PROJECT}&apiid=bigtable.googleapis.com,bigtableadmin.googleapis.com,bigquery,cloudmonitoring,compute_component,datastore,datastore.googleapis.com,dataproc,dns,plus,pubsub,logging,storage_api,vision.googleapis.com"

‎speech/api/resources/audio.flac

Copy file name to clipboard
32.7 KB
Binary file not shown.

‎speech/api/speech_gcs_test.py

Copy file name to clipboardExpand all lines: speech/api/speech_gcs_test.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
reason=("grpc doesn't yet support python3 "
2424
'https://github.com/grpc/grpc/issues/282'))
2525
def test_main(cloud_config, capsys):
26-
input_uri = 'gs://{}/speech/clip.flac'.format(cloud_config.storage_bucket)
27-
output_uri = 'gs://{}/speech/clip.txt'.format(cloud_config.storage_bucket)
26+
input_uri = 'gs://{}/speech/audio.flac'.format(cloud_config.storage_bucket)
27+
output_uri = 'gs://{}/speech/audio.txt'.format(cloud_config.storage_bucket)
2828

2929
main(input_uri, output_uri, 'FLAC', 16000)
3030

0 commit comments

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