Skip to content

Commit 87be679

Browse files
feat(text-to-speech): auto-generate code
1 parent 2261d67 commit 87be679

File tree

9 files changed

+113
-27
lines changed

9 files changed

+113
-27
lines changed

text-to-speech/src/main/java/com/ibm/watson/text_to_speech/v1/TextToSpeech.java

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
* words that, when combined, sound like the word. A phonetic translation is based on the SSML
7070
* phoneme format for representing a word. You can specify a phonetic translation in standard
7171
* International Phonetic Alphabet (IPA) representation or in the proprietary IBM Symbolic Phonetic
72-
* Representation (SPR).
72+
* Representation (SPR). The Arabic, Chinese, Dutch, and Korean languages support only IPA.
7373
*
7474
* @version v1
7575
* @see <a href="https://cloud.ibm.com/docs/text-to-speech/">Text to Speech</a>
@@ -321,11 +321,10 @@ public WebSocket synthesizeUsingWebSocket(
321321
* default translation for the language of that voice or for a specific custom voice model to see
322322
* the translation for that voice model.
323323
*
324-
* <p>**Note:** This method is currently a beta release. The method does not support the Arabic,
325-
* Chinese, and Dutch languages.
324+
* <p>**Note:** This method is currently a beta release.
326325
*
327-
* <p>**See also:** [Querying a word from a language]
328-
* (https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customWords#cuWordsQueryLanguage).
326+
* <p>**See also:** [Querying a word from a
327+
* language](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customWords#cuWordsQueryLanguage).
329328
*
330329
* @param getPronunciationOptions the {@link GetPronunciationOptions} containing the options for
331330
* the call
@@ -367,8 +366,7 @@ public ServiceCall<Pronunciation> getPronunciation(
367366
* You can optionally specify the language and a description for the new model. The model is owned
368367
* by the instance of the service whose credentials are used to create it.
369368
*
370-
* <p>**Note:** This method is currently a beta release. The service does not support voice model
371-
* customization for the Arabic, Chinese, and Dutch languages.
369+
* <p>**Note:** This method is currently a beta release.
372370
*
373371
* <p>**See also:** [Creating a custom
374372
* model](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customModels#cuModelsCreate).
@@ -805,8 +803,8 @@ public ServiceCall<Void> deleteWord(DeleteWordOptions deleteWordOptions) {
805803
* <p>You associate a customer ID with data by passing the `X-Watson-Metadata` header with a
806804
* request that passes the data.
807805
*
808-
* <p>**See also:** [Information security] (https://cloud.ibm.com/docs/text-to-speech
809-
* ?topic=text-to-speech-information-security#information-security).
806+
* <p>**See also:** [Information
807+
* security](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-information-security#information-security).
810808
*
811809
* @param deleteUserDataOptions the {@link DeleteUserDataOptions} containing the options for the
812810
* call

text-to-speech/src/main/java/com/ibm/watson/text_to_speech/v1/model/AddWordOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ public String word() {
211211
*
212212
* <p>The phonetic or sounds-like translation for the word. A phonetic translation is based on the
213213
* SSML format for representing the phonetic string of a word either as an IPA translation or as
214-
* an IBM SPR translation. A sounds-like is one or more words that, when combined, sound like the
215-
* word.
214+
* an IBM SPR translation. The Arabic, Chinese, Dutch, and Korean languages support only IPA. A
215+
* sounds-like is one or more words that, when combined, sound like the word.
216216
*
217217
* @return the translation
218218
*/

text-to-speech/src/main/java/com/ibm/watson/text_to_speech/v1/model/CreateVoiceModelOptions.java

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,14 @@
1818
public class CreateVoiceModelOptions extends GenericModel {
1919

2020
/**
21-
* The language of the new custom voice model. Omit the parameter to use the the default language,
21+
* The language of the new custom voice model. You create a custom voice model for a specific
22+
* language, not for a specific voice. A custom model can be used with any voice, standard or
23+
* neural, for its specified language. Omit the parameter to use the the default language,
2224
* `en-US`.
2325
*/
2426
public interface Language {
27+
/** ar-AR. */
28+
String AR_AR = "ar-AR";
2529
/** de-DE. */
2630
String DE_DE = "de-DE";
2731
/** en-GB. */
@@ -40,8 +44,14 @@ public interface Language {
4044
String IT_IT = "it-IT";
4145
/** ja-JP. */
4246
String JA_JP = "ja-JP";
47+
/** ko-KR. */
48+
String KO_KR = "ko-KR";
49+
/** nl-NL. */
50+
String NL_NL = "nl-NL";
4351
/** pt-BR. */
4452
String PT_BR = "pt-BR";
53+
/** zh-CN. */
54+
String ZH_CN = "zh-CN";
4555
}
4656

4757
protected String name;
@@ -145,8 +155,10 @@ public String name() {
145155
/**
146156
* Gets the language.
147157
*
148-
* <p>The language of the new custom voice model. Omit the parameter to use the the default
149-
* language, `en-US`.
158+
* <p>The language of the new custom voice model. You create a custom voice model for a specific
159+
* language, not for a specific voice. A custom model can be used with any voice, standard or
160+
* neural, for its specified language. Omit the parameter to use the the default language,
161+
* `en-US`.
150162
*
151163
* @return the language
152164
*/

text-to-speech/src/main/java/com/ibm/watson/text_to_speech/v1/model/GetPronunciationOptions.java

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ public class GetPronunciationOptions extends GenericModel {
2222
* for the same language (for example, `en-US`) return the same translation.
2323
*/
2424
public interface Voice {
25+
/** ar-AR_OmarVoice. */
26+
String AR_AR_OMARVOICE = "ar-AR_OmarVoice";
2527
/** de-DE_BirgitVoice. */
2628
String DE_DE_BIRGITVOICE = "de-DE_BirgitVoice";
2729
/** de-DE_BirgitV3Voice. */
@@ -30,6 +32,8 @@ public interface Voice {
3032
String DE_DE_DIETERVOICE = "de-DE_DieterVoice";
3133
/** de-DE_DieterV3Voice. */
3234
String DE_DE_DIETERV3VOICE = "de-DE_DieterV3Voice";
35+
/** de-DE_ErikaV3Voice. */
36+
String DE_DE_ERIKAV3VOICE = "de-DE_ErikaV3Voice";
3337
/** en-GB_KateVoice. */
3438
String EN_GB_KATEVOICE = "en-GB_KateVoice";
3539
/** en-GB_KateV3Voice. */
@@ -38,6 +42,12 @@ public interface Voice {
3842
String EN_US_ALLISONVOICE = "en-US_AllisonVoice";
3943
/** en-US_AllisonV3Voice. */
4044
String EN_US_ALLISONV3VOICE = "en-US_AllisonV3Voice";
45+
/** en-US_EmilyV3Voice. */
46+
String EN_US_EMILYV3VOICE = "en-US_EmilyV3Voice";
47+
/** en-US_HenryV3Voice. */
48+
String EN_US_HENRYV3VOICE = "en-US_HenryV3Voice";
49+
/** en-US_KevinV3Voice. */
50+
String EN_US_KEVINV3VOICE = "en-US_KevinV3Voice";
4151
/** en-US_LisaVoice. */
4252
String EN_US_LISAVOICE = "en-US_LisaVoice";
4353
/** en-US_LisaV3Voice. */
@@ -46,6 +56,8 @@ public interface Voice {
4656
String EN_US_MICHAELVOICE = "en-US_MichaelVoice";
4757
/** en-US_MichaelV3Voice. */
4858
String EN_US_MICHAELV3VOICE = "en-US_MichaelV3Voice";
59+
/** en-US_OliviaV3Voice. */
60+
String EN_US_OLIVIAV3VOICE = "en-US_OliviaV3Voice";
4961
/** es-ES_EnriqueVoice. */
5062
String ES_ES_ENRIQUEVOICE = "es-ES_EnriqueVoice";
5163
/** es-ES_EnriqueV3Voice. */
@@ -74,15 +86,30 @@ public interface Voice {
7486
String JA_JP_EMIVOICE = "ja-JP_EmiVoice";
7587
/** ja-JP_EmiV3Voice. */
7688
String JA_JP_EMIV3VOICE = "ja-JP_EmiV3Voice";
89+
/** ko-KR_YoungmiVoice. */
90+
String KO_KR_YOUNGMIVOICE = "ko-KR_YoungmiVoice";
91+
/** ko-KR_YunaVoice. */
92+
String KO_KR_YUNAVOICE = "ko-KR_YunaVoice";
93+
/** nl-NL_EmmaVoice. */
94+
String NL_NL_EMMAVOICE = "nl-NL_EmmaVoice";
95+
/** nl-NL_LiamVoice. */
96+
String NL_NL_LIAMVOICE = "nl-NL_LiamVoice";
7797
/** pt-BR_IsabelaVoice. */
7898
String PT_BR_ISABELAVOICE = "pt-BR_IsabelaVoice";
7999
/** pt-BR_IsabelaV3Voice. */
80100
String PT_BR_ISABELAV3VOICE = "pt-BR_IsabelaV3Voice";
101+
/** zh-CN_LiNaVoice. */
102+
String ZH_CN_LINAVOICE = "zh-CN_LiNaVoice";
103+
/** zh-CN_WangWeiVoice. */
104+
String ZH_CN_WANGWEIVOICE = "zh-CN_WangWeiVoice";
105+
/** zh-CN_ZhangJingVoice. */
106+
String ZH_CN_ZHANGJINGVOICE = "zh-CN_ZhangJingVoice";
81107
}
82108

83109
/**
84-
* The phoneme format in which to return the pronunciation. Omit the parameter to obtain the
85-
* pronunciation in the default format.
110+
* The phoneme format in which to return the pronunciation. The Arabic, Chinese, Dutch, and Korean
111+
* languages support only IPA. Omit the parameter to obtain the pronunciation in the default
112+
* format.
86113
*/
87114
public interface Format {
88115
/** ibm. */
@@ -219,8 +246,9 @@ public String voice() {
219246
/**
220247
* Gets the format.
221248
*
222-
* <p>The phoneme format in which to return the pronunciation. Omit the parameter to obtain the
223-
* pronunciation in the default format.
249+
* <p>The phoneme format in which to return the pronunciation. The Arabic, Chinese, Dutch, and
250+
* Korean languages support only IPA. Omit the parameter to obtain the pronunciation in the
251+
* default format.
224252
*
225253
* @return the format
226254
*/

text-to-speech/src/main/java/com/ibm/watson/text_to_speech/v1/model/GetVoiceOptions.java

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ public class GetVoiceOptions extends GenericModel {
1919

2020
/** The voice for which information is to be returned. */
2121
public interface Voice {
22+
/** ar-AR_OmarVoice. */
23+
String AR_AR_OMARVOICE = "ar-AR_OmarVoice";
2224
/** de-DE_BirgitVoice. */
2325
String DE_DE_BIRGITVOICE = "de-DE_BirgitVoice";
2426
/** de-DE_BirgitV3Voice. */
@@ -27,6 +29,8 @@ public interface Voice {
2729
String DE_DE_DIETERVOICE = "de-DE_DieterVoice";
2830
/** de-DE_DieterV3Voice. */
2931
String DE_DE_DIETERV3VOICE = "de-DE_DieterV3Voice";
32+
/** de-DE_ErikaV3Voice. */
33+
String DE_DE_ERIKAV3VOICE = "de-DE_ErikaV3Voice";
3034
/** en-GB_KateVoice. */
3135
String EN_GB_KATEVOICE = "en-GB_KateVoice";
3236
/** en-GB_KateV3Voice. */
@@ -35,6 +39,12 @@ public interface Voice {
3539
String EN_US_ALLISONVOICE = "en-US_AllisonVoice";
3640
/** en-US_AllisonV3Voice. */
3741
String EN_US_ALLISONV3VOICE = "en-US_AllisonV3Voice";
42+
/** en-US_EmilyV3Voice. */
43+
String EN_US_EMILYV3VOICE = "en-US_EmilyV3Voice";
44+
/** en-US_HenryV3Voice. */
45+
String EN_US_HENRYV3VOICE = "en-US_HenryV3Voice";
46+
/** en-US_KevinV3Voice. */
47+
String EN_US_KEVINV3VOICE = "en-US_KevinV3Voice";
3848
/** en-US_LisaVoice. */
3949
String EN_US_LISAVOICE = "en-US_LisaVoice";
4050
/** en-US_LisaV3Voice. */
@@ -43,6 +53,8 @@ public interface Voice {
4353
String EN_US_MICHAELVOICE = "en-US_MichaelVoice";
4454
/** en-US_MichaelV3Voice. */
4555
String EN_US_MICHAELV3VOICE = "en-US_MichaelV3Voice";
56+
/** en-US_OliviaV3Voice. */
57+
String EN_US_OLIVIAV3VOICE = "en-US_OliviaV3Voice";
4658
/** es-ES_EnriqueVoice. */
4759
String ES_ES_ENRIQUEVOICE = "es-ES_EnriqueVoice";
4860
/** es-ES_EnriqueV3Voice. */
@@ -71,10 +83,24 @@ public interface Voice {
7183
String JA_JP_EMIVOICE = "ja-JP_EmiVoice";
7284
/** ja-JP_EmiV3Voice. */
7385
String JA_JP_EMIV3VOICE = "ja-JP_EmiV3Voice";
86+
/** ko-KR_YoungmiVoice. */
87+
String KO_KR_YOUNGMIVOICE = "ko-KR_YoungmiVoice";
88+
/** ko-KR_YunaVoice. */
89+
String KO_KR_YUNAVOICE = "ko-KR_YunaVoice";
90+
/** nl-NL_EmmaVoice. */
91+
String NL_NL_EMMAVOICE = "nl-NL_EmmaVoice";
92+
/** nl-NL_LiamVoice. */
93+
String NL_NL_LIAMVOICE = "nl-NL_LiamVoice";
7494
/** pt-BR_IsabelaVoice. */
7595
String PT_BR_ISABELAVOICE = "pt-BR_IsabelaVoice";
7696
/** pt-BR_IsabelaV3Voice. */
7797
String PT_BR_ISABELAV3VOICE = "pt-BR_IsabelaV3Voice";
98+
/** zh-CN_LiNaVoice. */
99+
String ZH_CN_LINAVOICE = "zh-CN_LiNaVoice";
100+
/** zh-CN_WangWeiVoice. */
101+
String ZH_CN_WANGWEIVOICE = "zh-CN_WangWeiVoice";
102+
/** zh-CN_ZhangJingVoice. */
103+
String ZH_CN_ZHANGJINGVOICE = "zh-CN_ZhangJingVoice";
78104
}
79105

80106
protected String voice;

text-to-speech/src/main/java/com/ibm/watson/text_to_speech/v1/model/ListVoiceModelsOptions.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ public class ListVoiceModelsOptions extends GenericModel {
2222
* be returned. Omit the parameter to see all custom voice models that are owned by the requester.
2323
*/
2424
public interface Language {
25+
/** ar-AR. */
26+
String AR_AR = "ar-AR";
2527
/** de-DE. */
2628
String DE_DE = "de-DE";
2729
/** en-GB. */
@@ -40,8 +42,14 @@ public interface Language {
4042
String IT_IT = "it-IT";
4143
/** ja-JP. */
4244
String JA_JP = "ja-JP";
45+
/** ko-KR. */
46+
String KO_KR = "ko-KR";
47+
/** nl-NL. */
48+
String NL_NL = "nl-NL";
4349
/** pt-BR. */
4450
String PT_BR = "pt-BR";
51+
/** zh-CN. */
52+
String ZH_CN = "zh-CN";
4553
}
4654

4755
protected String language;

text-to-speech/src/main/java/com/ibm/watson/text_to_speech/v1/model/SynthesizeOptions.java

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public interface Voice {
3030
String DE_DE_DIETERVOICE = "de-DE_DieterVoice";
3131
/** de-DE_DieterV3Voice. */
3232
String DE_DE_DIETERV3VOICE = "de-DE_DieterV3Voice";
33+
/** de-DE_ErikaV3Voice. */
34+
String DE_DE_ERIKAV3VOICE = "de-DE_ErikaV3Voice";
3335
/** en-GB_KateVoice. */
3436
String EN_GB_KATEVOICE = "en-GB_KateVoice";
3537
/** en-GB_KateV3Voice. */
@@ -38,6 +40,12 @@ public interface Voice {
3840
String EN_US_ALLISONVOICE = "en-US_AllisonVoice";
3941
/** en-US_AllisonV3Voice. */
4042
String EN_US_ALLISONV3VOICE = "en-US_AllisonV3Voice";
43+
/** en-US_EmilyV3Voice. */
44+
String EN_US_EMILYV3VOICE = "en-US_EmilyV3Voice";
45+
/** en-US_HenryV3Voice. */
46+
String EN_US_HENRYV3VOICE = "en-US_HenryV3Voice";
47+
/** en-US_KevinV3Voice. */
48+
String EN_US_KEVINV3VOICE = "en-US_KevinV3Voice";
4149
/** en-US_LisaVoice. */
4250
String EN_US_LISAVOICE = "en-US_LisaVoice";
4351
/** en-US_LisaV3Voice. */
@@ -46,6 +54,8 @@ public interface Voice {
4654
String EN_US_MICHAELVOICE = "en-US_MichaelVoice";
4755
/** en-US_MichaelV3Voice. */
4856
String EN_US_MICHAELV3VOICE = "en-US_MichaelV3Voice";
57+
/** en-US_OliviaV3Voice. */
58+
String EN_US_OLIVIAV3VOICE = "en-US_OliviaV3Voice";
4959
/** es-ES_EnriqueVoice. */
5060
String ES_ES_ENRIQUEVOICE = "es-ES_EnriqueVoice";
5161
/** es-ES_EnriqueV3Voice. */
@@ -74,6 +84,10 @@ public interface Voice {
7484
String JA_JP_EMIVOICE = "ja-JP_EmiVoice";
7585
/** ja-JP_EmiV3Voice. */
7686
String JA_JP_EMIV3VOICE = "ja-JP_EmiV3Voice";
87+
/** ko-KR_YoungmiVoice. */
88+
String KO_KR_YOUNGMIVOICE = "ko-KR_YoungmiVoice";
89+
/** ko-KR_YunaVoice. */
90+
String KO_KR_YUNAVOICE = "ko-KR_YunaVoice";
7791
/** nl-NL_EmmaVoice. */
7892
String NL_NL_EMMAVOICE = "nl-NL_EmmaVoice";
7993
/** nl-NL_LiamVoice. */
@@ -246,10 +260,9 @@ public String voice() {
246260
* Gets the customizationId.
247261
*
248262
* <p>The customization ID (GUID) of a custom voice model to use for the synthesis. If a custom
249-
* voice model is specified, it is guaranteed to work only if it matches the language of the
250-
* indicated voice. You must make the request with credentials for the instance of the service
251-
* that owns the custom model. Omit the parameter to use the specified voice with no
252-
* customization.
263+
* voice model is specified, it works only if it matches the language of the indicated voice. You
264+
* must make the request with credentials for the instance of the service that owns the custom
265+
* model. Omit the parameter to use the specified voice with no customization.
253266
*
254267
* @return the customizationId
255268
*/

text-to-speech/src/main/java/com/ibm/watson/text_to_speech/v1/model/Translation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ public Builder newBuilder() {
142142
*
143143
* <p>The phonetic or sounds-like translation for the word. A phonetic translation is based on the
144144
* SSML format for representing the phonetic string of a word either as an IPA translation or as
145-
* an IBM SPR translation. A sounds-like is one or more words that, when combined, sound like the
146-
* word.
145+
* an IBM SPR translation. The Arabic, Chinese, Dutch, and Korean languages support only IPA. A
146+
* sounds-like is one or more words that, when combined, sound like the word.
147147
*
148148
* @return the translation
149149
*/

text-to-speech/src/main/java/com/ibm/watson/text_to_speech/v1/model/Word.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public Builder newBuilder() {
158158
/**
159159
* Gets the word.
160160
*
161-
* <p>The word for the custom voice model.
161+
* <p>The word for the custom voice model. The maximum length of a word is 49 characters.
162162
*
163163
* @return the word
164164
*/
@@ -171,8 +171,9 @@ public String word() {
171171
*
172172
* <p>The phonetic or sounds-like translation for the word. A phonetic translation is based on the
173173
* SSML format for representing the phonetic string of a word either as an IPA or IBM SPR
174-
* translation. A sounds-like translation consists of one or more words that, when combined, sound
175-
* like the word.
174+
* translation. The Arabic, Chinese, Dutch, and Korean languages support only IPA. A sounds-like
175+
* translation consists of one or more words that, when combined, sound like the word. The maximum
176+
* length of a translation is 499 characters.
176177
*
177178
* @return the translation
178179
*/

0 commit comments

Comments
 (0)