Skip to content

Commit a9effb3

Browse files
committed
STT: fix bug with setting params with createRecognizeStream, default continuous to true to avoid issues
Fixes #202
1 parent ec00ce8 commit a9effb3

File tree

1 file changed

+2
-2
lines changed
  • services/speech_to_text

1 file changed

+2
-2
lines changed

services/speech_to_text/v1.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,9 +365,9 @@ function RecognizeStream(options){
365365
// todo: confirm the mixed underscores/hyphens and/or get it fixed
366366
action: 'start',
367367
'content-type': 'audio/wav', // todo: try to determine content-type from the file extension if available
368-
'continuous': false,
368+
'continuous': true,
369369
'interim_results': true
370-
}, pick(options, [PARAMS_ALLOWED]));
370+
}, pick(options, PARAMS_ALLOWED));
371371

372372
var closingMessage = {action: 'stop'};
373373

0 commit comments

Comments
 (0)