Skip to content

Commit 5895ab2

Browse files
authored
Merge pull request #73 from DemianD/support-acoustic-model
add support for acoustic_customization_id
2 parents 2f79942 + 201cc9e commit 5895ab2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

speech-to-text/recognize-stream.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var OPENING_MESSAGE_PARAMS_ALLOWED = [
3838
'speaker_labels'
3939
];
4040

41-
var QUERY_PARAMS_ALLOWED = ['customization_id', 'model', 'watson-token', 'access_token', 'X-Watson-Learning-Opt-Out'];
41+
var QUERY_PARAMS_ALLOWED = ['customization_id', 'acoustic_customization_id', 'model', 'watson-token', 'access_token', 'X-Watson-Learning-Opt-Out'];
4242

4343
/**
4444
* pipe()-able Node.js Duplex stream - accepts binary audio and emits text/objects in it's `data` events.
@@ -71,6 +71,7 @@ var QUERY_PARAMS_ALLOWED = ['customization_id', 'model', 'watson-token', 'access
7171
* @param {Number} [options.X-Watson-Learning-Opt-Out=false] - set to true to opt-out of allowing Watson to use this request to improve it's services
7272
* @param {Boolean} [options.smart_formatting=false] - formats numeric values such as dates, times, currency, etc.
7373
* @param {String} [options.customization_id] - Customization ID
74+
* @param {String} [options.acoustic_customization_id] - Acoustic customization ID
7475
*
7576
* @constructor
7677
*/

0 commit comments

Comments
 (0)