Skip to content

Commit

Permalink
Disable recongition timeout in BatchRecognizer
Browse files Browse the repository at this point in the history
  • Loading branch information
lasp73 committed Nov 29, 2018
1 parent 84b3c6b commit 72955f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class BatchRecognizer {

public BatchRecognizer(String serverUrl, String user, String pwd)
throws URISyntaxException, IOException, RecognitionException {
RecognitionConfig config = RecognitionConfig.builder().maxSentences(1).continuousMode(true).build();
RecognitionConfig config = RecognitionConfig.builder().maxSentences(1).continuousMode(true).recognitionTimeoutEnabled(false).build();
recognizer = SpeechRecognizer.builder().serverURL(serverUrl).userAgent("client=JavaSE;app=RecognizeBatch")
.credentials(user, pwd).recogConfig(config)
.addListener(new SimpleRecognizerListener() {
Expand Down

0 comments on commit 72955f7

Please sign in to comment.