Skip to content

Commit aa3e752

Browse files
fix(wss): add smartFormattingVersion param
1 parent 3c2bc6f commit aa3e752

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ibm_watson/speech_to_text_v1_adapter.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def recognize_using_websocket(self,
4242
timestamps=None,
4343
profanity_filter=None,
4444
smart_formatting=None,
45+
smart_formatting_version=None,
4546
speaker_labels=None,
4647
http_proxy_host=None,
4748
http_proxy_port=None,
@@ -175,6 +176,9 @@ def recognize_using_websocket(self,
175176
**Note:** Applies to US English, Japanese, and Spanish transcription only.
176177
See [Smart
177178
formatting](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-formatting#smart-formatting).
179+
:param int smart_formatting_version: (optional) Smart formatting version is
180+
for next-generation models and that is supported in US English, Brazilian
181+
Portuguese, French and German languages.
178182
:param bool speaker_labels: (optional) If `true`, the response includes
179183
labels that identify which words were spoken by which participants in a
180184
multi-person exchange. By default, the service returns no speaker labels.
@@ -360,6 +364,7 @@ def recognize_using_websocket(self,
360364
'timestamps': timestamps,
361365
'profanity_filter': profanity_filter,
362366
'smart_formatting': smart_formatting,
367+
'smart_formatting_version': smart_formatting_version,
363368
'speaker_labels': speaker_labels,
364369
'grammar_name': grammar_name,
365370
'redaction': redaction,

0 commit comments

Comments
 (0)