Skip to content

Commit c4dff94

Browse files
xinjiezJon Wayne Parrott
authored and
Jon Wayne Parrott
committed
Fixing speech/api tests (#398)
1 parent 82717de commit c4dff94

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

scripts/prepare-testing-project.sh

Lines 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

32.7 KB
Binary file not shown.

speech/api/speech_gcs_test.py

Lines 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)