diff --git a/test/unit/text-to-speech.v1.test.js b/test/unit/text-to-speech.v1.test.js index 52e22fcfea..fe0b08bce8 100644 --- a/test/unit/text-to-speech.v1.test.js +++ b/test/unit/text-to-speech.v1.test.js @@ -1,5 +1,5 @@ /** - * (C) Copyright IBM Corp. 2018, 2021. + * (C) Copyright IBM Corp. 2022. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/text-to-speech/v1-generated.ts b/text-to-speech/v1-generated.ts index edf9ef5a86..88e92f41be 100644 --- a/text-to-speech/v1-generated.ts +++ b/text-to-speech/v1-generated.ts @@ -1,5 +1,5 @@ /** - * (C) Copyright IBM Corp. 2017, 2021. + * (C) Copyright IBM Corp. 2017, 2022. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -44,15 +44,13 @@ import { getSdkHeaders } from '../lib/common'; * words. A sounds-like translation consists of one or more words that, when combined, sound like the word. A phonetic * translation is based on the SSML phoneme format for representing a word. You can specify a phonetic translation in * standard International Phonetic Alphabet (IPA) representation or in the proprietary IBM Symbolic Phonetic - * Representation (SPR). + * Representation (SPR). For phonetic translation, the Arabic, Chinese, Dutch, Australian English, Korean, and Swedish + * voices support only IPA, not SPR. * * The service also offers a Tune by Example feature that lets you define custom prompts. You can also define speaker * models to improve the quality of your custom prompts. The service support custom prompts only for US English custom * models and voices. * - * **IBM Cloud®.** The Arabic, Chinese, Dutch, Australian English, and Korean languages and voices are supported - * only for IBM Cloud. For phonetic translation, they support only IPA, not SPR. - * * API Version: 1.0.0 * See: https://cloud.ibm.com/docs/text-to-speech */ @@ -151,30 +149,12 @@ class TextToSpeechV1 extends BaseService { * **See also:** [Listing a specific * voice](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-voices#listVoice). * - * ### Important voice updates for IBM Cloud - * - * The service's voices underwent significant change on 2 December 2020. - * * The Arabic, Chinese, Dutch, Australian English, and Korean voices are now neural instead of concatenative. - * * The `ar-AR_OmarVoice` voice is deprecated. Use `ar-MS_OmarVoice` voice instead. - * * The `ar-AR` language identifier cannot be used to create a custom model. Use the `ar-MS` identifier instead. - * * The standard concatenative voices for the following languages are now deprecated: Brazilian Portuguese, United - * Kingdom and United States English, French, German, Italian, Japanese, and Spanish (all dialects). - * * The features expressive SSML, voice transformation SSML, and use of the `volume` attribute of the `` - * element are deprecated and are not supported with any of the service's neural voices. - * * All of the service's voices are now customizable and generally available (GA) for production use. - * - * The deprecated voices and features will continue to function for at least one year but might be removed at a future - * date. You are encouraged to migrate to the equivalent neural voices at your earliest convenience. For more - * information about all voice updates, see the [2 December 2020 service - * update](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-release-notes#December2020) in the release - * notes for IBM Cloud. + * **Note:** The Arabic, Chinese, Czech, Dutch (Belgian and Netherlands), Australian English, Korean, and Swedish + * languages and voices are supported only for IBM Cloud; they are deprecated for IBM Cloud Pak for Data. Also, the + * `ar-AR_OmarVoice` voice is deprecated; use the `ar-MS_OmarVoice` voice instead. * * @param {Object} params - The parameters to send to the service. - * @param {string} params.voice - The voice for which information is to be returned. For more information about - * specifying a voice, see **Important voice updates for IBM Cloud** in the method description. - * - * **IBM Cloud:** The Arabic, Chinese, Dutch, Australian English, and Korean languages and voices are supported only - * for IBM Cloud. + * @param {string} params.voice - The voice for which information is to be returned. * @param {string} [params.customizationId] - The customization ID (GUID) of a custom model for which information is * to be returned. You must make the request with credentials for the instance of the service that owns the custom * model. Omit the parameter to see information about the specified voice with no customization. @@ -244,6 +224,10 @@ class TextToSpeechV1 extends BaseService { * **See also:** [The HTTP * interface](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-usingHTTP#usingHTTP). * + * **Note:** The Arabic, Chinese, Czech, Dutch (Belgian and Netherlands), Australian English, Korean, and Swedish + * languages and voices are supported only for IBM Cloud; they are deprecated for IBM Cloud Pak for Data. Also, the + * `ar-AR_OmarVoice` voice is deprecated; use the `ar-MS_OmarVoice` voice instead. + * * ### Audio formats (accept types) * * The service can return audio in the following formats (MIME types). @@ -280,24 +264,6 @@ class TextToSpeechV1 extends BaseService { * For more information about specifying an audio format, including additional details about some of the formats, see * [Using audio formats](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-audio-formats). * - * ### Important voice updates for IBM Cloud - * - * The service's voices underwent significant change on 2 December 2020. - * * The Arabic, Chinese, Dutch, Australian English, and Korean voices are now neural instead of concatenative. - * * The `ar-AR_OmarVoice` voice is deprecated. Use `ar-MS_OmarVoice` voice instead. - * * The `ar-AR` language identifier cannot be used to create a custom model. Use the `ar-MS` identifier instead. - * * The standard concatenative voices for the following languages are now deprecated: Brazilian Portuguese, United - * Kingdom and United States English, French, German, Italian, Japanese, and Spanish (all dialects). - * * The features expressive SSML, voice transformation SSML, and use of the `volume` attribute of the `` - * element are deprecated and are not supported with any of the service's neural voices. - * * All of the service's voices are now customizable and generally available (GA) for production use. - * - * The deprecated voices and features will continue to function for at least one year but might be removed at a future - * date. You are encouraged to migrate to the equivalent neural voices at your earliest convenience. For more - * information about all voice updates, see the [2 December 2020 service - * update](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-release-notes#December2020) in the release - * notes for IBM Cloud. - * * ### Warning messages * * If a request includes invalid query parameters, the service returns a `Warnings` response header that provides @@ -310,11 +276,13 @@ class TextToSpeechV1 extends BaseService { * @param {string} [params.accept] - The requested format (MIME type) of the audio. You can use the `Accept` header or * the `accept` parameter to specify the audio format. For more information about specifying an audio format, see * **Audio formats (accept types)** in the method description. - * @param {string} [params.voice] - The voice to use for synthesis. For more information about specifying a voice, see - * **Important voice updates for IBM Cloud** in the method description. - * - * **IBM Cloud:** The Arabic, Chinese, Dutch, Australian English, and Korean languages and voices are supported only - * for IBM Cloud. + * @param {string} [params.voice] - The voice to use for synthesis. If you omit the `voice` parameter, the service + * uses a default voice, which depends on the version of the service that you are using: + * * _For IBM Cloud,_ the service always uses the US English `en-US_MichaelV3Voice` by default. + * * _For IBM Cloud Pak for Data,_ the default voice depends on the voices that you installed. If you installed the + * _enhanced neural voices_, the service uses the US English `en-US_MichaelV3Voice` by default; if that voice is not + * installed, you must specify a voice. If you installed the _neural voices_, the service always uses the Australian + * English `en-AU_MadisonVoice` by default. * * **See also:** See also [Using languages and * voices](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-voices). @@ -388,32 +356,14 @@ class TextToSpeechV1 extends BaseService { * **See also:** [Querying a word from a * language](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customWords#cuWordsQueryLanguage). * - * ### Important voice updates for IBM Cloud - * - * The service's voices underwent significant change on 2 December 2020. - * * The Arabic, Chinese, Dutch, Australian English, and Korean voices are now neural instead of concatenative. - * * The `ar-AR_OmarVoice` voice is deprecated. Use `ar-MS_OmarVoice` voice instead. - * * The `ar-AR` language identifier cannot be used to create a custom model. Use the `ar-MS` identifier instead. - * * The standard concatenative voices for the following languages are now deprecated: Brazilian Portuguese, United - * Kingdom and United States English, French, German, Italian, Japanese, and Spanish (all dialects). - * * The features expressive SSML, voice transformation SSML, and use of the `volume` attribute of the `` - * element are deprecated and are not supported with any of the service's neural voices. - * * All of the service's voices are now customizable and generally available (GA) for production use. - * - * The deprecated voices and features will continue to function for at least one year but might be removed at a future - * date. You are encouraged to migrate to the equivalent neural voices at your earliest convenience. For more - * information about all voice updates, see the [2 December 2020 service - * update](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-release-notes#December2020) in the release - * notes for IBM Cloud. + * **Note:** The Arabic, Chinese, Czech, Dutch (Belgian and Netherlands), Australian English, Korean, and Swedish + * languages and voices are supported only for IBM Cloud; they are deprecated for IBM Cloud Pak for Data. Also, the + * `ar-AR_OmarVoice` voice is deprecated; use the `ar-MS_OmarVoice` voice instead. * * @param {Object} params - The parameters to send to the service. * @param {string} params.text - The word for which the pronunciation is requested. * @param {string} [params.voice] - A voice that specifies the language in which the pronunciation is to be returned. - * All voices for the same language (for example, `en-US`) return the same translation. For more information about - * specifying a voice, see **Important voice updates for IBM Cloud** in the method description. - * - * **IBM Cloud:** The Arabic, Chinese, Dutch, Australian English, and Korean languages and voices are supported only - * for IBM Cloud. + * All voices for the same language (for example, `en-US`) return the same translation. * @param {string} [params.format] - The phoneme format in which to return the pronunciation. The Arabic, Chinese, * Dutch, Australian English, and Korean languages support only IPA. Omit the parameter to obtain the pronunciation in * the default format. @@ -483,33 +433,19 @@ class TextToSpeechV1 extends BaseService { * **See also:** [Creating a custom * model](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customModels#cuModelsCreate). * - * ### Important voice updates for IBM Cloud - * - * The service's voices underwent significant change on 2 December 2020. - * * The Arabic, Chinese, Dutch, Australian English, and Korean voices are now neural instead of concatenative. - * * The `ar-AR_OmarVoice` voice is deprecated. Use `ar-MS_OmarVoice` voice instead. - * * The `ar-AR` language identifier cannot be used to create a custom model. Use the `ar-MS` identifier instead. - * * The standard concatenative voices for the following languages are now deprecated: Brazilian Portuguese, United - * Kingdom and United States English, French, German, Italian, Japanese, and Spanish (all dialects). - * * The features expressive SSML, voice transformation SSML, and use of the `volume` attribute of the `` - * element are deprecated and are not supported with any of the service's neural voices. - * * All of the service's voices are now customizable and generally available (GA) for production use. - * - * The deprecated voices and features will continue to function for at least one year but might be removed at a future - * date. You are encouraged to migrate to the equivalent neural voices at your earliest convenience. For more - * information about all voice updates, see the [2 December 2020 service - * update](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-release-notes#December2020) in the release - * notes for IBM Cloud. + * **Note:** The Arabic, Chinese, Czech, Dutch (Belgian and Netherlands), Australian English, Korean, and Swedish + * languages and voices are supported only for IBM Cloud; they are deprecated for IBM Cloud Pak for Data. Also, the + * `ar-AR` language identifier cannot be used to create a custom model; use the `ar-MS` identifier instead. * * @param {Object} params - The parameters to send to the service. * @param {string} params.name - The name of the new custom model. * @param {string} [params.language] - The language of the new custom model. You create a custom model for a specific * language, not for a specific voice. A custom model can be used with any voice for its specified language. Omit the - * parameter to use the the default language, `en-US`. **Note:** The `ar-AR` language identifier cannot be used to - * create a custom model. Use the `ar-MS` identifier instead. + * parameter to use the the default language, `en-US`. * - * **IBM Cloud:** The Arabic, Chinese, Dutch, Australian English, and Korean languages and voices are supported only - * for IBM Cloud. + * **Important:** If you are using the service on IBM Cloud Pak for Data _and_ you install the neural voices, the + * `language`parameter is required. You must specify the language for the custom model in the indicated format (for + * example, `en-AU` for Australian English). The request fails if you do not specify a language. * @param {string} [params.description] - A description of the new custom model. Specifying a description is * recommended. * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers @@ -1879,12 +1815,7 @@ namespace TextToSpeechV1 { /** Parameters for the `getVoice` operation. */ export interface GetVoiceParams { - /** The voice for which information is to be returned. For more information about specifying a voice, see - * **Important voice updates for IBM Cloud** in the method description. - * - * **IBM Cloud:** The Arabic, Chinese, Dutch, Australian English, and Korean languages and voices are supported - * only for IBM Cloud. - */ + /** The voice for which information is to be returned. */ voice: GetVoiceConstants.Voice | string; /** The customization ID (GUID) of a custom model for which information is to be returned. You must make the * request with credentials for the instance of the service that owns the custom model. Omit the parameter to see @@ -1896,17 +1827,19 @@ namespace TextToSpeechV1 { /** Constants for the `getVoice` operation. */ export namespace GetVoiceConstants { - /** The voice for which information is to be returned. For more information about specifying a voice, see **Important voice updates for IBM Cloud** in the method description. **IBM Cloud:** The Arabic, Chinese, Dutch, Australian English, and Korean languages and voices are supported only for IBM Cloud. */ + /** The voice for which information is to be returned. */ export enum Voice { AR_AR_OMARVOICE = 'ar-AR_OmarVoice', AR_MS_OMARVOICE = 'ar-MS_OmarVoice', + CS_CZ_ALENAVOICE = 'cs-CZ_AlenaVoice', DE_DE_BIRGITVOICE = 'de-DE_BirgitVoice', DE_DE_BIRGITV3VOICE = 'de-DE_BirgitV3Voice', DE_DE_DIETERVOICE = 'de-DE_DieterVoice', DE_DE_DIETERV3VOICE = 'de-DE_DieterV3Voice', DE_DE_ERIKAV3VOICE = 'de-DE_ErikaV3Voice', - EN_AU_CRAIGVOICE = 'en-AU-CraigVoice', - EN_AU_MADISONVOICE = 'en-AU-MadisonVoice', + EN_AU_CRAIGVOICE = 'en-AU_CraigVoice', + EN_AU_MADISONVOICE = 'en-AU_MadisonVoice', + EN_AU_STEVEVOICE = 'en-AU_SteveVoice', EN_GB_CHARLOTTEV3VOICE = 'en-GB_CharlotteV3Voice', EN_GB_JAMESV3VOICE = 'en-GB_JamesV3Voice', EN_GB_KATEVOICE = 'en-GB_KateVoice', @@ -1942,10 +1875,12 @@ namespace TextToSpeechV1 { KO_KR_YOUNGMIVOICE = 'ko-KR_YoungmiVoice', KO_KR_YUNAVOICE = 'ko-KR_YunaVoice', NL_BE_ADELEVOICE = 'nl-BE_AdeleVoice', + NL_BE_BRAMVOICE = 'nl-BE_BramVoice', NL_NL_EMMAVOICE = 'nl-NL_EmmaVoice', NL_NL_LIAMVOICE = 'nl-NL_LiamVoice', PT_BR_ISABELAVOICE = 'pt-BR_IsabelaVoice', PT_BR_ISABELAV3VOICE = 'pt-BR_IsabelaV3Voice', + SV_SE_INGRIDVOICE = 'sv-SE_IngridVoice', ZH_CN_LINAVOICE = 'zh-CN_LiNaVoice', ZH_CN_WANGWEIVOICE = 'zh-CN_WangWeiVoice', ZH_CN_ZHANGJINGVOICE = 'zh-CN_ZhangJingVoice', @@ -1961,11 +1896,13 @@ namespace TextToSpeechV1 { * types)** in the method description. */ accept?: SynthesizeConstants.Accept | string; - /** The voice to use for synthesis. For more information about specifying a voice, see **Important voice updates - * for IBM Cloud** in the method description. - * - * **IBM Cloud:** The Arabic, Chinese, Dutch, Australian English, and Korean languages and voices are supported - * only for IBM Cloud. + /** The voice to use for synthesis. If you omit the `voice` parameter, the service uses a default voice, which + * depends on the version of the service that you are using: + * * _For IBM Cloud,_ the service always uses the US English `en-US_MichaelV3Voice` by default. + * * _For IBM Cloud Pak for Data,_ the default voice depends on the voices that you installed. If you installed the + * _enhanced neural voices_, the service uses the US English `en-US_MichaelV3Voice` by default; if that voice is + * not installed, you must specify a voice. If you installed the _neural voices_, the service always uses the + * Australian English `en-AU_MadisonVoice` by default. * * **See also:** See also [Using languages and * voices](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-voices). @@ -1998,17 +1935,19 @@ namespace TextToSpeechV1 { AUDIO_WEBM_CODECS_OPUS = 'audio/webm;codecs=opus', AUDIO_WEBM_CODECS_VORBIS = 'audio/webm;codecs=vorbis', } - /** The voice to use for synthesis. For more information about specifying a voice, see **Important voice updates for IBM Cloud** in the method description. **IBM Cloud:** The Arabic, Chinese, Dutch, Australian English, and Korean languages and voices are supported only for IBM Cloud. **See also:** See also [Using languages and voices](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-voices). */ + /** The voice to use for synthesis. If you omit the `voice` parameter, the service uses a default voice, which depends on the version of the service that you are using: * _For IBM Cloud,_ the service always uses the US English `en-US_MichaelV3Voice` by default. * _For IBM Cloud Pak for Data,_ the default voice depends on the voices that you installed. If you installed the _enhanced neural voices_, the service uses the US English `en-US_MichaelV3Voice` by default; if that voice is not installed, you must specify a voice. If you installed the _neural voices_, the service always uses the Australian English `en-AU_MadisonVoice` by default. **See also:** See also [Using languages and voices](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-voices). */ export enum Voice { AR_AR_OMARVOICE = 'ar-AR_OmarVoice', AR_MS_OMARVOICE = 'ar-MS_OmarVoice', + CS_CZ_ALENAVOICE = 'cs-CZ_AlenaVoice', DE_DE_BIRGITVOICE = 'de-DE_BirgitVoice', DE_DE_BIRGITV3VOICE = 'de-DE_BirgitV3Voice', DE_DE_DIETERVOICE = 'de-DE_DieterVoice', DE_DE_DIETERV3VOICE = 'de-DE_DieterV3Voice', DE_DE_ERIKAV3VOICE = 'de-DE_ErikaV3Voice', - EN_AU_CRAIGVOICE = 'en-AU-CraigVoice', - EN_AU_MADISONVOICE = 'en-AU-MadisonVoice', + EN_AU_CRAIGVOICE = 'en-AU_CraigVoice', + EN_AU_MADISONVOICE = 'en-AU_MadisonVoice', + EN_AU_STEVEVOICE = 'en-AU_SteveVoice', EN_GB_CHARLOTTEV3VOICE = 'en-GB_CharlotteV3Voice', EN_GB_JAMESV3VOICE = 'en-GB_JamesV3Voice', EN_GB_KATEVOICE = 'en-GB_KateVoice', @@ -2044,10 +1983,12 @@ namespace TextToSpeechV1 { KO_KR_YOUNGMIVOICE = 'ko-KR_YoungmiVoice', KO_KR_YUNAVOICE = 'ko-KR_YunaVoice', NL_BE_ADELEVOICE = 'nl-BE_AdeleVoice', + NL_BE_BRAMVOICE = 'nl-BE_BramVoice', NL_NL_EMMAVOICE = 'nl-NL_EmmaVoice', NL_NL_LIAMVOICE = 'nl-NL_LiamVoice', PT_BR_ISABELAVOICE = 'pt-BR_IsabelaVoice', PT_BR_ISABELAV3VOICE = 'pt-BR_IsabelaV3Voice', + SV_SE_INGRIDVOICE = 'sv-SE_IngridVoice', ZH_CN_LINAVOICE = 'zh-CN_LiNaVoice', ZH_CN_WANGWEIVOICE = 'zh-CN_WangWeiVoice', ZH_CN_ZHANGJINGVOICE = 'zh-CN_ZhangJingVoice', @@ -2059,11 +2000,7 @@ namespace TextToSpeechV1 { /** The word for which the pronunciation is requested. */ text: string; /** A voice that specifies the language in which the pronunciation is to be returned. All voices for the same - * language (for example, `en-US`) return the same translation. For more information about specifying a voice, see - * **Important voice updates for IBM Cloud** in the method description. - * - * **IBM Cloud:** The Arabic, Chinese, Dutch, Australian English, and Korean languages and voices are supported - * only for IBM Cloud. + * language (for example, `en-US`) return the same translation. */ voice?: GetPronunciationConstants.Voice | string; /** The phoneme format in which to return the pronunciation. The Arabic, Chinese, Dutch, Australian English, and @@ -2082,17 +2019,19 @@ namespace TextToSpeechV1 { /** Constants for the `getPronunciation` operation. */ export namespace GetPronunciationConstants { - /** A voice that specifies the language in which the pronunciation is to be returned. All voices for the same language (for example, `en-US`) return the same translation. For more information about specifying a voice, see **Important voice updates for IBM Cloud** in the method description. **IBM Cloud:** The Arabic, Chinese, Dutch, Australian English, and Korean languages and voices are supported only for IBM Cloud. */ + /** A voice that specifies the language in which the pronunciation is to be returned. All voices for the same language (for example, `en-US`) return the same translation. */ export enum Voice { AR_AR_OMARVOICE = 'ar-AR_OmarVoice', AR_MS_OMARVOICE = 'ar-MS_OmarVoice', + CS_CZ_ALENAVOICE = 'cs-CZ_AlenaVoice', DE_DE_BIRGITVOICE = 'de-DE_BirgitVoice', DE_DE_BIRGITV3VOICE = 'de-DE_BirgitV3Voice', DE_DE_DIETERVOICE = 'de-DE_DieterVoice', DE_DE_DIETERV3VOICE = 'de-DE_DieterV3Voice', DE_DE_ERIKAV3VOICE = 'de-DE_ErikaV3Voice', - EN_AU_CRAIGVOICE = 'en-AU-CraigVoice', - EN_AU_MADISONVOICE = 'en-AU-MadisonVoice', + EN_AU_CRAIGVOICE = 'en-AU_CraigVoice', + EN_AU_MADISONVOICE = 'en-AU_MadisonVoice', + EN_AU_STEVEVOICE = 'en-AU_SteveVoice', EN_GB_CHARLOTTEV3VOICE = 'en-GB_CharlotteV3Voice', EN_GB_JAMESV3VOICE = 'en-GB_JamesV3Voice', EN_GB_KATEVOICE = 'en-GB_KateVoice', @@ -2128,10 +2067,12 @@ namespace TextToSpeechV1 { KO_KR_YOUNGMIVOICE = 'ko-KR_YoungmiVoice', KO_KR_YUNAVOICE = 'ko-KR_YunaVoice', NL_BE_ADELEVOICE = 'nl-BE_AdeleVoice', + NL_BE_BRAMVOICE = 'nl-BE_BramVoice', NL_NL_EMMAVOICE = 'nl-NL_EmmaVoice', NL_NL_LIAMVOICE = 'nl-NL_LiamVoice', PT_BR_ISABELAVOICE = 'pt-BR_IsabelaVoice', PT_BR_ISABELAV3VOICE = 'pt-BR_IsabelaV3Voice', + SV_SE_INGRIDVOICE = 'sv-SE_IngridVoice', ZH_CN_LINAVOICE = 'zh-CN_LiNaVoice', ZH_CN_WANGWEIVOICE = 'zh-CN_WangWeiVoice', ZH_CN_ZHANGJINGVOICE = 'zh-CN_ZhangJingVoice', @@ -2149,11 +2090,11 @@ namespace TextToSpeechV1 { name: string; /** The language of the new custom model. You create a custom model for a specific language, not for a specific * voice. A custom model can be used with any voice for its specified language. Omit the parameter to use the the - * default language, `en-US`. **Note:** The `ar-AR` language identifier cannot be used to create a custom model. - * Use the `ar-MS` identifier instead. + * default language, `en-US`. * - * **IBM Cloud:** The Arabic, Chinese, Dutch, Australian English, and Korean languages and voices are supported - * only for IBM Cloud. + * **Important:** If you are using the service on IBM Cloud Pak for Data _and_ you install the neural voices, the + * `language`parameter is required. You must specify the language for the custom model in the indicated format (for + * example, `en-AU` for Australian English). The request fails if you do not specify a language. */ language?: CreateCustomModelConstants.Language | string; /** A description of the new custom model. Specifying a description is recommended. */ @@ -2163,10 +2104,12 @@ namespace TextToSpeechV1 { /** Constants for the `createCustomModel` operation. */ export namespace CreateCustomModelConstants { - /** The language of the new custom model. You create a custom model for a specific language, not for a specific voice. A custom model can be used with any voice for its specified language. Omit the parameter to use the the default language, `en-US`. **Note:** The `ar-AR` language identifier cannot be used to create a custom model. Use the `ar-MS` identifier instead. **IBM Cloud:** The Arabic, Chinese, Dutch, Australian English, and Korean languages and voices are supported only for IBM Cloud. */ + /** The language of the new custom model. You create a custom model for a specific language, not for a specific voice. A custom model can be used with any voice for its specified language. Omit the parameter to use the the default language, `en-US`. **Important:** If you are using the service on IBM Cloud Pak for Data _and_ you install the neural voices, the `language`parameter is required. You must specify the language for the custom model in the indicated format (for example, `en-AU` for Australian English). The request fails if you do not specify a language. */ export enum Language { AR_MS = 'ar-MS', + CS_CZ = 'cs-CZ', DE_DE = 'de-DE', + EN_AU = 'en-AU', EN_GB = 'en-GB', EN_US = 'en-US', ES_ES = 'es-ES', @@ -2180,6 +2123,7 @@ namespace TextToSpeechV1 { NL_BE = 'nl-BE', NL_NL = 'nl-NL', PT_BR = 'pt-BR', + SV_SE = 'sv-SE', ZH_CN = 'zh-CN', } } @@ -2198,6 +2142,7 @@ namespace TextToSpeechV1 { /** The language for which custom models that are owned by the requesting credentials are to be returned. Omit the parameter to see all custom models that are owned by the requester. */ export enum Language { AR_MS = 'ar-MS', + CS_CZ = 'cs-CZ', DE_DE = 'de-DE', EN_AU = 'en-AU', EN_GB = 'en-GB', @@ -2213,6 +2158,7 @@ namespace TextToSpeechV1 { NL_BE = 'nl-BE', NL_NL = 'nl-NL', PT_BR = 'pt-BR', + SV_SE = 'sv-SE', ZH_CN = 'zh-CN', } }