Skip to content

Commit

Permalink
samples: Update Recognize.java (#1460)
Browse files Browse the repository at this point in the history
Update comment to match correct audio encoding
  • Loading branch information
gogasca authored and chingor13 committed Aug 15, 2020
1 parent a3c36cd commit a02abf4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ public static void asyncRecognizeWords(String gcsUri) throws Exception {
// Instantiates a client with GOOGLE_APPLICATION_CREDENTIALS
try (SpeechClient speech = SpeechClient.create()) {

// Configure remote file request for Linear16
// Configure remote file request for FLAC
RecognitionConfig config =
RecognitionConfig.newBuilder()
.setEncoding(AudioEncoding.FLAC)
Expand Down Expand Up @@ -336,7 +336,7 @@ public static void asyncRecognizeGcs(String gcsUri) throws Exception {
// Instantiates a client with GOOGLE_APPLICATION_CREDENTIALS
try (SpeechClient speech = SpeechClient.create()) {

// Configure remote file request for Linear16
// Configure remote file request for FLAC
RecognitionConfig config =
RecognitionConfig.newBuilder()
.setEncoding(AudioEncoding.FLAC)
Expand Down

0 comments on commit a02abf4

Please sign in to comment.