From fb54a5cc27bd51a8f7676aeb75708ffb0471f088 Mon Sep 17 00:00:00 2001 From: Gonzalo Gasca Meza Date: Wed, 12 Jun 2019 08:30:16 -0700 Subject: [PATCH] Update Recognize.java (#1460) Update comment to match correct audio encoding --- .../src/main/java/com/example/speech/Recognize.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/speech/cloud-client/src/main/java/com/example/speech/Recognize.java b/speech/cloud-client/src/main/java/com/example/speech/Recognize.java index 0797e8211d0..bdcf1b5069b 100644 --- a/speech/cloud-client/src/main/java/com/example/speech/Recognize.java +++ b/speech/cloud-client/src/main/java/com/example/speech/Recognize.java @@ -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) @@ -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)