Skip to content

Commit

Permalink
fix: accept all supported parameters in recognize-stream (#138)
Browse files Browse the repository at this point in the history
fix: accept all supported parameters in recognize-stream
  • Loading branch information
germanattanasio authored Jul 17, 2019
2 parents 4f0c06d + 4d4b277 commit 758a252
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions speech-to-text/recognize-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ var contentType = require('./content-type');
var qs = require('../util/querystring.js');

var OPENING_MESSAGE_PARAMS_ALLOWED = [
'action',
'customization_weight',
'processing_metrics',
'processing_metrics_interval',
'audio_metrics',
'inactivity_timeout',
'timestamps',
'word_confidence',
Expand All @@ -36,17 +41,20 @@ var OPENING_MESSAGE_PARAMS_ALLOWED = [
'profanity_filter',
'smart_formatting',
'speaker_labels',
'grammar_name'
'grammar_name',
'redaction'
];

var QUERY_PARAMS_ALLOWED = [
'model',
'X-Watson-Learning-Opt-Out',
'watson-token',
'language_customization_id',
'customization_id',
'acoustic_customization_id',
'model',
'watson-token',
'access_token',
'X-Watson-Learning-Opt-Out'
'base_model_version',
'x-watson-metadata'
];

/**
Expand Down

0 comments on commit 758a252

Please sign in to comment.