diff --git a/scripts/prepare-testing-project.sh b/scripts/prepare-testing-project.sh index c2b404c2b0c..48e06cc72b4 100755 --- a/scripts/prepare-testing-project.sh +++ b/scripts/prepare-testing-project.sh @@ -43,5 +43,8 @@ gcloud preview app deploy -q datastore/api/index.yaml echo "Creating pubsub resources." gcloud alpha pubsub topics create gae-mvm-pubsub-topic +echo "Creating speech resources." +gsutil cp speech/api/resources/audio.flac gs://$GCLOUD_PROJECT/speech/ + echo "To finish setup, follow this link to enable APIs." 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" diff --git a/speech/api/resources/audio.flac b/speech/api/resources/audio.flac new file mode 100644 index 00000000000..44d6f9ecd2a Binary files /dev/null and b/speech/api/resources/audio.flac differ diff --git a/speech/api/speech_gcs_test.py b/speech/api/speech_gcs_test.py index b7b4857246f..7f03ede18eb 100644 --- a/speech/api/speech_gcs_test.py +++ b/speech/api/speech_gcs_test.py @@ -23,8 +23,8 @@ reason=("grpc doesn't yet support python3 " 'https://github.com/grpc/grpc/issues/282')) def test_main(cloud_config, capsys): - input_uri = 'gs://{}/speech/clip.flac'.format(cloud_config.storage_bucket) - output_uri = 'gs://{}/speech/clip.txt'.format(cloud_config.storage_bucket) + input_uri = 'gs://{}/speech/audio.flac'.format(cloud_config.storage_bucket) + output_uri = 'gs://{}/speech/audio.txt'.format(cloud_config.storage_bucket) main(input_uri, output_uri, 'FLAC', 16000)