Skip to content

Commit 242929b

Browse files
authored
Merge pull request #309 from watson-developer-cloud/mdk/307-add-customization-weight-to-stt
Add customization_weight parameter to recognize() for stt
2 parents c3fdf13 + 9d7c672 commit 242929b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

watson_developer_cloud/speech_to_text_v1.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ def recognize(self, audio, content_type, continuous=None, model=None,
3535
word_confidence=None, timestamps=None, interim_results=None,
3636
profanity_filter=None,
3737
smart_formatting=None,
38-
speaker_labels=None):
38+
speaker_labels=None,
39+
customization_weight=None):
3940
"""
4041
Returns the recognized text from the audio input
4142
"""
@@ -53,7 +54,8 @@ def recognize(self, audio, content_type, continuous=None, model=None,
5354
'interim_results': interim_results,
5455
'profanity_filter': profanity_filter,
5556
'smart_formatting': smart_formatting,
56-
'speaker_labels': speaker_labels}
57+
'speaker_labels': speaker_labels,
58+
'customization_weight': customization_weight}
5759

5860
return self.request(method='POST', url='/v1/recognize',
5961
headers=headers,

0 commit comments

Comments
 (0)