Skip to content

Commit e0e36b5

Browse files
author
awstools
committed
feat(client-lex-models-v2): Support new Polly voice engines in VoiceSettings: long-form and generative
1 parent f68727d commit e0e36b5

File tree

7 files changed

+69
-9
lines changed

7 files changed

+69
-9
lines changed

clients/client-lex-models-v2/src/commands/CreateBotLocaleCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export interface CreateBotLocaleCommandOutput extends CreateBotLocaleResponse, _
4646
* nluIntentConfidenceThreshold: Number("double"), // required
4747
* voiceSettings: { // VoiceSettings
4848
* voiceId: "STRING_VALUE", // required
49-
* engine: "standard" || "neural",
49+
* engine: "standard" || "neural" || "long-form" || "generative",
5050
* },
5151
* generativeAISettings: { // GenerativeAISettings
5252
* runtimeSettings: { // RuntimeSettings
@@ -102,7 +102,7 @@ export interface CreateBotLocaleCommandOutput extends CreateBotLocaleResponse, _
102102
* // nluIntentConfidenceThreshold: Number("double"),
103103
* // voiceSettings: { // VoiceSettings
104104
* // voiceId: "STRING_VALUE", // required
105-
* // engine: "standard" || "neural",
105+
* // engine: "standard" || "neural" || "long-form" || "generative",
106106
* // },
107107
* // botLocaleStatus: "Creating" || "Building" || "Built" || "ReadyExpressTesting" || "Failed" || "Deleting" || "NotBuilt" || "Importing" || "Processing",
108108
* // creationDateTime: new Date("TIMESTAMP"),

clients/client-lex-models-v2/src/commands/DescribeBotLocaleCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export interface DescribeBotLocaleCommandOutput extends DescribeBotLocaleRespons
5252
* // nluIntentConfidenceThreshold: Number("double"),
5353
* // voiceSettings: { // VoiceSettings
5454
* // voiceId: "STRING_VALUE", // required
55-
* // engine: "standard" || "neural",
55+
* // engine: "standard" || "neural" || "long-form" || "generative",
5656
* // },
5757
* // intentsCount: Number("int"),
5858
* // slotTypesCount: Number("int"),

clients/client-lex-models-v2/src/commands/DescribeImportCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export interface DescribeImportCommandOutput extends DescribeImportResponse, __M
6464
* // nluIntentConfidenceThreshold: Number("double"),
6565
* // voiceSettings: { // VoiceSettings
6666
* // voiceId: "STRING_VALUE", // required
67-
* // engine: "standard" || "neural",
67+
* // engine: "standard" || "neural" || "long-form" || "generative",
6868
* // },
6969
* // },
7070
* // customVocabularyImportSpecification: { // CustomVocabularyImportSpecification

clients/client-lex-models-v2/src/commands/StartImportCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export interface StartImportCommandOutput extends StartImportResponse, __Metadat
6060
* nluIntentConfidenceThreshold: Number("double"),
6161
* voiceSettings: { // VoiceSettings
6262
* voiceId: "STRING_VALUE", // required
63-
* engine: "standard" || "neural",
63+
* engine: "standard" || "neural" || "long-form" || "generative",
6464
* },
6565
* },
6666
* customVocabularyImportSpecification: { // CustomVocabularyImportSpecification
@@ -116,7 +116,7 @@ export interface StartImportCommandOutput extends StartImportResponse, __Metadat
116116
* // nluIntentConfidenceThreshold: Number("double"),
117117
* // voiceSettings: { // VoiceSettings
118118
* // voiceId: "STRING_VALUE", // required
119-
* // engine: "standard" || "neural",
119+
* // engine: "standard" || "neural" || "long-form" || "generative",
120120
* // },
121121
* // },
122122
* // customVocabularyImportSpecification: { // CustomVocabularyImportSpecification

clients/client-lex-models-v2/src/commands/UpdateBotLocaleCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export interface UpdateBotLocaleCommandOutput extends UpdateBotLocaleResponse, _
4343
* nluIntentConfidenceThreshold: Number("double"), // required
4444
* voiceSettings: { // VoiceSettings
4545
* voiceId: "STRING_VALUE", // required
46-
* engine: "standard" || "neural",
46+
* engine: "standard" || "neural" || "long-form" || "generative",
4747
* },
4848
* generativeAISettings: { // GenerativeAISettings
4949
* runtimeSettings: { // RuntimeSettings
@@ -99,7 +99,7 @@ export interface UpdateBotLocaleCommandOutput extends UpdateBotLocaleResponse, _
9999
* // nluIntentConfidenceThreshold: Number("double"),
100100
* // voiceSettings: { // VoiceSettings
101101
* // voiceId: "STRING_VALUE", // required
102-
* // engine: "standard" || "neural",
102+
* // engine: "standard" || "neural" || "long-form" || "generative",
103103
* // },
104104
* // botLocaleStatus: "Creating" || "Building" || "Built" || "ReadyExpressTesting" || "Failed" || "Deleting" || "NotBuilt" || "Importing" || "Processing",
105105
* // failureReasons: [ // FailureReasons

clients/client-lex-models-v2/src/models/models_0.ts

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3547,6 +3547,8 @@ export interface BotLocaleHistoryEvent {
35473547
* @enum
35483548
*/
35493549
export const VoiceEngine = {
3550+
Generative: "generative",
3551+
LongForm: "long-form",
35503552
Neural: "neural",
35513553
Standard: "standard",
35523554
} as const;
@@ -3559,6 +3561,29 @@ export type VoiceEngine = (typeof VoiceEngine)[keyof typeof VoiceEngine];
35593561
/**
35603562
* <p>Defines settings for using an Amazon Polly voice to communicate with a
35613563
* user.</p>
3564+
* <p>Valid values include:</p>
3565+
* <ul>
3566+
* <li>
3567+
* <p>
3568+
* <code>standard</code>
3569+
* </p>
3570+
* </li>
3571+
* <li>
3572+
* <p>
3573+
* <code>neural</code>
3574+
* </p>
3575+
* </li>
3576+
* <li>
3577+
* <p>
3578+
* <code>long-form</code>
3579+
* </p>
3580+
* </li>
3581+
* <li>
3582+
* <p>
3583+
* <code>generative</code>
3584+
* </p>
3585+
* </li>
3586+
* </ul>
35623587
* @public
35633588
*/
35643589
export interface VoiceSettings {
@@ -3647,6 +3672,29 @@ export interface BotLocaleImportSpecification {
36473672
/**
36483673
* <p>Defines settings for using an Amazon Polly voice to communicate with a
36493674
* user.</p>
3675+
* <p>Valid values include:</p>
3676+
* <ul>
3677+
* <li>
3678+
* <p>
3679+
* <code>standard</code>
3680+
* </p>
3681+
* </li>
3682+
* <li>
3683+
* <p>
3684+
* <code>neural</code>
3685+
* </p>
3686+
* </li>
3687+
* <li>
3688+
* <p>
3689+
* <code>long-form</code>
3690+
* </p>
3691+
* </li>
3692+
* <li>
3693+
* <p>
3694+
* <code>generative</code>
3695+
* </p>
3696+
* </li>
3697+
* </ul>
36503698
* @public
36513699
*/
36523700
voiceSettings?: VoiceSettings;

codegen/sdk-codegen/aws-models/lex-models-v2.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25023,6 +25023,18 @@
2502325023
"traits": {
2502425024
"smithy.api#enumValue": "neural"
2502525025
}
25026+
},
25027+
"LongForm": {
25028+
"target": "smithy.api#Unit",
25029+
"traits": {
25030+
"smithy.api#enumValue": "long-form"
25031+
}
25032+
},
25033+
"Generative": {
25034+
"target": "smithy.api#Unit",
25035+
"traits": {
25036+
"smithy.api#enumValue": "generative"
25037+
}
2502625038
}
2502725039
}
2502825040
},
@@ -25047,7 +25059,7 @@
2504725059
}
2504825060
},
2504925061
"traits": {
25050-
"smithy.api#documentation": "<p>Defines settings for using an Amazon Polly voice to communicate with a\n user.</p>"
25062+
"smithy.api#documentation": "<p>Defines settings for using an Amazon Polly voice to communicate with a\n user.</p>\n <p>Valid values include:</p>\n <ul>\n <li>\n <p>\n <code>standard</code>\n </p>\n </li>\n <li>\n <p>\n <code>neural</code>\n </p>\n </li>\n <li>\n <p>\n <code>long-form</code>\n </p>\n </li>\n <li>\n <p>\n <code>generative</code>\n </p>\n </li>\n </ul>"
2505125063
}
2505225064
},
2505325065
"com.amazonaws.lexmodelsv2#WaitAndContinueSpecification": {

0 commit comments

Comments
 (0)