Skip to content

Commit 89c05a2

Browse files
committed
Merge branch 'master' into 4831/recognize-stream-comments
2 parents 1342668 + 95d14c0 commit 89c05a2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/recognize-stream.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ const QUERY_PARAMS_ALLOWED = [
4343
'model',
4444
'X-Watson-Learning-Opt-Out',
4545
'watson-token',
46-
'customization_id'
46+
'customization_id',
47+
'acoustic_customization_id'
4748
];
4849

4950
interface RecognizeStream extends Duplex {
@@ -111,6 +112,7 @@ class RecognizeStream extends Duplex {
111112
* @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
112113
* @param {Boolean} [options.smart_formatting=false] - formats numeric values such as dates, times, currency, etc.
113114
* @param {String} [options.customization_id] - Customization ID
115+
* @param {String} [options.acoustic_customization_id] - Acoustic customization ID
114116
* @param {IamTokenManagerV1} [options.token_manager] - Token manager for authenticating with IAM
115117
* @param {string} [options.base_model_version] - The version of the specified base model that is to be used with recognition request or, for the **Create a session** method, with the new session.
116118
* Multiple versions of a base model can exist when a model is updated for internal improvements. The parameter is intended primarily for use with custom models that have been upgraded for a new base model.

speech-to-text/v1.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ const PARAMS_ALLOWED = [
2929
'profanity_filter',
3030
'smart_formatting',
3131
'customization_id',
32+
'acoustic_customization_id',
3233
'speaker_labels',
3334
'customization_weight',
34-
'acoustic_customization_id',
3535
'base_model_version'
3636
];
3737

@@ -487,6 +487,8 @@ class SpeechToTextV1 extends GeneratedSpeechToTextV1 {
487487
* @param {Boolean} [params.profanity_filter]
488488
* @param {Boolean} [params.smart_formatting]
489489
* @param {String} [params.customization_id]
490+
* @param {String} [params.acoustic_customization_id]
491+
* @param {Number} [params.customization_weight]
490492
* @param {Boolean} [params.speaker_labels]
491493
* @param {function} callback
492494
*/

0 commit comments

Comments
 (0)