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)