Skip to content

Commit 8d607cb

Browse files
nnegreykurtisvg
authored andcommitted
Add model selection to streaming sample (GoogleCloudPlatform#1073)
1 parent a6f4093 commit 8d607cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

speech/cloud-client/src/main/java/com/example/speech/Recognize.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ public static void streamingRecognizeFile(String fileName) throws Exception, IOE
349349
.setEncoding(AudioEncoding.LINEAR16)
350350
.setLanguageCode("en-US")
351351
.setSampleRateHertz(16000)
352+
.setModel("default")
352353
.build();
353354
StreamingRecognitionConfig config = StreamingRecognitionConfig.newBuilder()
354355
.setConfig(recConfig)

0 commit comments

Comments
 (0)