Skip to content

Commit

Permalink
feat(client-lex-models-v2): Support new Polly voice engines in VoiceS…
Browse files Browse the repository at this point in the history
…ettings: long-form and generative
  • Loading branch information
awstools committed Sep 11, 2024
1 parent f68727d commit e0e36b5
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export interface CreateBotLocaleCommandOutput extends CreateBotLocaleResponse, _
* nluIntentConfidenceThreshold: Number("double"), // required
* voiceSettings: { // VoiceSettings
* voiceId: "STRING_VALUE", // required
* engine: "standard" || "neural",
* engine: "standard" || "neural" || "long-form" || "generative",
* },
* generativeAISettings: { // GenerativeAISettings
* runtimeSettings: { // RuntimeSettings
Expand Down Expand Up @@ -102,7 +102,7 @@ export interface CreateBotLocaleCommandOutput extends CreateBotLocaleResponse, _
* // nluIntentConfidenceThreshold: Number("double"),
* // voiceSettings: { // VoiceSettings
* // voiceId: "STRING_VALUE", // required
* // engine: "standard" || "neural",
* // engine: "standard" || "neural" || "long-form" || "generative",
* // },
* // botLocaleStatus: "Creating" || "Building" || "Built" || "ReadyExpressTesting" || "Failed" || "Deleting" || "NotBuilt" || "Importing" || "Processing",
* // creationDateTime: new Date("TIMESTAMP"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export interface DescribeBotLocaleCommandOutput extends DescribeBotLocaleRespons
* // nluIntentConfidenceThreshold: Number("double"),
* // voiceSettings: { // VoiceSettings
* // voiceId: "STRING_VALUE", // required
* // engine: "standard" || "neural",
* // engine: "standard" || "neural" || "long-form" || "generative",
* // },
* // intentsCount: Number("int"),
* // slotTypesCount: Number("int"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export interface DescribeImportCommandOutput extends DescribeImportResponse, __M
* // nluIntentConfidenceThreshold: Number("double"),
* // voiceSettings: { // VoiceSettings
* // voiceId: "STRING_VALUE", // required
* // engine: "standard" || "neural",
* // engine: "standard" || "neural" || "long-form" || "generative",
* // },
* // },
* // customVocabularyImportSpecification: { // CustomVocabularyImportSpecification
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export interface StartImportCommandOutput extends StartImportResponse, __Metadat
* nluIntentConfidenceThreshold: Number("double"),
* voiceSettings: { // VoiceSettings
* voiceId: "STRING_VALUE", // required
* engine: "standard" || "neural",
* engine: "standard" || "neural" || "long-form" || "generative",
* },
* },
* customVocabularyImportSpecification: { // CustomVocabularyImportSpecification
Expand Down Expand Up @@ -116,7 +116,7 @@ export interface StartImportCommandOutput extends StartImportResponse, __Metadat
* // nluIntentConfidenceThreshold: Number("double"),
* // voiceSettings: { // VoiceSettings
* // voiceId: "STRING_VALUE", // required
* // engine: "standard" || "neural",
* // engine: "standard" || "neural" || "long-form" || "generative",
* // },
* // },
* // customVocabularyImportSpecification: { // CustomVocabularyImportSpecification
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface UpdateBotLocaleCommandOutput extends UpdateBotLocaleResponse, _
* nluIntentConfidenceThreshold: Number("double"), // required
* voiceSettings: { // VoiceSettings
* voiceId: "STRING_VALUE", // required
* engine: "standard" || "neural",
* engine: "standard" || "neural" || "long-form" || "generative",
* },
* generativeAISettings: { // GenerativeAISettings
* runtimeSettings: { // RuntimeSettings
Expand Down Expand Up @@ -99,7 +99,7 @@ export interface UpdateBotLocaleCommandOutput extends UpdateBotLocaleResponse, _
* // nluIntentConfidenceThreshold: Number("double"),
* // voiceSettings: { // VoiceSettings
* // voiceId: "STRING_VALUE", // required
* // engine: "standard" || "neural",
* // engine: "standard" || "neural" || "long-form" || "generative",
* // },
* // botLocaleStatus: "Creating" || "Building" || "Built" || "ReadyExpressTesting" || "Failed" || "Deleting" || "NotBuilt" || "Importing" || "Processing",
* // failureReasons: [ // FailureReasons
Expand Down
48 changes: 48 additions & 0 deletions clients/client-lex-models-v2/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3547,6 +3547,8 @@ export interface BotLocaleHistoryEvent {
* @enum
*/
export const VoiceEngine = {
Generative: "generative",
LongForm: "long-form",
Neural: "neural",
Standard: "standard",
} as const;
Expand All @@ -3559,6 +3561,29 @@ export type VoiceEngine = (typeof VoiceEngine)[keyof typeof VoiceEngine];
/**
* <p>Defines settings for using an Amazon Polly voice to communicate with a
* user.</p>
* <p>Valid values include:</p>
* <ul>
* <li>
* <p>
* <code>standard</code>
* </p>
* </li>
* <li>
* <p>
* <code>neural</code>
* </p>
* </li>
* <li>
* <p>
* <code>long-form</code>
* </p>
* </li>
* <li>
* <p>
* <code>generative</code>
* </p>
* </li>
* </ul>
* @public
*/
export interface VoiceSettings {
Expand Down Expand Up @@ -3647,6 +3672,29 @@ export interface BotLocaleImportSpecification {
/**
* <p>Defines settings for using an Amazon Polly voice to communicate with a
* user.</p>
* <p>Valid values include:</p>
* <ul>
* <li>
* <p>
* <code>standard</code>
* </p>
* </li>
* <li>
* <p>
* <code>neural</code>
* </p>
* </li>
* <li>
* <p>
* <code>long-form</code>
* </p>
* </li>
* <li>
* <p>
* <code>generative</code>
* </p>
* </li>
* </ul>
* @public
*/
voiceSettings?: VoiceSettings;
Expand Down
14 changes: 13 additions & 1 deletion codegen/sdk-codegen/aws-models/lex-models-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -25023,6 +25023,18 @@
"traits": {
"smithy.api#enumValue": "neural"
}
},
"LongForm": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "long-form"
}
},
"Generative": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "generative"
}
}
}
},
Expand All @@ -25047,7 +25059,7 @@
}
},
"traits": {
"smithy.api#documentation": "<p>Defines settings for using an Amazon Polly voice to communicate with a\n user.</p>"
"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>"
}
},
"com.amazonaws.lexmodelsv2#WaitAndContinueSpecification": {
Expand Down

0 comments on commit e0e36b5

Please sign in to comment.