public class TextToSpeech
extends com.ibm.cloud.sdk.core.service.BaseService
| Constructor and Description | 
|---|
TextToSpeech()
Constructs a new `TextToSpeech` client. 
 | 
TextToSpeech(com.ibm.cloud.sdk.core.security.Authenticator authenticator)
Constructs a new `TextToSpeech` client with the specified Authenticator. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> | 
addWord(AddWordOptions addWordOptions)
Add a custom word. 
 | 
com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> | 
addWords(AddWordsOptions addWordsOptions)
Add custom words. 
 | 
com.ibm.cloud.sdk.core.http.ServiceCall<VoiceModel> | 
createVoiceModel(CreateVoiceModelOptions createVoiceModelOptions)
Create a custom model. 
 | 
com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> | 
deleteUserData(DeleteUserDataOptions deleteUserDataOptions)
Delete labeled data. 
 | 
com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> | 
deleteVoiceModel(DeleteVoiceModelOptions deleteVoiceModelOptions)
Delete a custom model. 
 | 
com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> | 
deleteWord(DeleteWordOptions deleteWordOptions)
Delete a custom word. 
 | 
com.ibm.cloud.sdk.core.http.ServiceCall<Pronunciation> | 
getPronunciation(GetPronunciationOptions getPronunciationOptions)
Get pronunciation. 
 | 
com.ibm.cloud.sdk.core.http.ServiceCall<Voice> | 
getVoice(GetVoiceOptions getVoiceOptions)
Get a voice. 
 | 
com.ibm.cloud.sdk.core.http.ServiceCall<VoiceModel> | 
getVoiceModel(GetVoiceModelOptions getVoiceModelOptions)
Get a custom model. 
 | 
com.ibm.cloud.sdk.core.http.ServiceCall<Translation> | 
getWord(GetWordOptions getWordOptions)
Get a custom word. 
 | 
com.ibm.cloud.sdk.core.http.ServiceCall<VoiceModels> | 
listVoiceModels()
List custom models. 
 | 
com.ibm.cloud.sdk.core.http.ServiceCall<VoiceModels> | 
listVoiceModels(ListVoiceModelsOptions listVoiceModelsOptions)
List custom models. 
 | 
com.ibm.cloud.sdk.core.http.ServiceCall<Voices> | 
listVoices()
List voices. 
 | 
com.ibm.cloud.sdk.core.http.ServiceCall<Voices> | 
listVoices(ListVoicesOptions listVoicesOptions)
List voices. 
 | 
com.ibm.cloud.sdk.core.http.ServiceCall<Words> | 
listWords(ListWordsOptions listWordsOptions)
List custom words. 
 | 
com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream> | 
synthesize(SynthesizeOptions synthesizeOptions)
Synthesize audio. 
 | 
okhttp3.WebSocket | 
synthesizeUsingWebSocket(SynthesizeOptions synthesizeOptions,
                        SynthesizeCallback callback)  | 
com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> | 
updateVoiceModel(UpdateVoiceModelOptions updateVoiceModelOptions)
Update a custom model. 
 | 
configureClient, configureHttpClient, createServiceCall, getAuthenticator, getClient, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, processServiceCall, setAuthentication, setClient, setDefaultHeaders, setDefaultHeaders, setEndPoint, setServiceUrl, toStringpublic TextToSpeech()
public TextToSpeech(com.ibm.cloud.sdk.core.security.Authenticator authenticator)
authenticator - the Authenticator instance to be configured for this servicepublic com.ibm.cloud.sdk.core.http.ServiceCall<Voices> listVoices(ListVoicesOptions listVoicesOptions)
listVoicesOptions - the ListVoicesOptions containing the options for the callServiceCall with a response type of Voicespublic com.ibm.cloud.sdk.core.http.ServiceCall<Voices> listVoices()
ServiceCall with a response type of Voicespublic com.ibm.cloud.sdk.core.http.ServiceCall<Voice> getVoice(GetVoiceOptions getVoiceOptions)
getVoiceOptions - the GetVoiceOptions containing the options for the callServiceCall with a response type of Voicepublic com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream> synthesize(SynthesizeOptions synthesizeOptions)
synthesizeOptions - the SynthesizeOptions containing the options for the callServiceCall with a response type of InputStreampublic okhttp3.WebSocket synthesizeUsingWebSocket(SynthesizeOptions synthesizeOptions, SynthesizeCallback callback)
public com.ibm.cloud.sdk.core.http.ServiceCall<Pronunciation> getPronunciation(GetPronunciationOptions getPronunciationOptions)
getPronunciationOptions - the GetPronunciationOptions containing the options for the callServiceCall with a response type of Pronunciationpublic com.ibm.cloud.sdk.core.http.ServiceCall<VoiceModel> createVoiceModel(CreateVoiceModelOptions createVoiceModelOptions)
createVoiceModelOptions - the CreateVoiceModelOptions containing the options for the callServiceCall with a response type of VoiceModelpublic com.ibm.cloud.sdk.core.http.ServiceCall<VoiceModels> listVoiceModels(ListVoiceModelsOptions listVoiceModelsOptions)
listVoiceModelsOptions - the ListVoiceModelsOptions containing the options for the callServiceCall with a response type of VoiceModelspublic com.ibm.cloud.sdk.core.http.ServiceCall<VoiceModels> listVoiceModels()
ServiceCall with a response type of VoiceModelspublic com.ibm.cloud.sdk.core.http.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://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customModels#cuModelsUpdate)
 * [Adding words to a Japanese custom
 model](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customWords#cuJapaneseAdd)
 * [Understanding
 customization](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customIntro#customIntro).updateVoiceModelOptions - the UpdateVoiceModelOptions containing the options for the callServiceCall with a response type of Voidpublic com.ibm.cloud.sdk.core.http.ServiceCall<VoiceModel> getVoiceModel(GetVoiceModelOptions getVoiceModelOptions)
getVoiceModelOptions - the GetVoiceModelOptions containing the options for the callServiceCall with a response type of VoiceModelpublic com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteVoiceModel(DeleteVoiceModelOptions deleteVoiceModelOptions)
deleteVoiceModelOptions - the DeleteVoiceModelOptions containing the options for the callServiceCall with a response type of Voidpublic com.ibm.cloud.sdk.core.http.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://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customWords#cuWordsAdd)
 * [Adding words to a Japanese custom
 model](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customWords#cuJapaneseAdd)
 * [Understanding
 customization](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customIntro#customIntro).addWordsOptions - the AddWordsOptions containing the options for the callServiceCall with a response type of Voidpublic com.ibm.cloud.sdk.core.http.ServiceCall<Words> listWords(ListWordsOptions listWordsOptions)
listWordsOptions - the ListWordsOptions containing the options for the callServiceCall with a response type of Wordspublic com.ibm.cloud.sdk.core.http.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://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customWords#cuWordAdd)
 * [Adding words to a Japanese custom
 model](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customWords#cuJapaneseAdd)
 * [Understanding
 customization](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customIntro#customIntro).addWordOptions - the AddWordOptions containing the options for the callServiceCall with a response type of Voidpublic com.ibm.cloud.sdk.core.http.ServiceCall<Translation> getWord(GetWordOptions getWordOptions)
getWordOptions - the GetWordOptions containing the options for the callServiceCall with a response type of Translationpublic com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteWord(DeleteWordOptions deleteWordOptions)
deleteWordOptions - the DeleteWordOptions containing the options for the callServiceCall with a response type of Voidpublic com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteUserData(DeleteUserDataOptions deleteUserDataOptions)
deleteUserDataOptions - the DeleteUserDataOptions containing the options for the callServiceCall with a response type of Void