Skip to content

Commit c935d2e

Browse files
nhayashidagermanattanasio
authored andcommitted
feat: allow to add grammar_name parameter to opening message (#128)
1 parent 190ee3b commit c935d2e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

speech-to-text/recognize-stream.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ var OPENING_MESSAGE_PARAMS_ALLOWED = [
3535
'word_alternatives_threshold',
3636
'profanity_filter',
3737
'smart_formatting',
38-
'speaker_labels'
38+
'speaker_labels',
39+
'grammar_name'
3940
];
4041

4142
var QUERY_PARAMS_ALLOWED = [
@@ -80,6 +81,7 @@ var QUERY_PARAMS_ALLOWED = [
8081
* @param {Boolean} [options.smart_formatting=false] - formats numeric values such as dates, times, currency, etc.
8182
* @param {String} [options.customization_id] - Customization ID
8283
* @param {String} [options.acoustic_customization_id] - Acoustic customization ID
84+
* @param {String} [options.grammar_name] - Name of grammar
8385
*
8486
* @constructor
8587
*/

0 commit comments

Comments
 (0)