Skip to content

Commit 5da459b

Browse files
author
Noel Faux
committed
Added speaker_labe param to recognize
Added speaker_labe param to recognize Signed-off-by: Noel Faux <noel.faux@au1.ibm.com>
1 parent f00d3f7 commit 5da459b

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
@@ -34,7 +34,8 @@ def recognize(self, audio, content_type, continuous=False, model=None,
3434
word_alternatives_threshold=None,
3535
word_confidence=None, timestamps=None, interim_results=None,
3636
profanity_filter=None,
37-
smart_formatting=None):
37+
smart_formatting=None,
38+
speaker_labels=None):
3839
"""
3940
Returns the recognized text from the audio input
4041
"""
@@ -50,7 +51,8 @@ def recognize(self, audio, content_type, continuous=False, model=None,
5051
'timestamps': timestamps,
5152
'interim_results': interim_results,
5253
'profanity_filter': profanity_filter,
53-
'smart_formatting': smart_formatting}
54+
'smart_formatting': smart_formatting,
55+
'speaker_labels': speaker_labels}
5456

5557
return self.request(method='POST', url='/v1/recognize',
5658
headers=headers,

0 commit comments

Comments
 (0)