Skip to content

Commit fb00227

Browse files
committed
fix(STT): Add speaker_labels and grammar_name to message options
1 parent 4fa8ddb commit fb00227

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

watson_developer_cloud/speech_to_text_v1_adapter.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,7 @@ def recognize_using_websocket(self,
209209
'acoustic_customization_id': acoustic_customization_id,
210210
'customization_weight': customization_weight,
211211
'base_model_version': base_model_version,
212-
'language_customization_id': language_customization_id,
213-
'grammar_name': grammar_name,
214-
'redaction': redaction
212+
'language_customization_id': language_customization_id
215213
}
216214
params = _remove_null_values(params)
217215
url += '/v1/recognize?{0}'.format(urlencode(params))
@@ -228,7 +226,9 @@ def recognize_using_websocket(self,
228226
'timestamps': timestamps,
229227
'profanity_filter': profanity_filter,
230228
'smart_formatting': smart_formatting,
231-
'speaker_labels': speaker_labels
229+
'speaker_labels': speaker_labels,
230+
'grammar_name': grammar_name,
231+
'redaction': redaction
232232
}
233233
options = _remove_null_values(options)
234234

0 commit comments

Comments
 (0)