Skip to content

Commit

Permalink
fix(wss): add smartFormattingVersion param
Browse files Browse the repository at this point in the history
  • Loading branch information
apaparazzi0329 committed Mar 13, 2024
1 parent 3c2bc6f commit aa3e752
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ibm_watson/speech_to_text_v1_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def recognize_using_websocket(self,
timestamps=None,
profanity_filter=None,
smart_formatting=None,
smart_formatting_version=None,
speaker_labels=None,
http_proxy_host=None,
http_proxy_port=None,
Expand Down Expand Up @@ -175,6 +176,9 @@ def recognize_using_websocket(self,
**Note:** Applies to US English, Japanese, and Spanish transcription only.
See [Smart
formatting](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-formatting#smart-formatting).
:param int smart_formatting_version: (optional) Smart formatting version is
for next-generation models and that is supported in US English, Brazilian
Portuguese, French and German languages.
:param bool speaker_labels: (optional) If `true`, the response includes
labels that identify which words were spoken by which participants in a
multi-person exchange. By default, the service returns no speaker labels.
Expand Down Expand Up @@ -360,6 +364,7 @@ def recognize_using_websocket(self,
'timestamps': timestamps,
'profanity_filter': profanity_filter,
'smart_formatting': smart_formatting,
'smart_formatting_version': smart_formatting_version,
'speaker_labels': speaker_labels,
'grammar_name': grammar_name,
'redaction': redaction,
Expand Down

0 comments on commit aa3e752

Please sign in to comment.