Skip to content

Commit a02abf4

Browse files
gogascachingor13
authored andcommitted
samples: Update Recognize.java (#1460)
Update comment to match correct audio encoding
1 parent a3c36cd commit a02abf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

speech/snippets/src/main/java/com/example/speech/Recognize.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ public static void asyncRecognizeWords(String gcsUri) throws Exception {
287287
// Instantiates a client with GOOGLE_APPLICATION_CREDENTIALS
288288
try (SpeechClient speech = SpeechClient.create()) {
289289

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

339-
// Configure remote file request for Linear16
339+
// Configure remote file request for FLAC
340340
RecognitionConfig config =
341341
RecognitionConfig.newBuilder()
342342
.setEncoding(AudioEncoding.FLAC)

0 commit comments

Comments
 (0)