Skip to content

Commit 1349c6e

Browse files
feat(tts): add new voice models
1 parent a1f2b19 commit 1349c6e

File tree

4 files changed

+73
-18
lines changed

4 files changed

+73
-18
lines changed

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

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -307,24 +307,25 @@ public ServiceCall<Voice> getVoice(GetVoiceOptions getVoiceOptions) {
307307
* format with the Opus codec (`audio/ogg;codecs=opus`). The service always returns single-channel
308308
* audio. * `audio/alaw` - You must specify the `rate` of the audio. * `audio/basic` - The service
309309
* returns audio with a sampling rate of 8000 Hz. * `audio/flac` - You can optionally specify the
310-
* `rate` of the audio. The default sampling rate is 22,050 Hz. * `audio/l16` - You must specify
311-
* the `rate` of the audio. You can optionally specify the `endianness` of the audio. The default
312-
* endianness is `little-endian`. * `audio/mp3` - You can optionally specify the `rate` of the
313-
* audio. The default sampling rate is 24,000 Hz for Natural voices and 22,050 Hz for for all
314-
* other voices. * `audio/mpeg` - You can optionally specify the `rate` of the audio. The default
315-
* sampling rate is 22,050 Hz. * `audio/mulaw` - You must specify the `rate` of the audio. *
316-
* `audio/ogg` - The service returns the audio in the `vorbis` codec. You can optionally specify
317-
* the `rate` of the audio. The default sampling rate is 22,050 Hz. * `audio/ogg;codecs=opus` -
318-
* You can optionally specify the `rate` of the audio. Only the following values are valid
319-
* sampling rates: `48000`, `24000`, `16000`, `12000`, or `8000`. If you specify a value other
320-
* than one of these, the service returns an error. The default sampling rate is 48,000 Hz. *
321-
* `audio/ogg;codecs=vorbis` - You can optionally specify the `rate` of the audio. The default
322-
* sampling rate is 22,050 Hz. * `audio/wav` - You can optionally specify the `rate` of the audio.
323-
* The default sampling rate is 22,050 Hz. * `audio/webm` - The service returns the audio in the
324-
* `opus` codec. The service returns audio with a sampling rate of 48,000 Hz. *
325-
* `audio/webm;codecs=opus` - The service returns audio with a sampling rate of 48,000 Hz. *
326-
* `audio/webm;codecs=vorbis` - You can optionally specify the `rate` of the audio. The default
327-
* sampling rate is 22,050 Hz.
310+
* `rate` of the audio. The default sampling rate is 24,000 Hz for Natural voices and 22,050 Hz
311+
* for all other voices. * `audio/l16` - You must specify the `rate` of the audio. You can
312+
* optionally specify the `endianness` of the audio. The default endianness is `little-endian`. *
313+
* `audio/mp3` - You can optionally specify the `rate` of the audio. The default sampling rate is
314+
* 24,000 Hz for Natural voices and 22,050 Hz for for all other voices. * `audio/mpeg` - You can
315+
* optionally specify the `rate` of the audio. The default sampling rate is 24,000 Hz for Natural
316+
* voices and 22,050 Hz for all other voices. * `audio/mulaw` - You must specify the `rate` of the
317+
* audio. * `audio/ogg` - The service returns the audio in the `vorbis` codec. You can optionally
318+
* specify the `rate` of the audio. The default sampling rate is 48,000 Hz. *
319+
* `audio/ogg;codecs=opus` - You can optionally specify the `rate` of the audio. Only the
320+
* following values are valid sampling rates: `48000`, `24000`, `16000`, `12000`, or `8000`. If
321+
* you specify a value other than one of these, the service returns an error. The default sampling
322+
* rate is 48,000 Hz. * `audio/ogg;codecs=vorbis` - You can optionally specify the `rate` of the
323+
* audio. The default sampling rate is 48,000 Hz. * `audio/wav` - You can optionally specify the
324+
* `rate` of the audio. The default sampling rate is 24,000 Hz for Natural voices and 22,050 Hz
325+
* for all other voices. * `audio/webm` - The service returns the audio in the `opus` codec. The
326+
* service returns audio with a sampling rate of 48,000 Hz. * `audio/webm;codecs=opus` - The
327+
* service returns audio with a sampling rate of 48,000 Hz. * `audio/webm;codecs=vorbis` - You can
328+
* optionally specify the `rate` of the audio. The default sampling rate is 48,000 Hz.
328329
*
329330
* <p>For more information about specifying an audio format, including additional details about
330331
* some of the formats, see [Using audio

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,18 @@ public interface Voice {
4141
String EN_AU_HEIDIEXPRESSIVE = "en-AU_HeidiExpressive";
4242
/** en-AU_JackExpressive. */
4343
String EN_AU_JACKEXPRESSIVE = "en-AU_JackExpressive";
44+
/** en-CA_HannahNatural. */
45+
String EN_CA_HANNAHNATURAL = "en-CA_HannahNatural";
4446
/** en-GB_CharlotteV3Voice. */
4547
String EN_GB_CHARLOTTEV3VOICE = "en-GB_CharlotteV3Voice";
48+
/** en-GB_ChloeNatural. */
49+
String EN_GB_CHLOENATURAL = "en-GB_ChloeNatural";
4650
/** en-GB_GeorgeExpressive. */
4751
String EN_GB_GEORGEEXPRESSIVE = "en-GB_GeorgeExpressive";
4852
/** en-GB_JamesV3Voice. */
4953
String EN_GB_JAMESV3VOICE = "en-GB_JamesV3Voice";
54+
/** en-GB_GeorgeNatural. */
55+
String EN_GB_GEORGENATURAL = "en-GB_GeorgeNatural";
5056
/** en-GB_KateV3Voice. */
5157
String EN_GB_KATEV3VOICE = "en-GB_KateV3Voice";
5258
/** en-US_AllisonExpressive. */
@@ -59,8 +65,14 @@ public interface Voice {
5965
String EN_US_EMILYV3VOICE = "en-US_EmilyV3Voice";
6066
/** en-US_EmmaExpressive. */
6167
String EN_US_EMMAEXPRESSIVE = "en-US_EmmaExpressive";
68+
/** en-US_EmmaNatural. */
69+
String EN_US_EMMANATURAL = "en-US_EmmaNatural";
70+
/** en-US_EthanNatural. */
71+
String EN_US_ETHANNATURAL = "en-US_EthanNatural";
6272
/** en-US_HenryV3Voice. */
6373
String EN_US_HENRYV3VOICE = "en-US_HenryV3Voice";
74+
/** en-US_JacksonNatural. */
75+
String EN_US_JACKSONNATURAL = "en-US_JacksonNatural";
6476
/** en-US_KevinV3Voice. */
6577
String EN_US_KEVINV3VOICE = "en-US_KevinV3Voice";
6678
/** en-US_LisaExpressive. */
@@ -73,6 +85,8 @@ public interface Voice {
7385
String EN_US_MICHAELV3VOICE = "en-US_MichaelV3Voice";
7486
/** en-US_OliviaV3Voice. */
7587
String EN_US_OLIVIAV3VOICE = "en-US_OliviaV3Voice";
88+
/** en-US_VictoriaNatural. */
89+
String EN_US_VICTORIANATURAL = "en-US_VictoriaNatural";
7690
/** es-ES_EnriqueV3Voice. */
7791
String ES_ES_ENRIQUEV3VOICE = "es-ES_EnriqueV3Voice";
7892
/** es-ES_LauraV3Voice. */
@@ -97,10 +111,14 @@ public interface Voice {
97111
String KO_KR_JINV3VOICE = "ko-KR_JinV3Voice";
98112
/** nl-NL_MerelV3Voice. */
99113
String NL_NL_MERELV3VOICE = "nl-NL_MerelV3Voice";
114+
/** pt-BR_CamilaNatural. */
115+
String PT_BR_CAMILANATURAL = "pt-BR_CamilaNatural";
100116
/** pt-BR_IsabelaV3Voice. */
101117
String PT_BR_ISABELAV3VOICE = "pt-BR_IsabelaV3Voice";
102118
/** pt-BR_LucasExpressive. */
103119
String PT_BR_LUCASEXPRESSIVE = "pt-BR_LucasExpressive";
120+
/** pt-BR_LucasNatural. */
121+
String PT_BR_LUCASNATURAL = "pt-BR_LucasNatural";
104122
}
105123

106124
/**

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,18 @@ public interface Voice {
3030
String EN_AU_HEIDIEXPRESSIVE = "en-AU_HeidiExpressive";
3131
/** en-AU_JackExpressive. */
3232
String EN_AU_JACKEXPRESSIVE = "en-AU_JackExpressive";
33+
/** en-CA_HannahNatural. */
34+
String EN_CA_HANNAHNATURAL = "en-CA_HannahNatural";
3335
/** en-GB_CharlotteV3Voice. */
3436
String EN_GB_CHARLOTTEV3VOICE = "en-GB_CharlotteV3Voice";
37+
/** en-GB_ChloeNatural. */
38+
String EN_GB_CHLOENATURAL = "en-GB_ChloeNatural";
3539
/** en-GB_GeorgeExpressive. */
3640
String EN_GB_GEORGEEXPRESSIVE = "en-GB_GeorgeExpressive";
3741
/** en-GB_JamesV3Voice. */
3842
String EN_GB_JAMESV3VOICE = "en-GB_JamesV3Voice";
43+
/** en-GB_GeorgeNatural. */
44+
String EN_GB_GEORGENATURAL = "en-GB_GeorgeNatural";
3945
/** en-GB_KateV3Voice. */
4046
String EN_GB_KATEV3VOICE = "en-GB_KateV3Voice";
4147
/** en-US_AllisonExpressive. */
@@ -48,8 +54,14 @@ public interface Voice {
4854
String EN_US_EMILYV3VOICE = "en-US_EmilyV3Voice";
4955
/** en-US_EmmaExpressive. */
5056
String EN_US_EMMAEXPRESSIVE = "en-US_EmmaExpressive";
57+
/** en-US_EmmaNatural. */
58+
String EN_US_EMMANATURAL = "en-US_EmmaNatural";
59+
/** en-US_EthanNatural. */
60+
String EN_US_ETHANNATURAL = "en-US_EthanNatural";
5161
/** en-US_HenryV3Voice. */
5262
String EN_US_HENRYV3VOICE = "en-US_HenryV3Voice";
63+
/** en-US_JacksonNatural. */
64+
String EN_US_JACKSONNATURAL = "en-US_JacksonNatural";
5365
/** en-US_KevinV3Voice. */
5466
String EN_US_KEVINV3VOICE = "en-US_KevinV3Voice";
5567
/** en-US_LisaExpressive. */
@@ -62,6 +74,8 @@ public interface Voice {
6274
String EN_US_MICHAELV3VOICE = "en-US_MichaelV3Voice";
6375
/** en-US_OliviaV3Voice. */
6476
String EN_US_OLIVIAV3VOICE = "en-US_OliviaV3Voice";
77+
/** en-US_VictoriaNatural. */
78+
String EN_US_VICTORIANATURAL = "en-US_VictoriaNatural";
6579
/** es-ES_EnriqueV3Voice. */
6680
String ES_ES_ENRIQUEV3VOICE = "es-ES_EnriqueV3Voice";
6781
/** es-ES_LauraV3Voice. */
@@ -86,10 +100,14 @@ public interface Voice {
86100
String KO_KR_JINV3VOICE = "ko-KR_JinV3Voice";
87101
/** nl-NL_MerelV3Voice. */
88102
String NL_NL_MERELV3VOICE = "nl-NL_MerelV3Voice";
103+
/** pt-BR_CamilaNatural. */
104+
String PT_BR_CAMILANATURAL = "pt-BR_CamilaNatural";
89105
/** pt-BR_IsabelaV3Voice. */
90106
String PT_BR_ISABELAV3VOICE = "pt-BR_IsabelaV3Voice";
91107
/** pt-BR_LucasExpressive. */
92108
String PT_BR_LUCASEXPRESSIVE = "pt-BR_LucasExpressive";
109+
/** pt-BR_LucasNatural. */
110+
String PT_BR_LUCASNATURAL = "pt-BR_LucasNatural";
93111
}
94112

95113
protected String voice;

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,18 @@ public interface Voice {
4343
String EN_AU_HEIDIEXPRESSIVE = "en-AU_HeidiExpressive";
4444
/** en-AU_JackExpressive. */
4545
String EN_AU_JACKEXPRESSIVE = "en-AU_JackExpressive";
46+
/** en-CA_HannahNatural. */
47+
String EN_CA_HANNAHNATURAL = "en-CA_HannahNatural";
4648
/** en-GB_CharlotteV3Voice. */
4749
String EN_GB_CHARLOTTEV3VOICE = "en-GB_CharlotteV3Voice";
50+
/** en-GB_ChloeNatural. */
51+
String EN_GB_CHLOENATURAL = "en-GB_ChloeNatural";
4852
/** en-GB_GeorgeExpressive. */
4953
String EN_GB_GEORGEEXPRESSIVE = "en-GB_GeorgeExpressive";
5054
/** en-GB_JamesV3Voice. */
5155
String EN_GB_JAMESV3VOICE = "en-GB_JamesV3Voice";
56+
/** en-GB_GeorgeNatural. */
57+
String EN_GB_GEORGENATURAL = "en-GB_GeorgeNatural";
5258
/** en-GB_KateV3Voice. */
5359
String EN_GB_KATEV3VOICE = "en-GB_KateV3Voice";
5460
/** en-US_AllisonExpressive. */
@@ -61,8 +67,14 @@ public interface Voice {
6167
String EN_US_EMILYV3VOICE = "en-US_EmilyV3Voice";
6268
/** en-US_EmmaExpressive. */
6369
String EN_US_EMMAEXPRESSIVE = "en-US_EmmaExpressive";
70+
/** en-US_EmmaNatural. */
71+
String EN_US_EMMANATURAL = "en-US_EmmaNatural";
72+
/** en-US_EthanNatural. */
73+
String EN_US_ETHANNATURAL = "en-US_EthanNatural";
6474
/** en-US_HenryV3Voice. */
6575
String EN_US_HENRYV3VOICE = "en-US_HenryV3Voice";
76+
/** en-US_JacksonNatural. */
77+
String EN_US_JACKSONNATURAL = "en-US_JacksonNatural";
6678
/** en-US_KevinV3Voice. */
6779
String EN_US_KEVINV3VOICE = "en-US_KevinV3Voice";
6880
/** en-US_LisaExpressive. */
@@ -75,6 +87,8 @@ public interface Voice {
7587
String EN_US_MICHAELV3VOICE = "en-US_MichaelV3Voice";
7688
/** en-US_OliviaV3Voice. */
7789
String EN_US_OLIVIAV3VOICE = "en-US_OliviaV3Voice";
90+
/** en-US_VictoriaNatural. */
91+
String EN_US_VICTORIANATURAL = "en-US_VictoriaNatural";
7892
/** es-ES_EnriqueV3Voice. */
7993
String ES_ES_ENRIQUEV3VOICE = "es-ES_EnriqueV3Voice";
8094
/** es-ES_LauraV3Voice. */
@@ -99,10 +113,14 @@ public interface Voice {
99113
String KO_KR_JINV3VOICE = "ko-KR_JinV3Voice";
100114
/** nl-NL_MerelV3Voice. */
101115
String NL_NL_MERELV3VOICE = "nl-NL_MerelV3Voice";
116+
/** pt-BR_CamilaNatural. */
117+
String PT_BR_CAMILANATURAL = "pt-BR_CamilaNatural";
102118
/** pt-BR_IsabelaV3Voice. */
103119
String PT_BR_ISABELAV3VOICE = "pt-BR_IsabelaV3Voice";
104120
/** pt-BR_LucasExpressive. */
105121
String PT_BR_LUCASEXPRESSIVE = "pt-BR_LucasExpressive";
122+
/** pt-BR_LucasNatural. */
123+
String PT_BR_LUCASNATURAL = "pt-BR_LucasNatural";
106124
}
107125

108126
/**

0 commit comments

Comments
 (0)