Skip to content

Commit

Permalink
samples: Add model selection to streaming sample (#1073)
Browse files Browse the repository at this point in the history
  • Loading branch information
nnegrey authored and chingor13 committed Aug 15, 2020
1 parent 16cd359 commit c9faebc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ public static void streamingRecognizeFile(String fileName) throws Exception, IOE
.setEncoding(AudioEncoding.LINEAR16)
.setLanguageCode("en-US")
.setSampleRateHertz(16000)
.setModel("default")
.build();
StreamingRecognitionConfig config = StreamingRecognitionConfig.newBuilder()
.setConfig(recConfig)
Expand Down

0 comments on commit c9faebc

Please sign in to comment.