Skip to content

Commit

Permalink
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 nnegrey committed Jun 12, 2019
1 parent c89f2a7 commit fb54a5c
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 fb54a5c

Please sign in to comment.