@aws-sdk/client-polly 3.1171.0 → 3.1173.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/README.md +21 -0
  2. package/dist-cjs/index.js +384 -137
  3. package/dist-es/Polly.js +11 -1
  4. package/dist-es/commands/CreateVoiceCommand.js +4 -0
  5. package/dist-es/commands/DeleteVoiceCommand.js +4 -0
  6. package/dist-es/commands/GetVoiceCommand.js +4 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/index.js +1 -0
  9. package/dist-es/models/enums.js +49 -21
  10. package/dist-es/models/errors.js +129 -97
  11. package/dist-es/schemas/schemas_0.js +125 -17
  12. package/dist-es/waiters/index.js +1 -0
  13. package/dist-es/waiters/waitForVoiceActive.js +40 -0
  14. package/dist-types/Polly.d.ts +29 -1
  15. package/dist-types/PollyClient.d.ts +5 -2
  16. package/dist-types/commands/CreateVoiceCommand.d.ts +174 -0
  17. package/dist-types/commands/DeleteVoiceCommand.d.ts +99 -0
  18. package/dist-types/commands/DescribeVoicesCommand.d.ts +45 -9
  19. package/dist-types/commands/GetVoiceCommand.d.ts +129 -0
  20. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -2
  21. package/dist-types/commands/StartSpeechSynthesisStreamCommand.d.ts +26 -2
  22. package/dist-types/commands/StartSpeechSynthesisTaskCommand.d.ts +31 -10
  23. package/dist-types/commands/SynthesizeSpeechCommand.d.ts +24 -0
  24. package/dist-types/commands/TagResourceCommand.d.ts +2 -2
  25. package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
  26. package/dist-types/commands/index.d.ts +3 -0
  27. package/dist-types/index.d.ts +1 -0
  28. package/dist-types/models/enums.d.ts +101 -41
  29. package/dist-types/models/errors.d.ts +183 -126
  30. package/dist-types/models/models_0.d.ts +369 -77
  31. package/dist-types/schemas/schemas_0.d.ts +15 -0
  32. package/dist-types/ts3.4/Polly.d.ts +47 -0
  33. package/dist-types/ts3.4/PollyClient.d.ts +9 -0
  34. package/dist-types/ts3.4/commands/CreateVoiceCommand.d.ts +38 -0
  35. package/dist-types/ts3.4/commands/DeleteVoiceCommand.d.ts +38 -0
  36. package/dist-types/ts3.4/commands/GetVoiceCommand.d.ts +38 -0
  37. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  38. package/dist-types/ts3.4/index.d.ts +1 -0
  39. package/dist-types/ts3.4/models/enums.d.ts +60 -27
  40. package/dist-types/ts3.4/models/errors.d.ts +61 -46
  41. package/dist-types/ts3.4/models/models_0.d.ts +64 -16
  42. package/dist-types/ts3.4/schemas/schemas_0.d.ts +15 -0
  43. package/dist-types/ts3.4/waiters/index.d.ts +1 -0
  44. package/dist-types/ts3.4/waiters/waitForVoiceActive.d.ts +12 -0
  45. package/dist-types/waiters/index.d.ts +1 -0
  46. package/dist-types/waiters/waitForVoiceActive.d.ts +15 -0
  47. package/package.json +1 -1
@@ -1,13 +1,17 @@
1
+ import { WaiterResult } from "@smithy/core/client";
1
2
  import {
2
3
  HttpHandlerOptions as __HttpHandlerOptions,
3
4
  MetricsRecorder as __MetricsRecorder,
4
5
  PaginationConfiguration,
5
6
  Paginator,
7
+ WaiterConfiguration,
6
8
  } from "@smithy/types";
9
+ import { CreateVoiceCommandInput, CreateVoiceCommandOutput } from "./commands/CreateVoiceCommand";
7
10
  import {
8
11
  DeleteLexiconCommandInput,
9
12
  DeleteLexiconCommandOutput,
10
13
  } from "./commands/DeleteLexiconCommand";
14
+ import { DeleteVoiceCommandInput, DeleteVoiceCommandOutput } from "./commands/DeleteVoiceCommand";
11
15
  import {
12
16
  DescribeVoicesCommandInput,
13
17
  DescribeVoicesCommandOutput,
@@ -17,6 +21,7 @@ import {
17
21
  GetSpeechSynthesisTaskCommandInput,
18
22
  GetSpeechSynthesisTaskCommandOutput,
19
23
  } from "./commands/GetSpeechSynthesisTaskCommand";
24
+ import { GetVoiceCommandInput, GetVoiceCommandOutput } from "./commands/GetVoiceCommand";
20
25
  import {
21
26
  ListLexiconsCommandInput,
22
27
  ListLexiconsCommandOutput,
@@ -52,6 +57,19 @@ export interface PollyRequestOptions extends __HttpHandlerOptions {
52
57
  metricsRecorder?: __MetricsRecorder<unknown>;
53
58
  }
54
59
  export interface Polly {
60
+ createVoice(
61
+ args: CreateVoiceCommandInput,
62
+ options?: PollyRequestOptions,
63
+ ): Promise<CreateVoiceCommandOutput>;
64
+ createVoice(
65
+ args: CreateVoiceCommandInput,
66
+ cb: (err: any, data?: CreateVoiceCommandOutput) => void,
67
+ ): void;
68
+ createVoice(
69
+ args: CreateVoiceCommandInput,
70
+ options: PollyRequestOptions,
71
+ cb: (err: any, data?: CreateVoiceCommandOutput) => void,
72
+ ): void;
55
73
  deleteLexicon(
56
74
  args: DeleteLexiconCommandInput,
57
75
  options?: PollyRequestOptions,
@@ -65,6 +83,19 @@ export interface Polly {
65
83
  options: PollyRequestOptions,
66
84
  cb: (err: any, data?: DeleteLexiconCommandOutput) => void,
67
85
  ): void;
86
+ deleteVoice(
87
+ args: DeleteVoiceCommandInput,
88
+ options?: PollyRequestOptions,
89
+ ): Promise<DeleteVoiceCommandOutput>;
90
+ deleteVoice(
91
+ args: DeleteVoiceCommandInput,
92
+ cb: (err: any, data?: DeleteVoiceCommandOutput) => void,
93
+ ): void;
94
+ deleteVoice(
95
+ args: DeleteVoiceCommandInput,
96
+ options: PollyRequestOptions,
97
+ cb: (err: any, data?: DeleteVoiceCommandOutput) => void,
98
+ ): void;
68
99
  describeVoices(): Promise<DescribeVoicesCommandOutput>;
69
100
  describeVoices(
70
101
  args: DescribeVoicesCommandInput,
@@ -105,6 +136,16 @@ export interface Polly {
105
136
  options: PollyRequestOptions,
106
137
  cb: (err: any, data?: GetSpeechSynthesisTaskCommandOutput) => void,
107
138
  ): void;
139
+ getVoice(
140
+ args: GetVoiceCommandInput,
141
+ options?: PollyRequestOptions,
142
+ ): Promise<GetVoiceCommandOutput>;
143
+ getVoice(args: GetVoiceCommandInput, cb: (err: any, data?: GetVoiceCommandOutput) => void): void;
144
+ getVoice(
145
+ args: GetVoiceCommandInput,
146
+ options: PollyRequestOptions,
147
+ cb: (err: any, data?: GetVoiceCommandOutput) => void,
148
+ ): void;
108
149
  listLexicons(): Promise<ListLexiconsCommandOutput>;
109
150
  listLexicons(
110
151
  args: ListLexiconsCommandInput,
@@ -231,5 +272,11 @@ export interface Polly {
231
272
  Exclude<keyof PaginationConfiguration, "client">
232
273
  >,
233
274
  ): Paginator<ListSpeechSynthesisTasksCommandOutput>;
275
+ waitUntilVoiceActive(
276
+ args: GetVoiceCommandInput,
277
+ waiterConfig:
278
+ | number
279
+ | Pick<WaiterConfiguration<Polly>, Exclude<keyof WaiterConfiguration<Polly>, "client">>,
280
+ ): Promise<WaiterResult<GetVoiceCommandOutput>>;
234
281
  }
235
282
  export declare class Polly extends PollyClient implements Polly {}
@@ -41,10 +41,12 @@ import {
41
41
  HttpAuthSchemeInputConfig,
42
42
  HttpAuthSchemeResolvedConfig,
43
43
  } from "./auth/httpAuthSchemeProvider";
44
+ import { CreateVoiceCommandInput, CreateVoiceCommandOutput } from "./commands/CreateVoiceCommand";
44
45
  import {
45
46
  DeleteLexiconCommandInput,
46
47
  DeleteLexiconCommandOutput,
47
48
  } from "./commands/DeleteLexiconCommand";
49
+ import { DeleteVoiceCommandInput, DeleteVoiceCommandOutput } from "./commands/DeleteVoiceCommand";
48
50
  import {
49
51
  DescribeVoicesCommandInput,
50
52
  DescribeVoicesCommandOutput,
@@ -54,6 +56,7 @@ import {
54
56
  GetSpeechSynthesisTaskCommandInput,
55
57
  GetSpeechSynthesisTaskCommandOutput,
56
58
  } from "./commands/GetSpeechSynthesisTaskCommand";
59
+ import { GetVoiceCommandInput, GetVoiceCommandOutput } from "./commands/GetVoiceCommand";
57
60
  import {
58
61
  ListLexiconsCommandInput,
59
62
  ListLexiconsCommandOutput,
@@ -92,10 +95,13 @@ import {
92
95
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
93
96
  export { __Client };
94
97
  export type ServiceInputTypes =
98
+ | CreateVoiceCommandInput
95
99
  | DeleteLexiconCommandInput
100
+ | DeleteVoiceCommandInput
96
101
  | DescribeVoicesCommandInput
97
102
  | GetLexiconCommandInput
98
103
  | GetSpeechSynthesisTaskCommandInput
104
+ | GetVoiceCommandInput
99
105
  | ListLexiconsCommandInput
100
106
  | ListSpeechSynthesisTasksCommandInput
101
107
  | ListTagsForResourceCommandInput
@@ -106,10 +112,13 @@ export type ServiceInputTypes =
106
112
  | TagResourceCommandInput
107
113
  | UntagResourceCommandInput;
108
114
  export type ServiceOutputTypes =
115
+ | CreateVoiceCommandOutput
109
116
  | DeleteLexiconCommandOutput
117
+ | DeleteVoiceCommandOutput
110
118
  | DescribeVoicesCommandOutput
111
119
  | GetLexiconCommandOutput
112
120
  | GetSpeechSynthesisTaskCommandOutput
121
+ | GetVoiceCommandOutput
113
122
  | ListLexiconsCommandOutput
114
123
  | ListSpeechSynthesisTasksCommandOutput
115
124
  | ListTagsForResourceCommandOutput
@@ -0,0 +1,38 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import { CreateVoiceInput, CreateVoiceOutput } from "../models/models_0";
3
+ export { __MetadataBearer };
4
+ export interface CreateVoiceCommandInput extends CreateVoiceInput {}
5
+ export interface CreateVoiceCommandOutput extends CreateVoiceOutput, __MetadataBearer {}
6
+ declare const CreateVoiceCommand_base: {
7
+ new (
8
+ input: CreateVoiceCommandInput,
9
+ ): import("@smithy/core/client").CommandImpl<
10
+ CreateVoiceCommandInput,
11
+ CreateVoiceCommandOutput,
12
+ import("..").PollyClientResolvedConfig,
13
+ import("..").ServiceInputTypes,
14
+ import("..").ServiceOutputTypes
15
+ >;
16
+ new (
17
+ input: CreateVoiceCommandInput,
18
+ ): import("@smithy/core/client").CommandImpl<
19
+ CreateVoiceCommandInput,
20
+ CreateVoiceCommandOutput,
21
+ import("..").PollyClientResolvedConfig,
22
+ import("..").ServiceInputTypes,
23
+ import("..").ServiceOutputTypes
24
+ >;
25
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
26
+ };
27
+ export declare class CreateVoiceCommand extends CreateVoiceCommand_base {
28
+ protected static __types: {
29
+ api: {
30
+ input: CreateVoiceInput;
31
+ output: CreateVoiceOutput;
32
+ };
33
+ sdk: {
34
+ input: CreateVoiceCommandInput;
35
+ output: CreateVoiceCommandOutput;
36
+ };
37
+ };
38
+ }
@@ -0,0 +1,38 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import { DeleteVoiceInput, DeleteVoiceOutput } from "../models/models_0";
3
+ export { __MetadataBearer };
4
+ export interface DeleteVoiceCommandInput extends DeleteVoiceInput {}
5
+ export interface DeleteVoiceCommandOutput extends DeleteVoiceOutput, __MetadataBearer {}
6
+ declare const DeleteVoiceCommand_base: {
7
+ new (
8
+ input: DeleteVoiceCommandInput,
9
+ ): import("@smithy/core/client").CommandImpl<
10
+ DeleteVoiceCommandInput,
11
+ DeleteVoiceCommandOutput,
12
+ import("..").PollyClientResolvedConfig,
13
+ import("..").ServiceInputTypes,
14
+ import("..").ServiceOutputTypes
15
+ >;
16
+ new (
17
+ input: DeleteVoiceCommandInput,
18
+ ): import("@smithy/core/client").CommandImpl<
19
+ DeleteVoiceCommandInput,
20
+ DeleteVoiceCommandOutput,
21
+ import("..").PollyClientResolvedConfig,
22
+ import("..").ServiceInputTypes,
23
+ import("..").ServiceOutputTypes
24
+ >;
25
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
26
+ };
27
+ export declare class DeleteVoiceCommand extends DeleteVoiceCommand_base {
28
+ protected static __types: {
29
+ api: {
30
+ input: DeleteVoiceInput;
31
+ output: {};
32
+ };
33
+ sdk: {
34
+ input: DeleteVoiceCommandInput;
35
+ output: DeleteVoiceCommandOutput;
36
+ };
37
+ };
38
+ }
@@ -0,0 +1,38 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import { GetVoiceInput, GetVoiceOutput } from "../models/models_0";
3
+ export { __MetadataBearer };
4
+ export interface GetVoiceCommandInput extends GetVoiceInput {}
5
+ export interface GetVoiceCommandOutput extends GetVoiceOutput, __MetadataBearer {}
6
+ declare const GetVoiceCommand_base: {
7
+ new (
8
+ input: GetVoiceCommandInput,
9
+ ): import("@smithy/core/client").CommandImpl<
10
+ GetVoiceCommandInput,
11
+ GetVoiceCommandOutput,
12
+ import("..").PollyClientResolvedConfig,
13
+ import("..").ServiceInputTypes,
14
+ import("..").ServiceOutputTypes
15
+ >;
16
+ new (
17
+ input: GetVoiceCommandInput,
18
+ ): import("@smithy/core/client").CommandImpl<
19
+ GetVoiceCommandInput,
20
+ GetVoiceCommandOutput,
21
+ import("..").PollyClientResolvedConfig,
22
+ import("..").ServiceInputTypes,
23
+ import("..").ServiceOutputTypes
24
+ >;
25
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
26
+ };
27
+ export declare class GetVoiceCommand extends GetVoiceCommand_base {
28
+ protected static __types: {
29
+ api: {
30
+ input: GetVoiceInput;
31
+ output: GetVoiceOutput;
32
+ };
33
+ sdk: {
34
+ input: GetVoiceCommandInput;
35
+ output: GetVoiceCommandOutput;
36
+ };
37
+ };
38
+ }
@@ -1,7 +1,10 @@
1
+ export * from "./CreateVoiceCommand";
1
2
  export * from "./DeleteLexiconCommand";
3
+ export * from "./DeleteVoiceCommand";
2
4
  export * from "./DescribeVoicesCommand";
3
5
  export * from "./GetLexiconCommand";
4
6
  export * from "./GetSpeechSynthesisTaskCommand";
7
+ export * from "./GetVoiceCommand";
5
8
  export * from "./ListLexiconsCommand";
6
9
  export * from "./ListSpeechSynthesisTasksCommand";
7
10
  export * from "./ListTagsForResourceCommand";
@@ -6,6 +6,7 @@ export { PollyExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export { Command as $Command } from "@smithy/core/client";
8
8
  export * from "./pagination";
9
+ export * from "./waiters";
9
10
  export * from "./schemas/schemas_0";
10
11
  export * from "./models/enums";
11
12
  export * from "./models/errors";
@@ -1,10 +1,26 @@
1
- export declare const Engine: {
2
- readonly GENERATIVE: "generative";
3
- readonly LONG_FORM: "long-form";
4
- readonly NEURAL: "neural";
5
- readonly STANDARD: "standard";
1
+ export declare const AudioFormat: {
2
+ readonly FLAC: "flac";
3
+ readonly MP3: "mp3";
4
+ readonly OGG_VORBIS: "ogg_vorbis";
5
+ readonly WAV: "wav";
6
6
  };
7
- export type Engine = (typeof Engine)[keyof typeof Engine];
7
+ export type AudioFormat = (typeof AudioFormat)[keyof typeof AudioFormat];
8
+ export declare const ResourceType: {
9
+ readonly LEXICON: "lexicon";
10
+ readonly VOICE: "voice";
11
+ };
12
+ export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
13
+ export declare const CustomVoiceLanguageCode: {
14
+ readonly DE_DE: "de-DE";
15
+ readonly EN_US: "en-US";
16
+ readonly ES_US: "es-US";
17
+ readonly FR_FR: "fr-FR";
18
+ readonly HI_IN: "hi-IN";
19
+ readonly IT_IT: "it-IT";
20
+ readonly PT_BR: "pt-BR";
21
+ };
22
+ export type CustomVoiceLanguageCode =
23
+ (typeof CustomVoiceLanguageCode)[keyof typeof CustomVoiceLanguageCode];
8
24
  export declare const LanguageCode: {
9
25
  readonly ar_AE: "ar-AE";
10
26
  readonly arb: "arb";
@@ -174,6 +190,44 @@ export declare const VoiceId: {
174
190
  readonly Zhiyu: "Zhiyu";
175
191
  };
176
192
  export type VoiceId = (typeof VoiceId)[keyof typeof VoiceId];
193
+ export declare const VoiceOrigin: {
194
+ readonly AWS: "aws";
195
+ readonly CUSTOMER: "customer";
196
+ };
197
+ export type VoiceOrigin = (typeof VoiceOrigin)[keyof typeof VoiceOrigin];
198
+ export declare const VoiceStatus: {
199
+ readonly ACTIVE: "active";
200
+ readonly FAILED: "failed";
201
+ readonly PENDING: "pending";
202
+ };
203
+ export type VoiceStatus = (typeof VoiceStatus)[keyof typeof VoiceStatus];
204
+ export declare const Engine: {
205
+ readonly GENERATIVE: "generative";
206
+ readonly LONG_FORM: "long-form";
207
+ readonly NEURAL: "neural";
208
+ readonly STANDARD: "standard";
209
+ };
210
+ export type Engine = (typeof Engine)[keyof typeof Engine];
211
+ export declare const QuotaCode: {
212
+ readonly CUSTOM_VOICE_MAX_COUNT: "custom-voice-max-count";
213
+ readonly INPUT_STREAM_INBOUND_EVENT_TIMEOUT: "input-stream-inbound-event-timeout";
214
+ readonly INPUT_STREAM_TIMEOUT: "input-stream-timeout";
215
+ };
216
+ export type QuotaCode = (typeof QuotaCode)[keyof typeof QuotaCode];
217
+ export declare const ServiceCode: {
218
+ readonly POLLY: "polly";
219
+ };
220
+ export type ServiceCode = (typeof ServiceCode)[keyof typeof ServiceCode];
221
+ export declare const ValidationExceptionReason: {
222
+ readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
223
+ readonly INVALID_INBOUND_EVENT: "invalidInboundEvent";
224
+ readonly KMS_KEY_NOT_FOUND: "kmsKeyNotFound";
225
+ readonly KMS_KEY_UNUSABLE: "kmsKeyUnusable";
226
+ readonly OTHER: "other";
227
+ readonly UNSUPPORTED_OPERATION: "unsupportedOperation";
228
+ };
229
+ export type ValidationExceptionReason =
230
+ (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
177
231
  export declare const OutputFormat: {
178
232
  readonly ALAW: "alaw";
179
233
  readonly JSON: "json";
@@ -203,24 +257,3 @@ export declare const TextType: {
203
257
  readonly TEXT: "text";
204
258
  };
205
259
  export type TextType = (typeof TextType)[keyof typeof TextType];
206
- export declare const ResourceType: {
207
- readonly LEXICON: "lexicon";
208
- };
209
- export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
210
- export declare const ValidationExceptionReason: {
211
- readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
212
- readonly INVALID_INBOUND_EVENT: "invalidInboundEvent";
213
- readonly OTHER: "other";
214
- readonly UNSUPPORTED_OPERATION: "unsupportedOperation";
215
- };
216
- export type ValidationExceptionReason =
217
- (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
218
- export declare const QuotaCode: {
219
- readonly INPUT_STREAM_INBOUND_EVENT_TIMEOUT: "input-stream-inbound-event-timeout";
220
- readonly INPUT_STREAM_TIMEOUT: "input-stream-timeout";
221
- };
222
- export type QuotaCode = (typeof QuotaCode)[keyof typeof QuotaCode];
223
- export declare const ServiceCode: {
224
- readonly POLLY: "polly";
225
- };
226
- export type ServiceCode = (typeof ServiceCode)[keyof typeof ServiceCode];
@@ -2,11 +2,26 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/clien
2
2
  import { QuotaCode, ResourceType, ServiceCode, ValidationExceptionReason } from "./enums";
3
3
  import { ThrottlingReason, ValidationExceptionField } from "./models_0";
4
4
  import { PollyServiceException as __BaseException } from "./PollyServiceException";
5
- export declare class LexiconNotFoundException extends __BaseException {
5
+ export declare class AccessDeniedException extends __BaseException {
6
6
  static readonly shapeId: string;
7
- readonly name: "LexiconNotFoundException";
7
+ readonly name: "AccessDeniedException";
8
8
  readonly $fault: "client";
9
- constructor(opts: __ExceptionOptionType<LexiconNotFoundException, __BaseException>);
9
+ Message?: string | undefined;
10
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
11
+ }
12
+ export declare class ConflictException extends __BaseException {
13
+ static readonly shapeId: string;
14
+ readonly name: "ConflictException";
15
+ readonly $fault: "client";
16
+ resourceId: string | undefined;
17
+ resourceType: ResourceType | undefined;
18
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
19
+ }
20
+ export declare class InvalidTagParameterException extends __BaseException {
21
+ static readonly shapeId: string;
22
+ readonly name: "InvalidTagParameterException";
23
+ readonly $fault: "client";
24
+ constructor(opts: __ExceptionOptionType<InvalidTagParameterException, __BaseException>);
10
25
  }
11
26
  export declare class ServiceFailureException extends __BaseException {
12
27
  static readonly shapeId: string;
@@ -14,6 +29,49 @@ export declare class ServiceFailureException extends __BaseException {
14
29
  readonly $fault: "server";
15
30
  constructor(opts: __ExceptionOptionType<ServiceFailureException, __BaseException>);
16
31
  }
32
+ export declare class ServiceQuotaExceededException extends __BaseException {
33
+ static readonly shapeId: string;
34
+ readonly name: "ServiceQuotaExceededException";
35
+ readonly $fault: "client";
36
+ quotaCode: QuotaCode | undefined;
37
+ serviceCode: ServiceCode | undefined;
38
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
39
+ }
40
+ export declare class ThrottlingException extends __BaseException {
41
+ static readonly shapeId: string;
42
+ readonly name: "ThrottlingException";
43
+ readonly $fault: "client";
44
+ throttlingReasons?: ThrottlingReason[] | undefined;
45
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
46
+ }
47
+ export declare class TooManyTagsException extends __BaseException {
48
+ static readonly shapeId: string;
49
+ readonly name: "TooManyTagsException";
50
+ readonly $fault: "client";
51
+ constructor(opts: __ExceptionOptionType<TooManyTagsException, __BaseException>);
52
+ }
53
+ export declare class ValidationException extends __BaseException {
54
+ static readonly shapeId: string;
55
+ readonly name: "ValidationException";
56
+ readonly $fault: "client";
57
+ reason: ValidationExceptionReason | undefined;
58
+ fields?: ValidationExceptionField[] | undefined;
59
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
60
+ }
61
+ export declare class LexiconNotFoundException extends __BaseException {
62
+ static readonly shapeId: string;
63
+ readonly name: "LexiconNotFoundException";
64
+ readonly $fault: "client";
65
+ constructor(opts: __ExceptionOptionType<LexiconNotFoundException, __BaseException>);
66
+ }
67
+ export declare class ResourceNotFoundException extends __BaseException {
68
+ static readonly shapeId: string;
69
+ readonly name: "ResourceNotFoundException";
70
+ readonly $fault: "client";
71
+ resourceId: string | undefined;
72
+ resourceType: ResourceType | undefined;
73
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
74
+ }
17
75
  export declare class InvalidNextTokenException extends __BaseException {
18
76
  static readonly shapeId: string;
19
77
  readonly name: "InvalidNextTokenException";
@@ -74,12 +132,6 @@ export declare class InvalidSsmlException extends __BaseException {
74
132
  readonly $fault: "client";
75
133
  constructor(opts: __ExceptionOptionType<InvalidSsmlException, __BaseException>);
76
134
  }
77
- export declare class InvalidTagParameterException extends __BaseException {
78
- static readonly shapeId: string;
79
- readonly name: "InvalidTagParameterException";
80
- readonly $fault: "client";
81
- constructor(opts: __ExceptionOptionType<InvalidTagParameterException, __BaseException>);
82
- }
83
135
  export declare class LanguageNotSupportedException extends __BaseException {
84
136
  static readonly shapeId: string;
85
137
  readonly name: "LanguageNotSupportedException";
@@ -92,29 +144,6 @@ export declare class LexiconSizeExceededException extends __BaseException {
92
144
  readonly $fault: "client";
93
145
  constructor(opts: __ExceptionOptionType<LexiconSizeExceededException, __BaseException>);
94
146
  }
95
- export declare class ResourceNotFoundException extends __BaseException {
96
- static readonly shapeId: string;
97
- readonly name: "ResourceNotFoundException";
98
- readonly $fault: "client";
99
- resourceId: string | undefined;
100
- resourceType: ResourceType | undefined;
101
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
102
- }
103
- export declare class ThrottlingException extends __BaseException {
104
- static readonly shapeId: string;
105
- readonly name: "ThrottlingException";
106
- readonly $fault: "client";
107
- throttlingReasons?: ThrottlingReason[] | undefined;
108
- constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
109
- }
110
- export declare class ValidationException extends __BaseException {
111
- static readonly shapeId: string;
112
- readonly name: "ValidationException";
113
- readonly $fault: "client";
114
- reason: ValidationExceptionReason | undefined;
115
- fields?: ValidationExceptionField[] | undefined;
116
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
117
- }
118
147
  export declare class MarksNotSupportedForFormatException extends __BaseException {
119
148
  static readonly shapeId: string;
120
149
  readonly name: "MarksNotSupportedForFormatException";
@@ -133,12 +162,6 @@ export declare class MaxLexiconsNumberExceededException extends __BaseException
133
162
  readonly $fault: "client";
134
163
  constructor(opts: __ExceptionOptionType<MaxLexiconsNumberExceededException, __BaseException>);
135
164
  }
136
- export declare class TooManyTagsException extends __BaseException {
137
- static readonly shapeId: string;
138
- readonly name: "TooManyTagsException";
139
- readonly $fault: "client";
140
- constructor(opts: __ExceptionOptionType<TooManyTagsException, __BaseException>);
141
- }
142
165
  export declare class UnsupportedPlsAlphabetException extends __BaseException {
143
166
  static readonly shapeId: string;
144
167
  readonly name: "UnsupportedPlsAlphabetException";
@@ -151,14 +174,6 @@ export declare class UnsupportedPlsLanguageException extends __BaseException {
151
174
  readonly $fault: "client";
152
175
  constructor(opts: __ExceptionOptionType<UnsupportedPlsLanguageException, __BaseException>);
153
176
  }
154
- export declare class ServiceQuotaExceededException extends __BaseException {
155
- static readonly shapeId: string;
156
- readonly name: "ServiceQuotaExceededException";
157
- readonly $fault: "client";
158
- quotaCode: QuotaCode | undefined;
159
- serviceCode: ServiceCode | undefined;
160
- constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
161
- }
162
177
  export declare class SsmlMarksNotSupportedForTextTypeException extends __BaseException {
163
178
  static readonly shapeId: string;
164
179
  readonly name: "SsmlMarksNotSupportedForTextTypeException";
@@ -1,5 +1,7 @@
1
1
  import { StreamingBlobTypes } from "@smithy/types";
2
2
  import {
3
+ AudioFormat,
4
+ CustomVoiceLanguageCode,
3
5
  Engine,
4
6
  Gender,
5
7
  LanguageCode,
@@ -8,6 +10,8 @@ import {
8
10
  TaskStatus,
9
11
  TextType,
10
12
  VoiceId,
13
+ VoiceOrigin,
14
+ VoiceStatus,
11
15
  } from "./enums";
12
16
  import {
13
17
  ServiceFailureException,
@@ -19,24 +23,70 @@ export interface AudioEvent {
19
23
  AudioChunk?: Uint8Array | undefined;
20
24
  }
21
25
  export interface CloseStreamEvent {}
22
- export interface DeleteLexiconInput {
23
- Name: string | undefined;
26
+ export interface CustomerManagedEncryption {
27
+ KmsKeyArn: string | undefined;
28
+ EncryptionContext?: Record<string, string> | undefined;
24
29
  }
25
- export interface DeleteLexiconOutput {}
26
- export interface DescribeVoicesInput {
27
- Engine?: Engine | undefined;
28
- LanguageCode?: LanguageCode | undefined;
29
- IncludeAdditionalLanguageCodes?: boolean | undefined;
30
- NextToken?: string | undefined;
30
+ export interface RecordingData {
31
+ S3Url?: string | undefined;
32
+ Bytes?: Uint8Array | undefined;
33
+ }
34
+ export interface Recording {
35
+ Format: AudioFormat | undefined;
36
+ Data: RecordingData | undefined;
37
+ }
38
+ export interface VoiceCreationData {
39
+ Recordings: Recording[] | undefined;
40
+ }
41
+ export interface CreateVoiceInput {
42
+ Name: string | undefined;
43
+ LanguageCode: CustomVoiceLanguageCode | undefined;
44
+ TermsAccepted: boolean | undefined;
45
+ VoiceCreationData: VoiceCreationData | undefined;
46
+ CustomerManagedEncryption?: CustomerManagedEncryption | undefined;
47
+ Tags?: Record<string, string> | undefined;
48
+ ClientToken?: string | undefined;
31
49
  }
32
50
  export interface Voice {
51
+ Arn?: string | undefined;
33
52
  Gender?: Gender | undefined;
34
53
  Id?: VoiceId | undefined;
35
54
  LanguageCode?: LanguageCode | undefined;
36
55
  LanguageName?: string | undefined;
37
56
  Name?: string | undefined;
57
+ Origin?: VoiceOrigin | undefined;
58
+ Status?: VoiceStatus | undefined;
59
+ StatusReason?: string | undefined;
38
60
  AdditionalLanguageCodes?: LanguageCode[] | undefined;
39
61
  SupportedEngines?: Engine[] | undefined;
62
+ VoiceCreationData?: VoiceCreationData | undefined;
63
+ CustomerManagedEncryption?: CustomerManagedEncryption | undefined;
64
+ CreationTime?: Date | undefined;
65
+ }
66
+ export interface CreateVoiceOutput {
67
+ Voice?: Voice | undefined;
68
+ }
69
+ export interface ThrottlingReason {
70
+ reason?: string | undefined;
71
+ resource?: string | undefined;
72
+ }
73
+ export interface ValidationExceptionField {
74
+ name: string | undefined;
75
+ message: string | undefined;
76
+ }
77
+ export interface DeleteLexiconInput {
78
+ Name: string | undefined;
79
+ }
80
+ export interface DeleteLexiconOutput {}
81
+ export interface DeleteVoiceInput {
82
+ VoiceId: string | undefined;
83
+ }
84
+ export interface DeleteVoiceOutput {}
85
+ export interface DescribeVoicesInput {
86
+ Engine?: Engine | undefined;
87
+ LanguageCode?: LanguageCode | undefined;
88
+ IncludeAdditionalLanguageCodes?: boolean | undefined;
89
+ NextToken?: string | undefined;
40
90
  }
41
91
  export interface DescribeVoicesOutput {
42
92
  Voices?: Voice[] | undefined;
@@ -87,6 +137,12 @@ export interface SynthesisTask {
87
137
  export interface GetSpeechSynthesisTaskOutput {
88
138
  SynthesisTask?: SynthesisTask | undefined;
89
139
  }
140
+ export interface GetVoiceInput {
141
+ VoiceId: string | undefined;
142
+ }
143
+ export interface GetVoiceOutput {
144
+ Voice?: Voice | undefined;
145
+ }
90
146
  export interface LexiconDescription {
91
147
  Name?: string | undefined;
92
148
  Attributes?: LexiconAttributes | undefined;
@@ -113,14 +169,6 @@ export interface ListTagsForResourceInput {
113
169
  export interface ListTagsForResourceOutput {
114
170
  Tags?: Record<string, string> | undefined;
115
171
  }
116
- export interface ThrottlingReason {
117
- reason?: string | undefined;
118
- resource?: string | undefined;
119
- }
120
- export interface ValidationExceptionField {
121
- name: string | undefined;
122
- message: string | undefined;
123
- }
124
172
  export interface PutLexiconInput {
125
173
  Name: string | undefined;
126
174
  Content: string | undefined;