diff --git a/clients/client-polly/src/commands/DescribeVoicesCommand.ts b/clients/client-polly/src/commands/DescribeVoicesCommand.ts index 9772ad983bb0..2bed3b7efede 100644 --- a/clients/client-polly/src/commands/DescribeVoicesCommand.ts +++ b/clients/client-polly/src/commands/DescribeVoicesCommand.ts @@ -50,7 +50,7 @@ export interface DescribeVoicesCommandOutput extends DescribeVoicesOutput, __Met * // const { PollyClient, DescribeVoicesCommand } = require("@aws-sdk/client-polly"); // CommonJS import * const client = new PollyClient(config); * const input = { // DescribeVoicesInput - * Engine: "standard" || "neural" || "long-form", + * Engine: "standard" || "neural" || "long-form" || "generative", * LanguageCode: "arb" || "cmn-CN" || "cy-GB" || "da-DK" || "de-DE" || "en-AU" || "en-GB" || "en-GB-WLS" || "en-IN" || "en-US" || "es-ES" || "es-MX" || "es-US" || "fr-CA" || "fr-FR" || "is-IS" || "it-IT" || "ja-JP" || "hi-IN" || "ko-KR" || "nb-NO" || "nl-NL" || "pl-PL" || "pt-BR" || "pt-PT" || "ro-RO" || "ru-RU" || "sv-SE" || "tr-TR" || "en-NZ" || "en-ZA" || "ca-ES" || "de-AT" || "yue-CN" || "ar-AE" || "fi-FI" || "en-IE" || "nl-BE" || "fr-BE", * IncludeAdditionalLanguageCodes: true || false, * NextToken: "STRING_VALUE", @@ -69,7 +69,7 @@ export interface DescribeVoicesCommandOutput extends DescribeVoicesOutput, __Met * // "arb" || "cmn-CN" || "cy-GB" || "da-DK" || "de-DE" || "en-AU" || "en-GB" || "en-GB-WLS" || "en-IN" || "en-US" || "es-ES" || "es-MX" || "es-US" || "fr-CA" || "fr-FR" || "is-IS" || "it-IT" || "ja-JP" || "hi-IN" || "ko-KR" || "nb-NO" || "nl-NL" || "pl-PL" || "pt-BR" || "pt-PT" || "ro-RO" || "ru-RU" || "sv-SE" || "tr-TR" || "en-NZ" || "en-ZA" || "ca-ES" || "de-AT" || "yue-CN" || "ar-AE" || "fi-FI" || "en-IE" || "nl-BE" || "fr-BE", * // ], * // SupportedEngines: [ // EngineList - * // "standard" || "neural" || "long-form", + * // "standard" || "neural" || "long-form" || "generative", * // ], * // }, * // ], diff --git a/clients/client-polly/src/commands/GetSpeechSynthesisTaskCommand.ts b/clients/client-polly/src/commands/GetSpeechSynthesisTaskCommand.ts index b358d1afcee0..dbe7edebb1ee 100644 --- a/clients/client-polly/src/commands/GetSpeechSynthesisTaskCommand.ts +++ b/clients/client-polly/src/commands/GetSpeechSynthesisTaskCommand.ts @@ -44,7 +44,7 @@ export interface GetSpeechSynthesisTaskCommandOutput extends GetSpeechSynthesisT * const response = await client.send(command); * // { // GetSpeechSynthesisTaskOutput * // SynthesisTask: { // SynthesisTask - * // Engine: "standard" || "neural" || "long-form", + * // Engine: "standard" || "neural" || "long-form" || "generative", * // TaskId: "STRING_VALUE", * // TaskStatus: "scheduled" || "inProgress" || "completed" || "failed", * // TaskStatusReason: "STRING_VALUE", diff --git a/clients/client-polly/src/commands/ListSpeechSynthesisTasksCommand.ts b/clients/client-polly/src/commands/ListSpeechSynthesisTasksCommand.ts index e0dbb1b10842..0980527c33f8 100644 --- a/clients/client-polly/src/commands/ListSpeechSynthesisTasksCommand.ts +++ b/clients/client-polly/src/commands/ListSpeechSynthesisTasksCommand.ts @@ -47,7 +47,7 @@ export interface ListSpeechSynthesisTasksCommandOutput extends ListSpeechSynthes * // NextToken: "STRING_VALUE", * // SynthesisTasks: [ // SynthesisTasks * // { // SynthesisTask - * // Engine: "standard" || "neural" || "long-form", + * // Engine: "standard" || "neural" || "long-form" || "generative", * // TaskId: "STRING_VALUE", * // TaskStatus: "scheduled" || "inProgress" || "completed" || "failed", * // TaskStatusReason: "STRING_VALUE", diff --git a/clients/client-polly/src/commands/StartSpeechSynthesisTaskCommand.ts b/clients/client-polly/src/commands/StartSpeechSynthesisTaskCommand.ts index 9a578f64854c..7909f5413b44 100644 --- a/clients/client-polly/src/commands/StartSpeechSynthesisTaskCommand.ts +++ b/clients/client-polly/src/commands/StartSpeechSynthesisTaskCommand.ts @@ -44,7 +44,7 @@ export interface StartSpeechSynthesisTaskCommandOutput extends StartSpeechSynthe * // const { PollyClient, StartSpeechSynthesisTaskCommand } = require("@aws-sdk/client-polly"); // CommonJS import * const client = new PollyClient(config); * const input = { // StartSpeechSynthesisTaskInput - * Engine: "standard" || "neural" || "long-form", + * Engine: "standard" || "neural" || "long-form" || "generative", * LanguageCode: "arb" || "cmn-CN" || "cy-GB" || "da-DK" || "de-DE" || "en-AU" || "en-GB" || "en-GB-WLS" || "en-IN" || "en-US" || "es-ES" || "es-MX" || "es-US" || "fr-CA" || "fr-FR" || "is-IS" || "it-IT" || "ja-JP" || "hi-IN" || "ko-KR" || "nb-NO" || "nl-NL" || "pl-PL" || "pt-BR" || "pt-PT" || "ro-RO" || "ru-RU" || "sv-SE" || "tr-TR" || "en-NZ" || "en-ZA" || "ca-ES" || "de-AT" || "yue-CN" || "ar-AE" || "fi-FI" || "en-IE" || "nl-BE" || "fr-BE", * LexiconNames: [ // LexiconNameList * "STRING_VALUE", @@ -65,7 +65,7 @@ export interface StartSpeechSynthesisTaskCommandOutput extends StartSpeechSynthe * const response = await client.send(command); * // { // StartSpeechSynthesisTaskOutput * // SynthesisTask: { // SynthesisTask - * // Engine: "standard" || "neural" || "long-form", + * // Engine: "standard" || "neural" || "long-form" || "generative", * // TaskId: "STRING_VALUE", * // TaskStatus: "scheduled" || "inProgress" || "completed" || "failed", * // TaskStatusReason: "STRING_VALUE", diff --git a/clients/client-polly/src/commands/SynthesizeSpeechCommand.ts b/clients/client-polly/src/commands/SynthesizeSpeechCommand.ts index 3af5226fd4a4..83e508edc4a2 100644 --- a/clients/client-polly/src/commands/SynthesizeSpeechCommand.ts +++ b/clients/client-polly/src/commands/SynthesizeSpeechCommand.ts @@ -45,7 +45,7 @@ export interface SynthesizeSpeechCommandOutput extends OmitSpecifies the engine (standard, neural or - * long-form) used by Amazon Polly when processing input text for - * speech synthesis.

+ *

Specifies the engine (standard, neural, + * long-form or generative) used by Amazon Polly when + * processing input text for speech synthesis.

* @public */ Engine?: Engine; @@ -345,8 +346,8 @@ export interface Voice { AdditionalLanguageCodes?: LanguageCode[]; /** - *

Specifies which engines (standard, neural or - * long-form) are supported by a given voice.

+ *

Specifies which engines (standard, neural, + * long-form or generative) are supported by a given voice.

* @public */ SupportedEngines?: Engine[]; @@ -592,10 +593,10 @@ export type TextType = (typeof TextType)[keyof typeof TextType]; */ export interface SynthesisTask { /** - *

Specifies the engine (standard, neural or - * long-form) for Amazon Polly to use when processing input text for - * speech synthesis. Using a voice that is not supported for the engine - * selected will result in an error.

+ *

Specifies the engine (standard, neural, + * long-form or generative) for Amazon Polly to use + * when processing input text for speech synthesis. Using a voice that + * is not supported for the engine selected will result in an error.

* @public */ Engine?: Engine; @@ -665,7 +666,7 @@ export interface SynthesisTask { *

The valid values for mp3 and ogg_vorbis are "8000", "16000", "22050", * and "24000". The default value for standard voices is "22050". The default * value for neural voices is "24000". The default value for long-form voices - * is "24000".

+ * is "24000". The default value for generative voices is "24000".

*

Valid values for pcm are "8000" and "16000" The default value is * "16000".

* @public @@ -1180,10 +1181,10 @@ export class SsmlMarksNotSupportedForTextTypeException extends __BaseException { */ export interface StartSpeechSynthesisTaskInput { /** - *

Specifies the engine (standard, neural or - * long-form) for Amazon Polly to use when processing input text for - * speech synthesis. Using a voice that is not supported for the engine - * selected will result in an error.

+ *

Specifies the engine (standard, neural, + * long-form or generative) for Amazon Polly to use + * when processing input text for speech synthesis. Using a voice that + * is not supported for the engine selected will result in an error.

* @public */ Engine?: Engine; @@ -1234,7 +1235,7 @@ export interface StartSpeechSynthesisTaskInput { *

The valid values for mp3 and ogg_vorbis are "8000", "16000", "22050", * and "24000". The default value for standard voices is "22050". The default * value for neural voices is "24000". The default value for long-form voices - * is "24000".

+ * is "24000". The default value for generative voices is "24000".

*

Valid values for pcm are "8000" and "16000" The default value is * "16000".

* @public @@ -1318,36 +1319,18 @@ export class TextLengthExceededException extends __BaseException { */ export interface SynthesizeSpeechInput { /** - *

Specifies the engine (standard, neural or - * long-form) for Amazon Polly to use when processing input text for - * speech synthesis. For information on Amazon Polly voices and which voices are - * available for each engine, see Available Voices.

- *

- * NTTS-only voices - *

- *

When using NTTS-only voices such as Kevin (en-US), this parameter is - * required and must be set to neural. If the engine is not - * specified, or is set to standard, this will result in an - * error.

- *

- * long-form-only voices - *

- *

When using long-form-only voices such as Danielle (en-US), this - * parameter is required and must be set to long-form. If the - * engine is not specified, or is set to standard or - * neural, this will result in an error.

+ *

Specifies the engine (standard, neural, + * long-form, or generative) for Amazon Polly + * to use when processing input text for speech synthesis. Provide an engine + * that is supported by the voice you select. If you don't provide an engine, + * the standard engine is selected by default. If a chosen voice isn't supported + * by the standard engine, this will result in an error. For information on + * Amazon Polly voices and which voices are available for each engine, see Available Voices.

*

Type: String

*

Valid Values: standard | neural | - * long-form + * long-form | generative *

*

Required: Yes

- *

- * Standard voices - *

- *

For standard voices, this is not required; the engine parameter - * defaults to standard. If the engine is not specified, or is - * set to standard and an NTTS-only voice is selected, this will - * result in an error.

* @public */ Engine?: Engine; @@ -1389,7 +1372,7 @@ export interface SynthesizeSpeechInput { *

The valid values for mp3 and ogg_vorbis are "8000", "16000", "22050", * and "24000". The default value for standard voices is "22050". The default * value for neural voices is "24000". The default value for long-form voices - * is "24000".

+ * is "24000". The default value for generative voices is "24000".

*

Valid values for pcm are "8000" and "16000" The default value is * "16000".

* @public diff --git a/codegen/sdk-codegen/aws-models/polly.json b/codegen/sdk-codegen/aws-models/polly.json index 5c2fd28c310c..86772a8ccc73 100644 --- a/codegen/sdk-codegen/aws-models/polly.json +++ b/codegen/sdk-codegen/aws-models/polly.json @@ -167,7 +167,7 @@ "Engine": { "target": "com.amazonaws.polly#Engine", "traits": { - "smithy.api#documentation": "

Specifies the engine (standard, neural or\n long-form) used by Amazon Polly when processing input text for\n speech synthesis.

", + "smithy.api#documentation": "

Specifies the engine (standard, neural,\n long-form or generative) used by Amazon Polly when\n processing input text for speech synthesis.

", "smithy.api#httpQuery": "Engine" } }, @@ -238,6 +238,12 @@ "traits": { "smithy.api#enumValue": "long-form" } + }, + "GENERATIVE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "generative" + } } } }, @@ -2288,7 +2294,7 @@ "com.amazonaws.polly#SnsTopicArn": { "type": "string", "traits": { - "smithy.api#pattern": "^arn:aws(-(cn|iso(-b)?|us-gov))?:sns:[a-z0-9_-]{1,50}:\\d{12}:[a-zA-Z0-9_-]{1,256}$" + "smithy.api#pattern": "^arn:aws(-(cn|iso(-b)?|us-gov))?:sns:[a-z0-9_-]{1,50}:\\d{12}:[a-zA-Z0-9_-]{1,251}([a-zA-Z0-9_-]{0,5}|\\.fifo)$" } }, "com.amazonaws.polly#SpeechMarkType": { @@ -2406,7 +2412,7 @@ "Engine": { "target": "com.amazonaws.polly#Engine", "traits": { - "smithy.api#documentation": "

Specifies the engine (standard, neural or\n long-form) for Amazon Polly to use when processing input text for\n speech synthesis. Using a voice that is not supported for the engine\n selected will result in an error.

" + "smithy.api#documentation": "

Specifies the engine (standard, neural,\n long-form or generative) for Amazon Polly to use\n when processing input text for speech synthesis. Using a voice that\n is not supported for the engine selected will result in an error.

" } }, "LanguageCode": { @@ -2444,7 +2450,7 @@ "SampleRate": { "target": "com.amazonaws.polly#SampleRate", "traits": { - "smithy.api#documentation": "

The audio frequency specified in Hz.

\n

The valid values for mp3 and ogg_vorbis are \"8000\", \"16000\", \"22050\",\n and \"24000\". The default value for standard voices is \"22050\". The default\n value for neural voices is \"24000\". The default value for long-form voices\n is \"24000\".

\n

Valid values for pcm are \"8000\" and \"16000\" The default value is\n \"16000\".

" + "smithy.api#documentation": "

The audio frequency specified in Hz.

\n

The valid values for mp3 and ogg_vorbis are \"8000\", \"16000\", \"22050\",\n and \"24000\". The default value for standard voices is \"22050\". The default\n value for neural voices is \"24000\". The default value for long-form voices\n is \"24000\". The default value for generative voices is \"24000\".

\n

Valid values for pcm are \"8000\" and \"16000\" The default value is\n \"16000\".

" } }, "SnsTopicArn": { @@ -2504,7 +2510,7 @@ "Engine": { "target": "com.amazonaws.polly#Engine", "traits": { - "smithy.api#documentation": "

Specifies the engine (standard, neural or\n long-form) for Amazon Polly to use when processing input text for\n speech synthesis. Using a voice that is not supported for the engine\n selected will result in an error.

" + "smithy.api#documentation": "

Specifies the engine (standard, neural,\n long-form or generative) for Amazon Polly to use\n when processing input text for speech synthesis. Using a voice that\n is not supported for the engine selected will result in an error.

" } }, "TaskId": { @@ -2565,7 +2571,7 @@ "SampleRate": { "target": "com.amazonaws.polly#SampleRate", "traits": { - "smithy.api#documentation": "

The audio frequency specified in Hz.

\n

The valid values for mp3 and ogg_vorbis are \"8000\", \"16000\", \"22050\",\n and \"24000\". The default value for standard voices is \"22050\". The default\n value for neural voices is \"24000\". The default value for long-form voices\n is \"24000\".

\n

Valid values for pcm are \"8000\" and \"16000\" The default value is\n \"16000\".

" + "smithy.api#documentation": "

The audio frequency specified in Hz.

\n

The valid values for mp3 and ogg_vorbis are \"8000\", \"16000\", \"22050\",\n and \"24000\". The default value for standard voices is \"22050\". The default\n value for neural voices is \"24000\". The default value for long-form voices\n is \"24000\". The default value for generative voices is \"24000\".

\n

Valid values for pcm are \"8000\" and \"16000\" The default value is\n \"16000\".

" } }, "SpeechMarkTypes": { @@ -2687,7 +2693,7 @@ "Engine": { "target": "com.amazonaws.polly#Engine", "traits": { - "smithy.api#documentation": "

Specifies the engine (standard, neural or\n long-form) for Amazon Polly to use when processing input text for\n speech synthesis. For information on Amazon Polly voices and which voices are\n available for each engine, see Available Voices.

\n

\n NTTS-only voices\n

\n

When using NTTS-only voices such as Kevin (en-US), this parameter is\n required and must be set to neural. If the engine is not\n specified, or is set to standard, this will result in an\n error.

\n

\n long-form-only voices\n

\n

When using long-form-only voices such as Danielle (en-US), this\n parameter is required and must be set to long-form. If the\n engine is not specified, or is set to standard or\n neural, this will result in an error.

\n

Type: String

\n

Valid Values: standard | neural |\n long-form\n

\n

Required: Yes

\n

\n Standard voices\n

\n

For standard voices, this is not required; the engine parameter\n defaults to standard. If the engine is not specified, or is\n set to standard and an NTTS-only voice is selected, this will\n result in an error.

" + "smithy.api#documentation": "

Specifies the engine (standard, neural,\n long-form, or generative) for Amazon Polly\n to use when processing input text for speech synthesis. Provide an engine\n that is supported by the voice you select. If you don't provide an engine,\n the standard engine is selected by default. If a chosen voice isn't supported\n by the standard engine, this will result in an error. For information on\n Amazon Polly voices and which voices are available for each engine, see Available Voices.

\n

Type: String

\n

Valid Values: standard | neural |\n long-form | generative\n

\n

Required: Yes

" } }, "LanguageCode": { @@ -2712,7 +2718,7 @@ "SampleRate": { "target": "com.amazonaws.polly#SampleRate", "traits": { - "smithy.api#documentation": "

The audio frequency specified in Hz.

\n

The valid values for mp3 and ogg_vorbis are \"8000\", \"16000\", \"22050\",\n and \"24000\". The default value for standard voices is \"22050\". The default\n value for neural voices is \"24000\". The default value for long-form voices\n is \"24000\".

\n

Valid values for pcm are \"8000\" and \"16000\" The default value is\n \"16000\".

" + "smithy.api#documentation": "

The audio frequency specified in Hz.

\n

The valid values for mp3 and ogg_vorbis are \"8000\", \"16000\", \"22050\",\n and \"24000\". The default value for standard voices is \"22050\". The default\n value for neural voices is \"24000\". The default value for long-form voices\n is \"24000\". The default value for generative voices is \"24000\".

\n

Valid values for pcm are \"8000\" and \"16000\" The default value is\n \"16000\".

" } }, "SpeechMarkTypes": { @@ -2916,7 +2922,7 @@ "SupportedEngines": { "target": "com.amazonaws.polly#EngineList", "traits": { - "smithy.api#documentation": "

Specifies which engines (standard, neural or\n long-form) are supported by a given voice.

" + "smithy.api#documentation": "

Specifies which engines (standard, neural,\n long-form or generative) are supported by a given voice.

" } } },