File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,9 @@ const OPENING_MESSAGE_PARAMS_ALLOWED = [
36
36
'word_alternatives_threshold' ,
37
37
'profanity_filter' ,
38
38
'smart_formatting' ,
39
- 'speaker_labels'
39
+ 'speaker_labels' ,
40
+ 'grammar_name' ,
41
+ 'redaction'
40
42
] ;
41
43
42
44
const QUERY_PARAMS_ALLOWED = [
@@ -45,9 +47,7 @@ const QUERY_PARAMS_ALLOWED = [
45
47
'watson-token' ,
46
48
'language_customization_id' ,
47
49
'customization_id' ,
48
- 'acoustic_customization_id' ,
49
- 'grammar_name' ,
50
- 'redaction'
50
+ 'acoustic_customization_id'
51
51
] ;
52
52
53
53
interface RecognizeStream extends Duplex {
@@ -506,7 +506,7 @@ class RecognizeStream extends Duplex {
506
506
this . socket . _client . response . headers [ 'x-global-transaction-id' ]
507
507
) ;
508
508
} else {
509
- this . on ( 'connect ' , ( ) =>
509
+ this . on ( 'open ' , ( ) =>
510
510
resolve (
511
511
this . socket . _client . response . headers [ 'x-global-transaction-id' ]
512
512
)
You can’t perform that action at this time.
0 commit comments