Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Commit

Permalink
test: allow passing audio gcs uri env variable to Speech integration …
Browse files Browse the repository at this point in the history
…tests (#239)
  • Loading branch information
jameszhao00 committed Jul 16, 2020
1 parent 975fc26 commit 053e342
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -148,6 +148,10 @@ private RecognitionConfig config() {
}

public RecognitionAudio audio() {
String audio_gcs_uri = System.getenv("AUDIO_GCS_URI");
if (audio_gcs_uri != null) {
return RecognitionAudio.newBuilder().setUri(audio_gcs_uri).build();
}
return RecognitionAudio.newBuilder().setUri("gs://gapic-toolkit/hello.flac").build();
}
}

0 comments on commit 053e342

Please sign in to comment.