Skip to content

Commit e285b31

Browse files
author
awstools
committed
feat(client-lex-models-v2): Adds support for speech-to-speech models for human-like, adaptive, and expressive voice interactions. Also adds support for speech model preference, allowing customers to select which speech model they want to use for speech-to-text requests.
1 parent 4a4d44f commit e285b31

File tree

14 files changed

+772
-180
lines changed

14 files changed

+772
-180
lines changed

clients/client-lex-models-v2/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
AWS SDK for JavaScript LexModelsV2 Client for Node.js, Browser and React Native.
88

9-
<p></p>
9+
<p>Amazon Lex Model Building Service provides APIs for creating, managing, and deploying conversational bots and their components.</p>
1010

1111
## Installing
1212

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2084,7 +2084,7 @@ export interface LexModelsV2 {
20842084
}
20852085

20862086
/**
2087-
* <p></p>
2087+
* <p>Amazon Lex Model Building Service provides APIs for creating, managing, and deploying conversational bots and their components.</p>
20882088
* @public
20892089
*/
20902090
export class LexModelsV2 extends LexModelsV2Client implements LexModelsV2 {}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ export type LexModelsV2ClientResolvedConfigType = __SmithyResolvedConfiguration<
699699
export interface LexModelsV2ClientResolvedConfig extends LexModelsV2ClientResolvedConfigType {}
700700

701701
/**
702-
* <p></p>
702+
* <p>Amazon Lex Model Building Service provides APIs for creating, managing, and deploying conversational bots and their components.</p>
703703
* @public
704704
*/
705705
export class LexModelsV2Client extends __Client<

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

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,23 @@ export interface CreateBotLocaleCommandOutput extends CreateBotLocaleResponse, _
4646
* description: "STRING_VALUE",
4747
* nluIntentConfidenceThreshold: Number("double"), // required
4848
* voiceSettings: { // VoiceSettings
49-
* voiceId: "STRING_VALUE", // required
5049
* engine: "standard" || "neural" || "long-form" || "generative",
50+
* voiceId: "STRING_VALUE", // required
51+
* },
52+
* unifiedSpeechSettings: { // UnifiedSpeechSettings
53+
* speechFoundationModel: { // SpeechFoundationModel
54+
* modelArn: "STRING_VALUE", // required
55+
* voiceId: "STRING_VALUE",
56+
* },
57+
* },
58+
* speechRecognitionSettings: { // SpeechRecognitionSettings
59+
* speechModelPreference: "Standard" || "Neural" || "Deepgram",
60+
* speechModelConfig: { // SpeechModelConfig
61+
* deepgramConfig: { // DeepgramSpeechModelConfig
62+
* apiTokenSecretArn: "STRING_VALUE", // required
63+
* modelId: "STRING_VALUE",
64+
* },
65+
* },
5166
* },
5267
* generativeAISettings: { // GenerativeAISettings
5368
* runtimeSettings: { // RuntimeSettings
@@ -112,8 +127,23 @@ export interface CreateBotLocaleCommandOutput extends CreateBotLocaleResponse, _
112127
* // description: "STRING_VALUE",
113128
* // nluIntentConfidenceThreshold: Number("double"),
114129
* // voiceSettings: { // VoiceSettings
115-
* // voiceId: "STRING_VALUE", // required
116130
* // engine: "standard" || "neural" || "long-form" || "generative",
131+
* // voiceId: "STRING_VALUE", // required
132+
* // },
133+
* // unifiedSpeechSettings: { // UnifiedSpeechSettings
134+
* // speechFoundationModel: { // SpeechFoundationModel
135+
* // modelArn: "STRING_VALUE", // required
136+
* // voiceId: "STRING_VALUE",
137+
* // },
138+
* // },
139+
* // speechRecognitionSettings: { // SpeechRecognitionSettings
140+
* // speechModelPreference: "Standard" || "Neural" || "Deepgram",
141+
* // speechModelConfig: { // SpeechModelConfig
142+
* // deepgramConfig: { // DeepgramSpeechModelConfig
143+
* // apiTokenSecretArn: "STRING_VALUE", // required
144+
* // modelId: "STRING_VALUE",
145+
* // },
146+
* // },
117147
* // },
118148
* // botLocaleStatus: "Creating" || "Building" || "Built" || "ReadyExpressTesting" || "Failed" || "Deleting" || "NotBuilt" || "Importing" || "Processing",
119149
* // creationDateTime: new Date("TIMESTAMP"),

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

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,23 @@ export interface DescribeBotLocaleCommandOutput extends DescribeBotLocaleRespons
5151
* // description: "STRING_VALUE",
5252
* // nluIntentConfidenceThreshold: Number("double"),
5353
* // voiceSettings: { // VoiceSettings
54-
* // voiceId: "STRING_VALUE", // required
5554
* // engine: "standard" || "neural" || "long-form" || "generative",
55+
* // voiceId: "STRING_VALUE", // required
56+
* // },
57+
* // unifiedSpeechSettings: { // UnifiedSpeechSettings
58+
* // speechFoundationModel: { // SpeechFoundationModel
59+
* // modelArn: "STRING_VALUE", // required
60+
* // voiceId: "STRING_VALUE",
61+
* // },
62+
* // },
63+
* // speechRecognitionSettings: { // SpeechRecognitionSettings
64+
* // speechModelPreference: "Standard" || "Neural" || "Deepgram",
65+
* // speechModelConfig: { // SpeechModelConfig
66+
* // deepgramConfig: { // DeepgramSpeechModelConfig
67+
* // apiTokenSecretArn: "STRING_VALUE", // required
68+
* // modelId: "STRING_VALUE",
69+
* // },
70+
* // },
5671
* // },
5772
* // intentsCount: Number("int"),
5873
* // slotTypesCount: Number("int"),

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

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,25 @@ export interface DescribeImportCommandOutput extends DescribeImportResponse, __M
6767
* // localeId: "STRING_VALUE", // required
6868
* // nluIntentConfidenceThreshold: Number("double"),
6969
* // voiceSettings: { // VoiceSettings
70-
* // voiceId: "STRING_VALUE", // required
7170
* // engine: "standard" || "neural" || "long-form" || "generative",
71+
* // voiceId: "STRING_VALUE", // required
72+
* // },
73+
* // speechRecognitionSettings: { // SpeechRecognitionSettings
74+
* // speechModelPreference: "Standard" || "Neural" || "Deepgram",
75+
* // speechModelConfig: { // SpeechModelConfig
76+
* // deepgramConfig: { // DeepgramSpeechModelConfig
77+
* // apiTokenSecretArn: "STRING_VALUE", // required
78+
* // modelId: "STRING_VALUE",
79+
* // },
80+
* // },
7281
* // },
7382
* // speechDetectionSensitivity: "Default" || "HighNoiseTolerance" || "MaximumNoiseTolerance",
83+
* // unifiedSpeechSettings: { // UnifiedSpeechSettings
84+
* // speechFoundationModel: { // SpeechFoundationModel
85+
* // modelArn: "STRING_VALUE", // required
86+
* // voiceId: "STRING_VALUE",
87+
* // },
88+
* // },
7489
* // },
7590
* // customVocabularyImportSpecification: { // CustomVocabularyImportSpecification
7691
* // botId: "STRING_VALUE", // required

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

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,25 @@ export interface StartImportCommandOutput extends StartImportResponse, __Metadat
6363
* localeId: "STRING_VALUE", // required
6464
* nluIntentConfidenceThreshold: Number("double"),
6565
* voiceSettings: { // VoiceSettings
66-
* voiceId: "STRING_VALUE", // required
6766
* engine: "standard" || "neural" || "long-form" || "generative",
67+
* voiceId: "STRING_VALUE", // required
68+
* },
69+
* speechRecognitionSettings: { // SpeechRecognitionSettings
70+
* speechModelPreference: "Standard" || "Neural" || "Deepgram",
71+
* speechModelConfig: { // SpeechModelConfig
72+
* deepgramConfig: { // DeepgramSpeechModelConfig
73+
* apiTokenSecretArn: "STRING_VALUE", // required
74+
* modelId: "STRING_VALUE",
75+
* },
76+
* },
6877
* },
6978
* speechDetectionSensitivity: "Default" || "HighNoiseTolerance" || "MaximumNoiseTolerance",
79+
* unifiedSpeechSettings: { // UnifiedSpeechSettings
80+
* speechFoundationModel: { // SpeechFoundationModel
81+
* modelArn: "STRING_VALUE", // required
82+
* voiceId: "STRING_VALUE",
83+
* },
84+
* },
7085
* },
7186
* customVocabularyImportSpecification: { // CustomVocabularyImportSpecification
7287
* botId: "STRING_VALUE", // required
@@ -123,10 +138,25 @@ export interface StartImportCommandOutput extends StartImportResponse, __Metadat
123138
* // localeId: "STRING_VALUE", // required
124139
* // nluIntentConfidenceThreshold: Number("double"),
125140
* // voiceSettings: { // VoiceSettings
126-
* // voiceId: "STRING_VALUE", // required
127141
* // engine: "standard" || "neural" || "long-form" || "generative",
142+
* // voiceId: "STRING_VALUE", // required
143+
* // },
144+
* // speechRecognitionSettings: { // SpeechRecognitionSettings
145+
* // speechModelPreference: "Standard" || "Neural" || "Deepgram",
146+
* // speechModelConfig: { // SpeechModelConfig
147+
* // deepgramConfig: { // DeepgramSpeechModelConfig
148+
* // apiTokenSecretArn: "STRING_VALUE", // required
149+
* // modelId: "STRING_VALUE",
150+
* // },
151+
* // },
128152
* // },
129153
* // speechDetectionSensitivity: "Default" || "HighNoiseTolerance" || "MaximumNoiseTolerance",
154+
* // unifiedSpeechSettings: { // UnifiedSpeechSettings
155+
* // speechFoundationModel: { // SpeechFoundationModel
156+
* // modelArn: "STRING_VALUE", // required
157+
* // voiceId: "STRING_VALUE",
158+
* // },
159+
* // },
130160
* // },
131161
* // customVocabularyImportSpecification: { // CustomVocabularyImportSpecification
132162
* // botId: "STRING_VALUE", // required

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

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,23 @@ export interface UpdateBotLocaleCommandOutput extends UpdateBotLocaleResponse, _
4343
* description: "STRING_VALUE",
4444
* nluIntentConfidenceThreshold: Number("double"), // required
4545
* voiceSettings: { // VoiceSettings
46-
* voiceId: "STRING_VALUE", // required
4746
* engine: "standard" || "neural" || "long-form" || "generative",
47+
* voiceId: "STRING_VALUE", // required
48+
* },
49+
* unifiedSpeechSettings: { // UnifiedSpeechSettings
50+
* speechFoundationModel: { // SpeechFoundationModel
51+
* modelArn: "STRING_VALUE", // required
52+
* voiceId: "STRING_VALUE",
53+
* },
54+
* },
55+
* speechRecognitionSettings: { // SpeechRecognitionSettings
56+
* speechModelPreference: "Standard" || "Neural" || "Deepgram",
57+
* speechModelConfig: { // SpeechModelConfig
58+
* deepgramConfig: { // DeepgramSpeechModelConfig
59+
* apiTokenSecretArn: "STRING_VALUE", // required
60+
* modelId: "STRING_VALUE",
61+
* },
62+
* },
4863
* },
4964
* generativeAISettings: { // GenerativeAISettings
5065
* runtimeSettings: { // RuntimeSettings
@@ -109,8 +124,23 @@ export interface UpdateBotLocaleCommandOutput extends UpdateBotLocaleResponse, _
109124
* // description: "STRING_VALUE",
110125
* // nluIntentConfidenceThreshold: Number("double"),
111126
* // voiceSettings: { // VoiceSettings
112-
* // voiceId: "STRING_VALUE", // required
113127
* // engine: "standard" || "neural" || "long-form" || "generative",
128+
* // voiceId: "STRING_VALUE", // required
129+
* // },
130+
* // unifiedSpeechSettings: { // UnifiedSpeechSettings
131+
* // speechFoundationModel: { // SpeechFoundationModel
132+
* // modelArn: "STRING_VALUE", // required
133+
* // voiceId: "STRING_VALUE",
134+
* // },
135+
* // },
136+
* // speechRecognitionSettings: { // SpeechRecognitionSettings
137+
* // speechModelPreference: "Standard" || "Neural" || "Deepgram",
138+
* // speechModelConfig: { // SpeechModelConfig
139+
* // deepgramConfig: { // DeepgramSpeechModelConfig
140+
* // apiTokenSecretArn: "STRING_VALUE", // required
141+
* // modelId: "STRING_VALUE",
142+
* // },
143+
* // },
114144
* // },
115145
* // botLocaleStatus: "Creating" || "Building" || "Built" || "ReadyExpressTesting" || "Failed" || "Deleting" || "NotBuilt" || "Importing" || "Processing",
116146
* // failureReasons: [ // FailureReasons

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// smithy-typescript generated code
22
/* eslint-disable */
33
/**
4-
* <p></p>
4+
* <p>Amazon Lex Model Building Service provides APIs for creating, managing, and deploying conversational bots and their components.</p>
55
*
66
* @packageDocumentation
77
*/

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,20 @@ export const SpeechDetectionSensitivity = {
571571
*/
572572
export type SpeechDetectionSensitivity = (typeof SpeechDetectionSensitivity)[keyof typeof SpeechDetectionSensitivity];
573573

574+
/**
575+
* @public
576+
* @enum
577+
*/
578+
export const SpeechModelPreference = {
579+
Deepgram: "Deepgram",
580+
Neural: "Neural",
581+
Standard: "Standard",
582+
} as const;
583+
/**
584+
* @public
585+
*/
586+
export type SpeechModelPreference = (typeof SpeechModelPreference)[keyof typeof SpeechModelPreference];
587+
574588
/**
575589
* @public
576590
* @enum

0 commit comments

Comments
 (0)