Skip to content

Commit

Permalink
Merge pull request watson-developer-cloud#134 from nfaux/master
Browse files Browse the repository at this point in the history
Added speaker_labe param to recognize
  • Loading branch information
jsstylos authored Dec 16, 2016
2 parents f00d3f7 + 5da459b commit 8d55acf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions watson_developer_cloud/speech_to_text_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def recognize(self, audio, content_type, continuous=False, model=None,
word_alternatives_threshold=None,
word_confidence=None, timestamps=None, interim_results=None,
profanity_filter=None,
smart_formatting=None):
smart_formatting=None,
speaker_labels=None):
"""
Returns the recognized text from the audio input
"""
Expand All @@ -50,7 +51,8 @@ def recognize(self, audio, content_type, continuous=False, model=None,
'timestamps': timestamps,
'interim_results': interim_results,
'profanity_filter': profanity_filter,
'smart_formatting': smart_formatting}
'smart_formatting': smart_formatting,
'speaker_labels': speaker_labels}

return self.request(method='POST', url='/v1/recognize',
headers=headers,
Expand Down

0 comments on commit 8d55acf

Please sign in to comment.