public class TextToSpeech extends WatsonService
defaultHeaders, JSON_MIME_PATTERN, JSON_PATCH_MIME_PATTERN, MESSAGE_CODE, MESSAGE_ERROR, skipAuthentication, VERSION| Constructor and Description |
|---|
TextToSpeech()
Instantiates a new `TextToSpeech`.
|
TextToSpeech(IamOptions iamOptions)
Instantiates a new `TextToSpeech` with IAM.
|
TextToSpeech(java.lang.String username,
java.lang.String password)
Instantiates a new `TextToSpeech` with username and password.
|
| Modifier and Type | Method and Description |
|---|---|
ServiceCall<java.lang.Void> |
addWord(AddWordOptions addWordOptions)
Add a custom word.
|
ServiceCall<java.lang.Void> |
addWords(AddWordsOptions addWordsOptions)
Add custom words.
|
ServiceCall<VoiceModel> |
createVoiceModel(CreateVoiceModelOptions createVoiceModelOptions)
Create a custom model.
|
ServiceCall<java.lang.Void> |
deleteUserData(DeleteUserDataOptions deleteUserDataOptions)
Delete labeled data.
|
ServiceCall<java.lang.Void> |
deleteVoiceModel(DeleteVoiceModelOptions deleteVoiceModelOptions)
Delete a custom model.
|
ServiceCall<java.lang.Void> |
deleteWord(DeleteWordOptions deleteWordOptions)
Delete a custom word.
|
ServiceCall<Pronunciation> |
getPronunciation(GetPronunciationOptions getPronunciationOptions)
Get pronunciation.
|
ServiceCall<Voice> |
getVoice(GetVoiceOptions getVoiceOptions)
Get a voice.
|
ServiceCall<VoiceModel> |
getVoiceModel(GetVoiceModelOptions getVoiceModelOptions)
Get a custom model.
|
ServiceCall<Translation> |
getWord(GetWordOptions getWordOptions)
Get a custom word.
|
ServiceCall<VoiceModels> |
listVoiceModels()
List custom models.
|
ServiceCall<VoiceModels> |
listVoiceModels(ListVoiceModelsOptions listVoiceModelsOptions)
List custom models.
|
ServiceCall<Voices> |
listVoices()
List voices.
|
ServiceCall<Voices> |
listVoices(ListVoicesOptions listVoicesOptions)
List voices.
|
ServiceCall<Words> |
listWords(ListWordsOptions listWordsOptions)
List custom words.
|
ServiceCall<java.io.InputStream> |
synthesize(SynthesizeOptions synthesizeOptions)
Synthesize audio.
|
ServiceCall<java.lang.Void> |
updateVoiceModel(UpdateVoiceModelOptions updateVoiceModelOptions)
Update a custom model.
|
configureClient, configureHttpClient, createServiceCall, getApiKey, getEndPoint, getName, getPassword, getToken, getUsername, isJsonMimeType, isJsonPatchMimeType, isTokenManagerSet, processServiceCall, setApiKey, setAuthentication, setDefaultHeaders, setDefaultHeaders, setEndPoint, setIamCredentials, setSkipAuthentication, setUsernameAndPassword, toStringpublic TextToSpeech()
public TextToSpeech(java.lang.String username,
java.lang.String password)
username - the usernamepassword - the passwordpublic TextToSpeech(IamOptions iamOptions)
iamOptions - the options for authenticating through IAMpublic ServiceCall<Voice> getVoice(GetVoiceOptions getVoiceOptions)
getVoiceOptions - the GetVoiceOptions containing the options for the callServiceCall with a response type of Voicepublic ServiceCall<Voices> listVoices(ListVoicesOptions listVoicesOptions)
listVoicesOptions - the ListVoicesOptions containing the options for the callServiceCall with a response type of Voicespublic ServiceCall<Voices> listVoices()
ServiceCall with a response type of Voicespublic ServiceCall<java.io.InputStream> synthesize(SynthesizeOptions synthesizeOptions)
synthesizeOptions - the SynthesizeOptions containing the options for the callServiceCall with a response type of InputStreampublic ServiceCall<Pronunciation> getPronunciation(GetPronunciationOptions getPronunciationOptions)
getPronunciationOptions - the GetPronunciationOptions containing the options for the callServiceCall with a response type of Pronunciationpublic ServiceCall<VoiceModel> createVoiceModel(CreateVoiceModelOptions createVoiceModelOptions)
createVoiceModelOptions - the CreateVoiceModelOptions containing the options for the callServiceCall with a response type of VoiceModelpublic ServiceCall<java.lang.Void> deleteVoiceModel(DeleteVoiceModelOptions deleteVoiceModelOptions)
deleteVoiceModelOptions - the DeleteVoiceModelOptions containing the options for the callServiceCall with a response type of Voidpublic ServiceCall<VoiceModel> getVoiceModel(GetVoiceModelOptions getVoiceModelOptions)
getVoiceModelOptions - the GetVoiceModelOptions containing the options for the callServiceCall with a response type of VoiceModelpublic ServiceCall<VoiceModels> listVoiceModels(ListVoiceModelsOptions listVoiceModelsOptions)
listVoiceModelsOptions - the ListVoiceModelsOptions containing the options for the callServiceCall with a response type of VoiceModelspublic ServiceCall<VoiceModels> listVoiceModels()
ServiceCall with a response type of VoiceModelspublic ServiceCall<java.lang.Void> updateVoiceModel(UpdateVoiceModelOptions updateVoiceModelOptions)
<phoneme alphabet=\"ipa\" ph=\"təmˈɑto\"></phoneme>
or in the proprietary IBM Symbolic Phonetic Representation (SPR)
<phoneme alphabet=\"ibm\" ph=\"1gAstroEntxrYFXs\"></phoneme>
**Note:** This method is currently a beta release.
**See also:**
* [Updating a custom
model](https://console.bluemix.net/docs/services/text-to-speech/custom-models.html#cuModelsUpdate)
* [Adding words to a Japanese custom
model](https://console.bluemix.net/docs/services/text-to-speech/custom-entries.html#cuJapaneseAdd)
* [Understanding customization](https://console.bluemix.net/docs/services/text-to-speech/custom-intro.html).updateVoiceModelOptions - the UpdateVoiceModelOptions containing the options for the callServiceCall with a response type of Voidpublic ServiceCall<java.lang.Void> addWord(AddWordOptions addWordOptions)
<phoneme alphabet=\"ipa\" ph=\"təmˈɑto\"></phoneme>
or in the proprietary IBM Symbolic Phonetic Representation (SPR)
<phoneme alphabet=\"ibm\" ph=\"1gAstroEntxrYFXs\"></phoneme>
**Note:** This method is currently a beta release.
**See also:**
* [Adding a single word to a custom
model](https://console.bluemix.net/docs/services/text-to-speech/custom-entries.html#cuWordAdd)
* [Adding words to a Japanese custom
model](https://console.bluemix.net/docs/services/text-to-speech/custom-entries.html#cuJapaneseAdd)
* [Understanding customization](https://console.bluemix.net/docs/services/text-to-speech/custom-intro.html).addWordOptions - the AddWordOptions containing the options for the callServiceCall with a response type of Voidpublic ServiceCall<java.lang.Void> addWords(AddWordsOptions addWordsOptions)
<phoneme alphabet=\"ipa\" ph=\"təmˈɑto\"></phoneme>
or in the proprietary IBM Symbolic Phonetic Representation (SPR)
<phoneme alphabet=\"ibm\" ph=\"1gAstroEntxrYFXs\"></phoneme>
**Note:** This method is currently a beta release.
**See also:**
* [Adding multiple words to a custom
model](https://console.bluemix.net/docs/services/text-to-speech/custom-entries.html#cuWordsAdd)
* [Adding words to a Japanese custom
model](https://console.bluemix.net/docs/services/text-to-speech/custom-entries.html#cuJapaneseAdd)
* [Understanding customization](https://console.bluemix.net/docs/services/text-to-speech/custom-intro.html).addWordsOptions - the AddWordsOptions containing the options for the callServiceCall with a response type of Voidpublic ServiceCall<java.lang.Void> deleteWord(DeleteWordOptions deleteWordOptions)
deleteWordOptions - the DeleteWordOptions containing the options for the callServiceCall with a response type of Voidpublic ServiceCall<Translation> getWord(GetWordOptions getWordOptions)
getWordOptions - the GetWordOptions containing the options for the callServiceCall with a response type of Translationpublic ServiceCall<Words> listWords(ListWordsOptions listWordsOptions)
listWordsOptions - the ListWordsOptions containing the options for the callServiceCall with a response type of Wordspublic ServiceCall<java.lang.Void> deleteUserData(DeleteUserDataOptions deleteUserDataOptions)
deleteUserDataOptions - the DeleteUserDataOptions containing the options for the callServiceCall with a response type of Void