Skip to content

Commit a81628d

Browse files
committed
Merge branch 'master' of github.com:watson-developer-cloud/python-sdk
2 parents bd859c9 + fabd095 commit a81628d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/text_to_speech_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
print(json.dumps(text_to_speech.voices(), indent=2))
1212

1313
with open(join(dirname(__file__), '../resources/output.wav'), 'wb') as audio_file:
14-
audio_file.write(text_to_speech.synthesize('Hello world!'))
14+
audio_file.write(text_to_speech.synthesize('Hello world!', accept='audio/wav', voice="en-US_AllisonVoice"))
1515

1616
print(json.dumps(text_to_speech.pronunciation('Watson', pronunciation_format='spr'), indent=2))
1717

watson_developer_cloud/text_to_speech_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def __init__(self, url=default_url, username=None, password=None, use_vcap_servi
3434

3535
def synthesize(self, text, voice=None, accept=None, customization_id=None):
3636
"""
37-
Returns the get HTTP response by doing a GET to /synthesize with text, voice, accept
37+
Returns the get HTTP response by doing a POST to /synthesize with text, voice, accept
3838
"""
3939
params = {'voice': voice, 'accept': accept, 'customization_id': customization_id}
4040
data = {'text': text}

watson_developer_cloud/visual_recognition_v3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def create_classifier(self, name, **kwargs):
7070
"""
7171
Train a new classifier from example images which are uploaded.
7272
:param name: The desired short name of the new classifier.
73-
:param <NAME>_positive_examples: Up to 5 zip files of images that depict the subject of the new classifier.
73+
:param <NAME>_positive_examples: zip files of images that depict the subject of the new classifier.
7474
:param negative_examples: A zip file of images that do not depict the subject of the new classifier.
7575
:return:
7676
"""

0 commit comments

Comments
 (0)