watson_developer_cloud.text_to_speech_v1 module
The v1 Text to Speech service
(https://www.ibm.com/watson/developercloud/text-to-speech.html)
-
class
TextToSpeechV1
(url='https://stream.watsonplatform.net/text-to-speech/api', **kwargs)[source]
Bases: watson_developer_cloud.watson_developer_cloud_service.WatsonDeveloperCloudService
Client for the Text to Speech service
-
default_url
= 'https://stream.watsonplatform.net/text-to-speech/api'
-
synthesize
(text, voice=None, accept=None, customization_id=None)[source]
Returns the get HTTP response by doing a POST to /synthesize with text, voice, accept
-
voices
()[source]
Returns the list of available voices to use with synthesize
-
pronunciation
(text, voice=None, pronunciation_format='ipa')[source]
-
customizations
(language=None)[source]
-
get_customization
(customization_id)[source]
-
create_customization
(name, language=None, description=None)[source]
-
update_customization
(customization_id, name=None, description=None, words=None)[source]
-
delete_customization
(customization_id)[source]
-
get_customization_words
(customization_id)[source]
-
add_customization_words
(customization_id, words)[source]
-
get_customization_word
(customization_id, word)[source]
-
set_customization_word
(customization_id, word, translation)[source]
-
delete_customization_word
(customization_id, word)[source]