Skip to content

Commit 4d4b277

Browse files
committed
fix: accept all supported parameters in recognize-stream
1 parent 4f0c06d commit 4d4b277

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

speech-to-text/recognize-stream.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ var contentType = require('./content-type');
2424
var qs = require('../util/querystring.js');
2525

2626
var OPENING_MESSAGE_PARAMS_ALLOWED = [
27+
'action',
28+
'customization_weight',
29+
'processing_metrics',
30+
'processing_metrics_interval',
31+
'audio_metrics',
2732
'inactivity_timeout',
2833
'timestamps',
2934
'word_confidence',
@@ -36,17 +41,20 @@ var OPENING_MESSAGE_PARAMS_ALLOWED = [
3641
'profanity_filter',
3742
'smart_formatting',
3843
'speaker_labels',
39-
'grammar_name'
44+
'grammar_name',
45+
'redaction'
4046
];
4147

4248
var QUERY_PARAMS_ALLOWED = [
49+
'model',
50+
'X-Watson-Learning-Opt-Out',
51+
'watson-token',
4352
'language_customization_id',
4453
'customization_id',
4554
'acoustic_customization_id',
46-
'model',
47-
'watson-token',
4855
'access_token',
49-
'X-Watson-Learning-Opt-Out'
56+
'base_model_version',
57+
'x-watson-metadata'
5058
];
5159

5260
/**

0 commit comments

Comments
 (0)