1
1
# coding: utf-8
2
2
3
- # (C) Copyright IBM Corp. 2015, 2024 .
3
+ # (C) Copyright IBM Corp. 2015, 2025 .
4
4
#
5
5
# Licensed under the Apache License, Version 2.0 (the "License");
6
6
# you may not use this file except in compliance with the License.
14
14
# See the License for the specific language governing permissions and
15
15
# limitations under the License.
16
16
17
- # IBM OpenAPI SDK Code Generator Version: 3.97 .0-0e90eab1-20241120-170029
17
+ # IBM OpenAPI SDK Code Generator Version: 3.105 .0-3c13b041-20250605-193116
18
18
"""
19
19
The IBM Watson™ Text to Speech service provides APIs that use IBM's speech-synthesis
20
20
capabilities to synthesize text into natural-sounding speech in a variety of languages,
@@ -232,31 +232,32 @@ def synthesize(
232
232
* `audio/alaw` - You must specify the `rate` of the audio.
233
233
* `audio/basic` - The service returns audio with a sampling rate of 8000 Hz.
234
234
* `audio/flac` - You can optionally specify the `rate` of the audio. The default
235
- sampling rate is 22,050 Hz.
235
+ sampling rate is 24,000 Hz for Natural voices and 22,050 Hz for all other voices .
236
236
* `audio/l16` - You must specify the `rate` of the audio. You can optionally
237
237
specify the `endianness` of the audio. The default endianness is `little-endian`.
238
238
* `audio/mp3` - You can optionally specify the `rate` of the audio. The default
239
- sampling rate is 22,050 Hz.
239
+ sampling rate is 24,000 Hz for Natural voices and 22,050 Hz for for all other
240
+ voices.
240
241
* `audio/mpeg` - You can optionally specify the `rate` of the audio. The default
241
- sampling rate is 22,050 Hz.
242
+ sampling rate is 24,000 Hz for Natural voices and 22,050 Hz for all other voices .
242
243
* `audio/mulaw` - You must specify the `rate` of the audio.
243
244
* `audio/ogg` - The service returns the audio in the `vorbis` codec. You can
244
- optionally specify the `rate` of the audio. The default sampling rate is 22,050
245
+ optionally specify the `rate` of the audio. The default sampling rate is 48,000
245
246
Hz.
246
247
* `audio/ogg;codecs=opus` - You can optionally specify the `rate` of the audio.
247
248
Only the following values are valid sampling rates: `48000`, `24000`, `16000`,
248
249
`12000`, or `8000`. If you specify a value other than one of these, the service
249
250
returns an error. The default sampling rate is 48,000 Hz.
250
251
* `audio/ogg;codecs=vorbis` - You can optionally specify the `rate` of the audio.
251
- The default sampling rate is 22,050 Hz.
252
+ The default sampling rate is 48,000 Hz.
252
253
* `audio/wav` - You can optionally specify the `rate` of the audio. The default
253
- sampling rate is 22,050 Hz.
254
+ sampling rate is 24,000 Hz for Natural voices and 22,050 Hz for all other voices .
254
255
* `audio/webm` - The service returns the audio in the `opus` codec. The service
255
256
returns audio with a sampling rate of 48,000 Hz.
256
257
* `audio/webm;codecs=opus` - The service returns audio with a sampling rate of
257
258
48,000 Hz.
258
259
* `audio/webm;codecs=vorbis` - You can optionally specify the `rate` of the audio.
259
- The default sampling rate is 22,050 Hz.
260
+ The default sampling rate is 48,000 Hz.
260
261
For more information about specifying an audio format, including additional
261
262
details about some of the formats, see [Using audio
262
263
formats](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-audio-formats).
@@ -1808,10 +1809,12 @@ class Voice(str, Enum):
1808
1809
EN_AU_HEIDIEXPRESSIVE = 'en-AU_HeidiExpressive'
1809
1810
EN_AU_JACKEXPRESSIVE = 'en-AU_JackExpressive'
1810
1811
EN_GB_CHARLOTTEV3VOICE = 'en-GB_CharlotteV3Voice'
1812
+ EN_GB_GEORGEEXPRESSIVE = 'en-GB_GeorgeExpressive'
1811
1813
EN_GB_JAMESV3VOICE = 'en-GB_JamesV3Voice'
1812
1814
EN_GB_KATEV3VOICE = 'en-GB_KateV3Voice'
1813
1815
EN_US_ALLISONEXPRESSIVE = 'en-US_AllisonExpressive'
1814
1816
EN_US_ALLISONV3VOICE = 'en-US_AllisonV3Voice'
1817
+ EN_US_ELLIENATURAL = 'en-US_EllieNatural'
1815
1818
EN_US_EMILYV3VOICE = 'en-US_EmilyV3Voice'
1816
1819
EN_US_EMMAEXPRESSIVE = 'en-US_EmmaExpressive'
1817
1820
EN_US_HENRYV3VOICE = 'en-US_HenryV3Voice'
@@ -1823,6 +1826,7 @@ class Voice(str, Enum):
1823
1826
EN_US_OLIVIAV3VOICE = 'en-US_OliviaV3Voice'
1824
1827
ES_ES_ENRIQUEV3VOICE = 'es-ES_EnriqueV3Voice'
1825
1828
ES_ES_LAURAV3VOICE = 'es-ES_LauraV3Voice'
1829
+ ES_LA_DANIELAEXPRESSIVE = 'es-LA_DanielaExpressive'
1826
1830
ES_LA_SOFIAV3VOICE = 'es-LA_SofiaV3Voice'
1827
1831
ES_US_SOFIAV3VOICE = 'es-US_SofiaV3Voice'
1828
1832
FR_CA_LOUISEV3VOICE = 'fr-CA_LouiseV3Voice'
@@ -1833,6 +1837,7 @@ class Voice(str, Enum):
1833
1837
KO_KR_JINV3VOICE = 'ko-KR_JinV3Voice'
1834
1838
NL_NL_MERELV3VOICE = 'nl-NL_MerelV3Voice'
1835
1839
PT_BR_ISABELAV3VOICE = 'pt-BR_IsabelaV3Voice'
1840
+ PT_BR_LUCASEXPRESSIVE = 'pt-BR_LucasExpressive'
1836
1841
1837
1842
1838
1843
class SynthesizeEnums :
@@ -1883,10 +1888,12 @@ class Voice(str, Enum):
1883
1888
EN_AU_HEIDIEXPRESSIVE = 'en-AU_HeidiExpressive'
1884
1889
EN_AU_JACKEXPRESSIVE = 'en-AU_JackExpressive'
1885
1890
EN_GB_CHARLOTTEV3VOICE = 'en-GB_CharlotteV3Voice'
1891
+ EN_GB_GEORGEEXPRESSIVE = 'en-GB_GeorgeExpressive'
1886
1892
EN_GB_JAMESV3VOICE = 'en-GB_JamesV3Voice'
1887
1893
EN_GB_KATEV3VOICE = 'en-GB_KateV3Voice'
1888
1894
EN_US_ALLISONEXPRESSIVE = 'en-US_AllisonExpressive'
1889
1895
EN_US_ALLISONV3VOICE = 'en-US_AllisonV3Voice'
1896
+ EN_US_ELLIENATURAL = 'en-US_EllieNatural'
1890
1897
EN_US_EMILYV3VOICE = 'en-US_EmilyV3Voice'
1891
1898
EN_US_EMMAEXPRESSIVE = 'en-US_EmmaExpressive'
1892
1899
EN_US_HENRYV3VOICE = 'en-US_HenryV3Voice'
@@ -1898,6 +1905,7 @@ class Voice(str, Enum):
1898
1905
EN_US_OLIVIAV3VOICE = 'en-US_OliviaV3Voice'
1899
1906
ES_ES_ENRIQUEV3VOICE = 'es-ES_EnriqueV3Voice'
1900
1907
ES_ES_LAURAV3VOICE = 'es-ES_LauraV3Voice'
1908
+ ES_LA_DANIELAEXPRESSIVE = 'es-LA_DanielaExpressive'
1901
1909
ES_LA_SOFIAV3VOICE = 'es-LA_SofiaV3Voice'
1902
1910
ES_US_SOFIAV3VOICE = 'es-US_SofiaV3Voice'
1903
1911
FR_CA_LOUISEV3VOICE = 'fr-CA_LouiseV3Voice'
@@ -1908,6 +1916,7 @@ class Voice(str, Enum):
1908
1916
KO_KR_JINV3VOICE = 'ko-KR_JinV3Voice'
1909
1917
NL_NL_MERELV3VOICE = 'nl-NL_MerelV3Voice'
1910
1918
PT_BR_ISABELAV3VOICE = 'pt-BR_IsabelaV3Voice'
1919
+ PT_BR_LUCASEXPRESSIVE = 'pt-BR_LucasExpressive'
1911
1920
1912
1921
class SpellOutMode (str , Enum ):
1913
1922
"""
@@ -1957,10 +1966,12 @@ class Voice(str, Enum):
1957
1966
EN_AU_HEIDIEXPRESSIVE = 'en-AU_HeidiExpressive'
1958
1967
EN_AU_JACKEXPRESSIVE = 'en-AU_JackExpressive'
1959
1968
EN_GB_CHARLOTTEV3VOICE = 'en-GB_CharlotteV3Voice'
1969
+ EN_GB_GEORGEEXPRESSIVE = 'en-GB_GeorgeExpressive'
1960
1970
EN_GB_JAMESV3VOICE = 'en-GB_JamesV3Voice'
1961
1971
EN_GB_KATEV3VOICE = 'en-GB_KateV3Voice'
1962
1972
EN_US_ALLISONEXPRESSIVE = 'en-US_AllisonExpressive'
1963
1973
EN_US_ALLISONV3VOICE = 'en-US_AllisonV3Voice'
1974
+ EN_US_ELLIENATURAL = 'en-US_EllieNatural'
1964
1975
EN_US_EMILYV3VOICE = 'en-US_EmilyV3Voice'
1965
1976
EN_US_EMMAEXPRESSIVE = 'en-US_EmmaExpressive'
1966
1977
EN_US_HENRYV3VOICE = 'en-US_HenryV3Voice'
@@ -1972,6 +1983,7 @@ class Voice(str, Enum):
1972
1983
EN_US_OLIVIAV3VOICE = 'en-US_OliviaV3Voice'
1973
1984
ES_ES_ENRIQUEV3VOICE = 'es-ES_EnriqueV3Voice'
1974
1985
ES_ES_LAURAV3VOICE = 'es-ES_LauraV3Voice'
1986
+ ES_LA_DANIELAEXPRESSIVE = 'es-LA_DanielaExpressive'
1975
1987
ES_LA_SOFIAV3VOICE = 'es-LA_SofiaV3Voice'
1976
1988
ES_US_SOFIAV3VOICE = 'es-US_SofiaV3Voice'
1977
1989
FR_CA_LOUISEV3VOICE = 'fr-CA_LouiseV3Voice'
@@ -1982,6 +1994,7 @@ class Voice(str, Enum):
1982
1994
KO_KR_JINV3VOICE = 'ko-KR_JinV3Voice'
1983
1995
NL_NL_MERELV3VOICE = 'nl-NL_MerelV3Voice'
1984
1996
PT_BR_ISABELAV3VOICE = 'pt-BR_IsabelaV3Voice'
1997
+ PT_BR_LUCASEXPRESSIVE = 'pt-BR_LucasExpressive'
1985
1998
1986
1999
class Format (str , Enum ):
1987
2000
"""
0 commit comments