@aws-sdk/client-polly 3.1172.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.
- package/README.md +21 -0
- package/dist-cjs/index.js +384 -137
- package/dist-es/Polly.js +11 -1
- package/dist-es/commands/CreateVoiceCommand.js +4 -0
- package/dist-es/commands/DeleteVoiceCommand.js +4 -0
- package/dist-es/commands/GetVoiceCommand.js +4 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/index.js +1 -0
- package/dist-es/models/enums.js +49 -21
- package/dist-es/models/errors.js +129 -97
- package/dist-es/schemas/schemas_0.js +125 -17
- package/dist-es/waiters/index.js +1 -0
- package/dist-es/waiters/waitForVoiceActive.js +40 -0
- package/dist-types/Polly.d.ts +29 -1
- package/dist-types/PollyClient.d.ts +5 -2
- package/dist-types/commands/CreateVoiceCommand.d.ts +174 -0
- package/dist-types/commands/DeleteVoiceCommand.d.ts +99 -0
- package/dist-types/commands/DescribeVoicesCommand.d.ts +45 -9
- package/dist-types/commands/GetVoiceCommand.d.ts +129 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/dist-types/commands/StartSpeechSynthesisStreamCommand.d.ts +26 -2
- package/dist-types/commands/StartSpeechSynthesisTaskCommand.d.ts +31 -10
- package/dist-types/commands/SynthesizeSpeechCommand.d.ts +24 -0
- package/dist-types/commands/TagResourceCommand.d.ts +2 -2
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +101 -41
- package/dist-types/models/errors.d.ts +183 -126
- package/dist-types/models/models_0.d.ts +369 -77
- package/dist-types/schemas/schemas_0.d.ts +15 -0
- package/dist-types/ts3.4/Polly.d.ts +47 -0
- package/dist-types/ts3.4/PollyClient.d.ts +9 -0
- package/dist-types/ts3.4/commands/CreateVoiceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteVoiceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetVoiceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +60 -27
- package/dist-types/ts3.4/models/errors.d.ts +61 -46
- package/dist-types/ts3.4/models/models_0.d.ts +64 -16
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +15 -0
- package/dist-types/ts3.4/waiters/index.d.ts +1 -0
- package/dist-types/ts3.4/waiters/waitForVoiceActive.d.ts +12 -0
- package/dist-types/waiters/index.d.ts +1 -0
- package/dist-types/waiters/waitForVoiceActive.d.ts +15 -0
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
2
2
|
const { resolveEventStreamConfig, getEventStreamPlugin } = require("@aws-sdk/middleware-eventstream");
|
|
3
3
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
4
|
-
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
|
|
4
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
|
|
5
5
|
const { Command: $Command } = require("@smithy/core/client");
|
|
6
6
|
exports.$Command = $Command;
|
|
7
7
|
exports.__Client = Client;
|
|
@@ -72,7 +72,7 @@ const commonParams = {
|
|
|
72
72
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
73
73
|
};
|
|
74
74
|
|
|
75
|
-
var version = "3.
|
|
75
|
+
var version = "3.1172.0";
|
|
76
76
|
var packageInfo = {
|
|
77
77
|
version: version};
|
|
78
78
|
|
|
@@ -142,17 +142,49 @@ class PollyServiceException extends ServiceException {
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
class
|
|
146
|
-
static shapeId = "com.amazonaws.polly#
|
|
147
|
-
name = "
|
|
145
|
+
class AccessDeniedException extends PollyServiceException {
|
|
146
|
+
static shapeId = "com.amazonaws.polly#AccessDeniedException";
|
|
147
|
+
name = "AccessDeniedException";
|
|
148
148
|
$fault = "client";
|
|
149
|
+
Message;
|
|
149
150
|
constructor(opts) {
|
|
150
151
|
super({
|
|
151
|
-
name: "
|
|
152
|
+
name: "AccessDeniedException",
|
|
152
153
|
$fault: "client",
|
|
153
154
|
...opts,
|
|
154
155
|
});
|
|
155
|
-
Object.setPrototypeOf(this,
|
|
156
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
157
|
+
this.Message = opts.Message;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
class ConflictException extends PollyServiceException {
|
|
161
|
+
static shapeId = "com.amazonaws.polly#ConflictException";
|
|
162
|
+
name = "ConflictException";
|
|
163
|
+
$fault = "client";
|
|
164
|
+
resourceId;
|
|
165
|
+
resourceType;
|
|
166
|
+
constructor(opts) {
|
|
167
|
+
super({
|
|
168
|
+
name: "ConflictException",
|
|
169
|
+
$fault: "client",
|
|
170
|
+
...opts,
|
|
171
|
+
});
|
|
172
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
173
|
+
this.resourceId = opts.resourceId;
|
|
174
|
+
this.resourceType = opts.resourceType;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
class InvalidTagParameterException extends PollyServiceException {
|
|
178
|
+
static shapeId = "com.amazonaws.polly#InvalidTagParameterException";
|
|
179
|
+
name = "InvalidTagParameterException";
|
|
180
|
+
$fault = "client";
|
|
181
|
+
constructor(opts) {
|
|
182
|
+
super({
|
|
183
|
+
name: "InvalidTagParameterException",
|
|
184
|
+
$fault: "client",
|
|
185
|
+
...opts,
|
|
186
|
+
});
|
|
187
|
+
Object.setPrototypeOf(this, InvalidTagParameterException.prototype);
|
|
156
188
|
}
|
|
157
189
|
}
|
|
158
190
|
class ServiceFailureException extends PollyServiceException {
|
|
@@ -168,6 +200,98 @@ class ServiceFailureException extends PollyServiceException {
|
|
|
168
200
|
Object.setPrototypeOf(this, ServiceFailureException.prototype);
|
|
169
201
|
}
|
|
170
202
|
}
|
|
203
|
+
class ServiceQuotaExceededException extends PollyServiceException {
|
|
204
|
+
static shapeId = "com.amazonaws.polly#ServiceQuotaExceededException";
|
|
205
|
+
name = "ServiceQuotaExceededException";
|
|
206
|
+
$fault = "client";
|
|
207
|
+
quotaCode;
|
|
208
|
+
serviceCode;
|
|
209
|
+
constructor(opts) {
|
|
210
|
+
super({
|
|
211
|
+
name: "ServiceQuotaExceededException",
|
|
212
|
+
$fault: "client",
|
|
213
|
+
...opts,
|
|
214
|
+
});
|
|
215
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
216
|
+
this.quotaCode = opts.quotaCode;
|
|
217
|
+
this.serviceCode = opts.serviceCode;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
class ThrottlingException extends PollyServiceException {
|
|
221
|
+
static shapeId = "com.amazonaws.polly#ThrottlingException";
|
|
222
|
+
name = "ThrottlingException";
|
|
223
|
+
$fault = "client";
|
|
224
|
+
throttlingReasons;
|
|
225
|
+
constructor(opts) {
|
|
226
|
+
super({
|
|
227
|
+
name: "ThrottlingException",
|
|
228
|
+
$fault: "client",
|
|
229
|
+
...opts,
|
|
230
|
+
});
|
|
231
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
232
|
+
this.throttlingReasons = opts.throttlingReasons;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
class TooManyTagsException extends PollyServiceException {
|
|
236
|
+
static shapeId = "com.amazonaws.polly#TooManyTagsException";
|
|
237
|
+
name = "TooManyTagsException";
|
|
238
|
+
$fault = "client";
|
|
239
|
+
constructor(opts) {
|
|
240
|
+
super({
|
|
241
|
+
name: "TooManyTagsException",
|
|
242
|
+
$fault: "client",
|
|
243
|
+
...opts,
|
|
244
|
+
});
|
|
245
|
+
Object.setPrototypeOf(this, TooManyTagsException.prototype);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
class ValidationException extends PollyServiceException {
|
|
249
|
+
static shapeId = "com.amazonaws.polly#ValidationException";
|
|
250
|
+
name = "ValidationException";
|
|
251
|
+
$fault = "client";
|
|
252
|
+
reason;
|
|
253
|
+
fields;
|
|
254
|
+
constructor(opts) {
|
|
255
|
+
super({
|
|
256
|
+
name: "ValidationException",
|
|
257
|
+
$fault: "client",
|
|
258
|
+
...opts,
|
|
259
|
+
});
|
|
260
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
261
|
+
this.reason = opts.reason;
|
|
262
|
+
this.fields = opts.fields;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
class LexiconNotFoundException extends PollyServiceException {
|
|
266
|
+
static shapeId = "com.amazonaws.polly#LexiconNotFoundException";
|
|
267
|
+
name = "LexiconNotFoundException";
|
|
268
|
+
$fault = "client";
|
|
269
|
+
constructor(opts) {
|
|
270
|
+
super({
|
|
271
|
+
name: "LexiconNotFoundException",
|
|
272
|
+
$fault: "client",
|
|
273
|
+
...opts,
|
|
274
|
+
});
|
|
275
|
+
Object.setPrototypeOf(this, LexiconNotFoundException.prototype);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
class ResourceNotFoundException extends PollyServiceException {
|
|
279
|
+
static shapeId = "com.amazonaws.polly#ResourceNotFoundException";
|
|
280
|
+
name = "ResourceNotFoundException";
|
|
281
|
+
$fault = "client";
|
|
282
|
+
resourceId;
|
|
283
|
+
resourceType;
|
|
284
|
+
constructor(opts) {
|
|
285
|
+
super({
|
|
286
|
+
name: "ResourceNotFoundException",
|
|
287
|
+
$fault: "client",
|
|
288
|
+
...opts,
|
|
289
|
+
});
|
|
290
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
291
|
+
this.resourceId = opts.resourceId;
|
|
292
|
+
this.resourceType = opts.resourceType;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
171
295
|
class InvalidNextTokenException extends PollyServiceException {
|
|
172
296
|
static shapeId = "com.amazonaws.polly#InvalidNextTokenException";
|
|
173
297
|
name = "InvalidNextTokenException";
|
|
@@ -298,19 +422,6 @@ class InvalidSsmlException extends PollyServiceException {
|
|
|
298
422
|
Object.setPrototypeOf(this, InvalidSsmlException.prototype);
|
|
299
423
|
}
|
|
300
424
|
}
|
|
301
|
-
class InvalidTagParameterException extends PollyServiceException {
|
|
302
|
-
static shapeId = "com.amazonaws.polly#InvalidTagParameterException";
|
|
303
|
-
name = "InvalidTagParameterException";
|
|
304
|
-
$fault = "client";
|
|
305
|
-
constructor(opts) {
|
|
306
|
-
super({
|
|
307
|
-
name: "InvalidTagParameterException",
|
|
308
|
-
$fault: "client",
|
|
309
|
-
...opts,
|
|
310
|
-
});
|
|
311
|
-
Object.setPrototypeOf(this, InvalidTagParameterException.prototype);
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
425
|
class LanguageNotSupportedException extends PollyServiceException {
|
|
315
426
|
static shapeId = "com.amazonaws.polly#LanguageNotSupportedException";
|
|
316
427
|
name = "LanguageNotSupportedException";
|
|
@@ -337,55 +448,6 @@ class LexiconSizeExceededException extends PollyServiceException {
|
|
|
337
448
|
Object.setPrototypeOf(this, LexiconSizeExceededException.prototype);
|
|
338
449
|
}
|
|
339
450
|
}
|
|
340
|
-
class ResourceNotFoundException extends PollyServiceException {
|
|
341
|
-
static shapeId = "com.amazonaws.polly#ResourceNotFoundException";
|
|
342
|
-
name = "ResourceNotFoundException";
|
|
343
|
-
$fault = "client";
|
|
344
|
-
resourceId;
|
|
345
|
-
resourceType;
|
|
346
|
-
constructor(opts) {
|
|
347
|
-
super({
|
|
348
|
-
name: "ResourceNotFoundException",
|
|
349
|
-
$fault: "client",
|
|
350
|
-
...opts,
|
|
351
|
-
});
|
|
352
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
353
|
-
this.resourceId = opts.resourceId;
|
|
354
|
-
this.resourceType = opts.resourceType;
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
class ThrottlingException extends PollyServiceException {
|
|
358
|
-
static shapeId = "com.amazonaws.polly#ThrottlingException";
|
|
359
|
-
name = "ThrottlingException";
|
|
360
|
-
$fault = "client";
|
|
361
|
-
throttlingReasons;
|
|
362
|
-
constructor(opts) {
|
|
363
|
-
super({
|
|
364
|
-
name: "ThrottlingException",
|
|
365
|
-
$fault: "client",
|
|
366
|
-
...opts,
|
|
367
|
-
});
|
|
368
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
369
|
-
this.throttlingReasons = opts.throttlingReasons;
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
class ValidationException extends PollyServiceException {
|
|
373
|
-
static shapeId = "com.amazonaws.polly#ValidationException";
|
|
374
|
-
name = "ValidationException";
|
|
375
|
-
$fault = "client";
|
|
376
|
-
reason;
|
|
377
|
-
fields;
|
|
378
|
-
constructor(opts) {
|
|
379
|
-
super({
|
|
380
|
-
name: "ValidationException",
|
|
381
|
-
$fault: "client",
|
|
382
|
-
...opts,
|
|
383
|
-
});
|
|
384
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
385
|
-
this.reason = opts.reason;
|
|
386
|
-
this.fields = opts.fields;
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
451
|
class MarksNotSupportedForFormatException extends PollyServiceException {
|
|
390
452
|
static shapeId = "com.amazonaws.polly#MarksNotSupportedForFormatException";
|
|
391
453
|
name = "MarksNotSupportedForFormatException";
|
|
@@ -425,19 +487,6 @@ class MaxLexiconsNumberExceededException extends PollyServiceException {
|
|
|
425
487
|
Object.setPrototypeOf(this, MaxLexiconsNumberExceededException.prototype);
|
|
426
488
|
}
|
|
427
489
|
}
|
|
428
|
-
class TooManyTagsException extends PollyServiceException {
|
|
429
|
-
static shapeId = "com.amazonaws.polly#TooManyTagsException";
|
|
430
|
-
name = "TooManyTagsException";
|
|
431
|
-
$fault = "client";
|
|
432
|
-
constructor(opts) {
|
|
433
|
-
super({
|
|
434
|
-
name: "TooManyTagsException",
|
|
435
|
-
$fault: "client",
|
|
436
|
-
...opts,
|
|
437
|
-
});
|
|
438
|
-
Object.setPrototypeOf(this, TooManyTagsException.prototype);
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
490
|
class UnsupportedPlsAlphabetException extends PollyServiceException {
|
|
442
491
|
static shapeId = "com.amazonaws.polly#UnsupportedPlsAlphabetException";
|
|
443
492
|
name = "UnsupportedPlsAlphabetException";
|
|
@@ -464,23 +513,6 @@ class UnsupportedPlsLanguageException extends PollyServiceException {
|
|
|
464
513
|
Object.setPrototypeOf(this, UnsupportedPlsLanguageException.prototype);
|
|
465
514
|
}
|
|
466
515
|
}
|
|
467
|
-
class ServiceQuotaExceededException extends PollyServiceException {
|
|
468
|
-
static shapeId = "com.amazonaws.polly#ServiceQuotaExceededException";
|
|
469
|
-
name = "ServiceQuotaExceededException";
|
|
470
|
-
$fault = "client";
|
|
471
|
-
quotaCode;
|
|
472
|
-
serviceCode;
|
|
473
|
-
constructor(opts) {
|
|
474
|
-
super({
|
|
475
|
-
name: "ServiceQuotaExceededException",
|
|
476
|
-
$fault: "client",
|
|
477
|
-
...opts,
|
|
478
|
-
});
|
|
479
|
-
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
480
|
-
this.quotaCode = opts.quotaCode;
|
|
481
|
-
this.serviceCode = opts.serviceCode;
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
516
|
class SsmlMarksNotSupportedForTextTypeException extends PollyServiceException {
|
|
485
517
|
static shapeId = "com.amazonaws.polly#SsmlMarksNotSupportedForTextTypeException";
|
|
486
518
|
name = "SsmlMarksNotSupportedForTextTypeException";
|
|
@@ -510,27 +542,42 @@ class TextLengthExceededException extends PollyServiceException {
|
|
|
510
542
|
|
|
511
543
|
const _A = "Alphabet";
|
|
512
544
|
const _AC = "AudioChunk";
|
|
545
|
+
const _ADE = "AccessDeniedException";
|
|
513
546
|
const _AE = "AudioEvent";
|
|
514
547
|
const _ALC = "AdditionalLanguageCodes";
|
|
515
548
|
const _AS = "AudioStream";
|
|
516
549
|
const _ASc = "ActionStream";
|
|
550
|
+
const _Ar = "Arn";
|
|
517
551
|
const _At = "Attributes";
|
|
552
|
+
const _B = "Bytes";
|
|
518
553
|
const _C = "Content";
|
|
554
|
+
const _CE = "ConflictException";
|
|
555
|
+
const _CME = "CustomerManagedEncryption";
|
|
519
556
|
const _CSE = "CloseStreamEvent";
|
|
520
|
-
const _CT = "
|
|
557
|
+
const _CT = "ClientToken";
|
|
521
558
|
const _CT_ = "Content-Type";
|
|
522
559
|
const _CTo = "ContentType";
|
|
560
|
+
const _CTr = "CreationTime";
|
|
561
|
+
const _CV = "CreateVoice";
|
|
562
|
+
const _CVI = "CreateVoiceInput";
|
|
563
|
+
const _CVO = "CreateVoiceOutput";
|
|
564
|
+
const _D = "Data";
|
|
523
565
|
const _DL = "DeleteLexicon";
|
|
524
566
|
const _DLI = "DeleteLexiconInput";
|
|
525
567
|
const _DLO = "DeleteLexiconOutput";
|
|
526
|
-
const _DV = "
|
|
527
|
-
const _DVI = "
|
|
528
|
-
const
|
|
568
|
+
const _DV = "DeleteVoice";
|
|
569
|
+
const _DVI = "DeleteVoiceInput";
|
|
570
|
+
const _DVIe = "DescribeVoicesInput";
|
|
571
|
+
const _DVO = "DeleteVoiceOutput";
|
|
572
|
+
const _DVOe = "DescribeVoicesOutput";
|
|
573
|
+
const _DVe = "DescribeVoices";
|
|
529
574
|
const _E = "Engine";
|
|
575
|
+
const _EC = "EncryptionContext";
|
|
530
576
|
const _ENSE = "EngineNotSupportedException";
|
|
531
577
|
const _ES = "EventStream";
|
|
532
578
|
const _F = "Force";
|
|
533
579
|
const _FSC = "FlushStreamConfiguration";
|
|
580
|
+
const _Fo = "Format";
|
|
534
581
|
const _G = "Gender";
|
|
535
582
|
const _GL = "GetLexicon";
|
|
536
583
|
const _GLI = "GetLexiconInput";
|
|
@@ -538,6 +585,9 @@ const _GLO = "GetLexiconOutput";
|
|
|
538
585
|
const _GSST = "GetSpeechSynthesisTask";
|
|
539
586
|
const _GSSTI = "GetSpeechSynthesisTaskInput";
|
|
540
587
|
const _GSSTO = "GetSpeechSynthesisTaskOutput";
|
|
588
|
+
const _GV = "GetVoice";
|
|
589
|
+
const _GVI = "GetVoiceInput";
|
|
590
|
+
const _GVO = "GetVoiceOutput";
|
|
541
591
|
const _I = "Id";
|
|
542
592
|
const _IALC = "IncludeAdditionalLanguageCodes";
|
|
543
593
|
const _ILE = "InvalidLexiconException";
|
|
@@ -549,6 +599,7 @@ const _ISRE = "InvalidSampleRateException";
|
|
|
549
599
|
const _ISTAE = "InvalidSnsTopicArnException";
|
|
550
600
|
const _ITIE = "InvalidTaskIdException";
|
|
551
601
|
const _ITPE = "InvalidTagParameterException";
|
|
602
|
+
const _KKA = "KmsKeyArn";
|
|
552
603
|
const _L = "Lexicon";
|
|
553
604
|
const _LA = "LexiconAttributes";
|
|
554
605
|
const _LAe = "LexiconArn";
|
|
@@ -573,12 +624,14 @@ const _LTFR = "ListTagsForResource";
|
|
|
573
624
|
const _LTFRI = "ListTagsForResourceInput";
|
|
574
625
|
const _LTFRO = "ListTagsForResourceOutput";
|
|
575
626
|
const _Le = "Lexicons";
|
|
627
|
+
const _M = "Message";
|
|
576
628
|
const _MLLEE = "MaxLexemeLengthExceededException";
|
|
577
629
|
const _MLNEE = "MaxLexiconsNumberExceededException";
|
|
578
630
|
const _MNSFFE = "MarksNotSupportedForFormatException";
|
|
579
631
|
const _MR = "MaxResults";
|
|
580
632
|
const _N = "Name";
|
|
581
633
|
const _NT = "NextToken";
|
|
634
|
+
const _O = "Origin";
|
|
582
635
|
const _OF = "OutputFormat";
|
|
583
636
|
const _OSBN = "OutputS3BucketName";
|
|
584
637
|
const _OSKP = "OutputS3KeyPrefix";
|
|
@@ -586,9 +639,14 @@ const _OU = "OutputUri";
|
|
|
586
639
|
const _PL = "PutLexicon";
|
|
587
640
|
const _PLI = "PutLexiconInput";
|
|
588
641
|
const _PLO = "PutLexiconOutput";
|
|
642
|
+
const _R = "Recording";
|
|
589
643
|
const _RA = "ResourceArn";
|
|
644
|
+
const _RB = "RecordingBytes";
|
|
590
645
|
const _RC = "RequestCharacters";
|
|
646
|
+
const _RD = "RecordingData";
|
|
647
|
+
const _RL = "RecordingList";
|
|
591
648
|
const _RNFE = "ResourceNotFoundException";
|
|
649
|
+
const _Re = "Recordings";
|
|
592
650
|
const _S = "Size";
|
|
593
651
|
const _SCE = "StreamClosedEvent";
|
|
594
652
|
const _SE = "SupportedEngines";
|
|
@@ -597,6 +655,7 @@ const _SMNSFTTE = "SsmlMarksNotSupportedForTextTypeException";
|
|
|
597
655
|
const _SMT = "SpeechMarkTypes";
|
|
598
656
|
const _SQEE = "ServiceQuotaExceededException";
|
|
599
657
|
const _SR = "SampleRate";
|
|
658
|
+
const _SRt = "StatusReason";
|
|
600
659
|
const _SS = "SynthesizeSpeech";
|
|
601
660
|
const _SSI = "SynthesizeSpeechInput";
|
|
602
661
|
const _SSO = "SynthesizeSpeechOutput";
|
|
@@ -612,8 +671,10 @@ const _ST = "SynthesisTask";
|
|
|
612
671
|
const _STA = "SnsTopicArn";
|
|
613
672
|
const _STNFE = "SynthesisTaskNotFoundException";
|
|
614
673
|
const _STy = "SynthesisTasks";
|
|
674
|
+
const _SU = "S3Url";
|
|
615
675
|
const _St = "Status";
|
|
616
676
|
const _T = "Tags";
|
|
677
|
+
const _TA = "TermsAccepted";
|
|
617
678
|
const _TE = "ThrottlingException";
|
|
618
679
|
const _TEe = "TextEvent";
|
|
619
680
|
const _TI = "TaskId";
|
|
@@ -634,13 +695,14 @@ const _UPLE = "UnsupportedPlsLanguageException";
|
|
|
634
695
|
const _UR = "UntagResource";
|
|
635
696
|
const _URI = "UntagResourceInput";
|
|
636
697
|
const _URO = "UntagResourceOutput";
|
|
637
|
-
const _V = "
|
|
698
|
+
const _V = "Voice";
|
|
699
|
+
const _VCD = "VoiceCreationData";
|
|
638
700
|
const _VE = "ValidationException";
|
|
639
701
|
const _VEF = "ValidationExceptionField";
|
|
640
702
|
const _VEFL = "ValidationExceptionFieldList";
|
|
641
703
|
const _VI = "VoiceId";
|
|
642
704
|
const _VL = "VoiceList";
|
|
643
|
-
const _Vo = "
|
|
705
|
+
const _Vo = "Voices";
|
|
644
706
|
const _a = "arn";
|
|
645
707
|
const _aQE = "awsQueryError";
|
|
646
708
|
const _c = "client";
|
|
@@ -675,6 +737,18 @@ const _s_registry = new TypeRegistry(_s);
|
|
|
675
737
|
var PollyServiceException$ = [-3, _s, "PollyServiceException", 0, [], []];
|
|
676
738
|
_s_registry.registerError(PollyServiceException$, PollyServiceException);
|
|
677
739
|
const n0_registry = new TypeRegistry(n0);
|
|
740
|
+
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
741
|
+
{ [_aQE]: [`AccessDenied`, 403], [_e]: _c, [_hE]: 403 },
|
|
742
|
+
[_M],
|
|
743
|
+
[0]
|
|
744
|
+
];
|
|
745
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
746
|
+
var ConflictException$ = [-3, n0, _CE,
|
|
747
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
748
|
+
[_m, _rI, _rT],
|
|
749
|
+
[0, 0, 0], 3
|
|
750
|
+
];
|
|
751
|
+
n0_registry.registerError(ConflictException$, ConflictException);
|
|
678
752
|
var EngineNotSupportedException$ = [-3, n0, _ENSE,
|
|
679
753
|
{ [_e]: _c, [_hE]: 400 },
|
|
680
754
|
[_m],
|
|
@@ -843,6 +917,7 @@ const errorTypeRegistries = [
|
|
|
843
917
|
];
|
|
844
918
|
var AudioStream = [0, n0, _AS, { [_st]: 1 }, 42];
|
|
845
919
|
var LexiconContent = [0, n0, _LC, 8, 0];
|
|
920
|
+
var RecordingBytes = [0, n0, _RB, 8, 21];
|
|
846
921
|
var AudioEvent$ = [3, n0, _AE,
|
|
847
922
|
0,
|
|
848
923
|
[_AC],
|
|
@@ -853,6 +928,21 @@ var CloseStreamEvent$ = [3, n0, _CSE,
|
|
|
853
928
|
[],
|
|
854
929
|
[]
|
|
855
930
|
];
|
|
931
|
+
var CreateVoiceInput$ = [3, n0, _CVI,
|
|
932
|
+
0,
|
|
933
|
+
[_N, _LCa, _TA, _VCD, _CME, _T, _CT],
|
|
934
|
+
[0, 0, 2, [() => VoiceCreationData$, 0], () => CustomerManagedEncryption$, 128 | 0, [0, 4]], 4
|
|
935
|
+
];
|
|
936
|
+
var CreateVoiceOutput$ = [3, n0, _CVO,
|
|
937
|
+
0,
|
|
938
|
+
[_V],
|
|
939
|
+
[[() => Voice$, 0]]
|
|
940
|
+
];
|
|
941
|
+
var CustomerManagedEncryption$ = [3, n0, _CME,
|
|
942
|
+
0,
|
|
943
|
+
[_KKA, _EC],
|
|
944
|
+
[0, 128 | 0], 1
|
|
945
|
+
];
|
|
856
946
|
var DeleteLexiconInput$ = [3, n0, _DLI,
|
|
857
947
|
0,
|
|
858
948
|
[_N],
|
|
@@ -863,15 +953,25 @@ var DeleteLexiconOutput$ = [3, n0, _DLO,
|
|
|
863
953
|
[],
|
|
864
954
|
[]
|
|
865
955
|
];
|
|
866
|
-
var
|
|
956
|
+
var DeleteVoiceInput$ = [3, n0, _DVI,
|
|
957
|
+
0,
|
|
958
|
+
[_VI],
|
|
959
|
+
[[0, 1]], 1
|
|
960
|
+
];
|
|
961
|
+
var DeleteVoiceOutput$ = [3, n0, _DVO,
|
|
962
|
+
0,
|
|
963
|
+
[],
|
|
964
|
+
[]
|
|
965
|
+
];
|
|
966
|
+
var DescribeVoicesInput$ = [3, n0, _DVIe,
|
|
867
967
|
0,
|
|
868
968
|
[_E, _LCa, _IALC, _NT],
|
|
869
969
|
[[0, { [_hQ]: _E }], [0, { [_hQ]: _LCa }], [2, { [_hQ]: _IALC }], [0, { [_hQ]: _NT }]]
|
|
870
970
|
];
|
|
871
|
-
var DescribeVoicesOutput$ = [3, n0,
|
|
971
|
+
var DescribeVoicesOutput$ = [3, n0, _DVOe,
|
|
872
972
|
0,
|
|
873
|
-
[
|
|
874
|
-
[() => VoiceList, 0]
|
|
973
|
+
[_Vo, _NT],
|
|
974
|
+
[[() => VoiceList, 0], 0]
|
|
875
975
|
];
|
|
876
976
|
var FlushStreamConfiguration$ = [3, n0, _FSC,
|
|
877
977
|
0,
|
|
@@ -898,6 +998,16 @@ var GetSpeechSynthesisTaskOutput$ = [3, n0, _GSSTO,
|
|
|
898
998
|
[_ST],
|
|
899
999
|
[() => SynthesisTask$]
|
|
900
1000
|
];
|
|
1001
|
+
var GetVoiceInput$ = [3, n0, _GVI,
|
|
1002
|
+
0,
|
|
1003
|
+
[_VI],
|
|
1004
|
+
[[0, 1]], 1
|
|
1005
|
+
];
|
|
1006
|
+
var GetVoiceOutput$ = [3, n0, _GVO,
|
|
1007
|
+
0,
|
|
1008
|
+
[_V],
|
|
1009
|
+
[[() => Voice$, 0]]
|
|
1010
|
+
];
|
|
901
1011
|
var Lexicon$ = [3, n0, _L,
|
|
902
1012
|
0,
|
|
903
1013
|
[_C, _N],
|
|
@@ -953,6 +1063,16 @@ var PutLexiconOutput$ = [3, n0, _PLO,
|
|
|
953
1063
|
[],
|
|
954
1064
|
[]
|
|
955
1065
|
];
|
|
1066
|
+
var Recording$ = [3, n0, _R,
|
|
1067
|
+
0,
|
|
1068
|
+
[_Fo, _D],
|
|
1069
|
+
[0, [() => RecordingData$, 0]], 2
|
|
1070
|
+
];
|
|
1071
|
+
var RecordingData$ = [3, n0, _RD,
|
|
1072
|
+
0,
|
|
1073
|
+
[_SU, _B],
|
|
1074
|
+
[0, [() => RecordingBytes, 0]]
|
|
1075
|
+
];
|
|
956
1076
|
var StartSpeechSynthesisStreamInput$ = [3, n0, _SSSSI,
|
|
957
1077
|
0,
|
|
958
1078
|
[_E, _OF, _VI, _LCa, _LN, _SR, _ASc],
|
|
@@ -980,7 +1100,7 @@ var StreamClosedEvent$ = [3, n0, _SCE,
|
|
|
980
1100
|
];
|
|
981
1101
|
var SynthesisTask$ = [3, n0, _ST,
|
|
982
1102
|
0,
|
|
983
|
-
[_E, _TI, _TS, _TSR, _OU,
|
|
1103
|
+
[_E, _TI, _TS, _TSR, _OU, _CTr, _RC, _STA, _LN, _OF, _SR, _SMT, _TT, _VI, _LCa],
|
|
984
1104
|
[0, 0, 0, 0, 0, 4, 1, 0, 64 | 0, 0, 0, 64 | 0, 0, 0, 0]
|
|
985
1105
|
];
|
|
986
1106
|
var SynthesizeSpeechInput$ = [3, n0, _SSI,
|
|
@@ -1028,14 +1148,23 @@ var ValidationExceptionField$ = [3, n0, _VEF,
|
|
|
1028
1148
|
[_n, _m],
|
|
1029
1149
|
[0, 0], 2
|
|
1030
1150
|
];
|
|
1031
|
-
var Voice$ = [3, n0,
|
|
1151
|
+
var Voice$ = [3, n0, _V,
|
|
1152
|
+
0,
|
|
1153
|
+
[_Ar, _G, _I, _LCa, _LNa, _N, _O, _St, _SRt, _ALC, _SE, _VCD, _CME, _CTr],
|
|
1154
|
+
[0, 0, 0, 0, 0, 0, 0, 0, 0, 64 | 0, 64 | 0, [() => VoiceCreationData$, 0], () => CustomerManagedEncryption$, 4]
|
|
1155
|
+
];
|
|
1156
|
+
var VoiceCreationData$ = [3, n0, _VCD,
|
|
1032
1157
|
0,
|
|
1033
|
-
[
|
|
1034
|
-
[
|
|
1158
|
+
[_Re],
|
|
1159
|
+
[[() => RecordingList, 0]], 1
|
|
1035
1160
|
];
|
|
1036
1161
|
var LexiconDescriptionList = [1, n0, _LDL,
|
|
1037
1162
|
0, () => LexiconDescription$
|
|
1038
1163
|
];
|
|
1164
|
+
var RecordingList = [1, n0, _RL,
|
|
1165
|
+
0, [() => Recording$,
|
|
1166
|
+
0]
|
|
1167
|
+
];
|
|
1039
1168
|
var SynthesisTasks = [1, n0, _STy,
|
|
1040
1169
|
0, () => SynthesisTask$
|
|
1041
1170
|
];
|
|
@@ -1046,7 +1175,8 @@ var ValidationExceptionFieldList = [1, n0, _VEFL,
|
|
|
1046
1175
|
0, () => ValidationExceptionField$
|
|
1047
1176
|
];
|
|
1048
1177
|
var VoiceList = [1, n0, _VL,
|
|
1049
|
-
0, () => Voice
|
|
1178
|
+
0, [() => Voice$,
|
|
1179
|
+
0]
|
|
1050
1180
|
];
|
|
1051
1181
|
var StartSpeechSynthesisStreamActionStream$ = [4, n0, _SSSSAS,
|
|
1052
1182
|
{ [_st]: 1 },
|
|
@@ -1058,10 +1188,16 @@ var StartSpeechSynthesisStreamEventStream$ = [4, n0, _SSSSES,
|
|
|
1058
1188
|
[_AE, _SCE, _VE, _SQEE, _SFE, _TE],
|
|
1059
1189
|
[[() => AudioEvent$, 0], () => StreamClosedEvent$, [() => ValidationException$, 0], [() => ServiceQuotaExceededException$, 0], [() => ServiceFailureException$, 0], [() => ThrottlingException$, 0]]
|
|
1060
1190
|
];
|
|
1191
|
+
var CreateVoice$ = [9, n0, _CV,
|
|
1192
|
+
{ [_h]: ["POST", "/v1/voices", 200] }, () => CreateVoiceInput$, () => CreateVoiceOutput$
|
|
1193
|
+
];
|
|
1061
1194
|
var DeleteLexicon$ = [9, n0, _DL,
|
|
1062
1195
|
{ [_h]: ["DELETE", "/v1/lexicons/{Name}", 200] }, () => DeleteLexiconInput$, () => DeleteLexiconOutput$
|
|
1063
1196
|
];
|
|
1064
|
-
var
|
|
1197
|
+
var DeleteVoice$ = [9, n0, _DV,
|
|
1198
|
+
{ [_h]: ["DELETE", "/v1/voices/{VoiceId}", 200] }, () => DeleteVoiceInput$, () => DeleteVoiceOutput$
|
|
1199
|
+
];
|
|
1200
|
+
var DescribeVoices$ = [9, n0, _DVe,
|
|
1065
1201
|
{ [_h]: ["GET", "/v1/voices", 200] }, () => DescribeVoicesInput$, () => DescribeVoicesOutput$
|
|
1066
1202
|
];
|
|
1067
1203
|
var GetLexicon$ = [9, n0, _GL,
|
|
@@ -1070,6 +1206,9 @@ var GetLexicon$ = [9, n0, _GL,
|
|
|
1070
1206
|
var GetSpeechSynthesisTask$ = [9, n0, _GSST,
|
|
1071
1207
|
{ [_h]: ["GET", "/v1/synthesisTasks/{TaskId}", 200] }, () => GetSpeechSynthesisTaskInput$, () => GetSpeechSynthesisTaskOutput$
|
|
1072
1208
|
];
|
|
1209
|
+
var GetVoice$ = [9, n0, _GV,
|
|
1210
|
+
{ [_h]: ["GET", "/v1/voices/{VoiceId}", 200] }, () => GetVoiceInput$, () => GetVoiceOutput$
|
|
1211
|
+
];
|
|
1073
1212
|
var ListLexicons$ = [9, n0, _LL,
|
|
1074
1213
|
{ [_h]: ["GET", "/v1/lexicons", 200] }, () => ListLexiconsInput$, () => ListLexiconsOutput$
|
|
1075
1214
|
];
|
|
@@ -1260,9 +1399,15 @@ const _mw1 = (Command, cs, config, o) => [
|
|
|
1260
1399
|
getEventStreamPlugin(config),
|
|
1261
1400
|
];
|
|
1262
1401
|
|
|
1402
|
+
class CreateVoiceCommand extends command(_ep0, _mw0, "CreateVoice", CreateVoice$) {
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1263
1405
|
class DeleteLexiconCommand extends command(_ep0, _mw0, "DeleteLexicon", DeleteLexicon$) {
|
|
1264
1406
|
}
|
|
1265
1407
|
|
|
1408
|
+
class DeleteVoiceCommand extends command(_ep0, _mw0, "DeleteVoice", DeleteVoice$) {
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1266
1411
|
class DescribeVoicesCommand extends command(_ep0, _mw0, "DescribeVoices", DescribeVoices$) {
|
|
1267
1412
|
}
|
|
1268
1413
|
|
|
@@ -1272,6 +1417,9 @@ class GetLexiconCommand extends command(_ep0, _mw0, "GetLexicon", GetLexicon$) {
|
|
|
1272
1417
|
class GetSpeechSynthesisTaskCommand extends command(_ep0, _mw0, "GetSpeechSynthesisTask", GetSpeechSynthesisTask$) {
|
|
1273
1418
|
}
|
|
1274
1419
|
|
|
1420
|
+
class GetVoiceCommand extends command(_ep0, _mw0, "GetVoice", GetVoice$) {
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1275
1423
|
class ListLexiconsCommand extends command(_ep0, _mw0, "ListLexicons", ListLexicons$) {
|
|
1276
1424
|
}
|
|
1277
1425
|
|
|
@@ -1301,11 +1449,53 @@ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagRes
|
|
|
1301
1449
|
|
|
1302
1450
|
const paginateListSpeechSynthesisTasks = createPaginator(PollyClient, ListSpeechSynthesisTasksCommand, "NextToken", "NextToken", "MaxResults");
|
|
1303
1451
|
|
|
1452
|
+
const checkState = async (client, input) => {
|
|
1453
|
+
let reason;
|
|
1454
|
+
try {
|
|
1455
|
+
let result = await client.send(new GetVoiceCommand(input));
|
|
1456
|
+
reason = result;
|
|
1457
|
+
try {
|
|
1458
|
+
const returnComparator = () => {
|
|
1459
|
+
return result.Voice.Status;
|
|
1460
|
+
};
|
|
1461
|
+
if (returnComparator() === "active") {
|
|
1462
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
catch (e) { }
|
|
1466
|
+
try {
|
|
1467
|
+
const returnComparator = () => {
|
|
1468
|
+
return result.Voice.Status;
|
|
1469
|
+
};
|
|
1470
|
+
if (returnComparator() === "failed") {
|
|
1471
|
+
return { state: WaiterState.FAILURE, reason };
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
catch (e) { }
|
|
1475
|
+
}
|
|
1476
|
+
catch (exception) {
|
|
1477
|
+
reason = exception;
|
|
1478
|
+
}
|
|
1479
|
+
return { state: WaiterState.RETRY, reason };
|
|
1480
|
+
};
|
|
1481
|
+
const waitForVoiceActive = async (params, input) => {
|
|
1482
|
+
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
1483
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
1484
|
+
};
|
|
1485
|
+
const waitUntilVoiceActive = async (params, input) => {
|
|
1486
|
+
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
1487
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
1488
|
+
return checkExceptions(result);
|
|
1489
|
+
};
|
|
1490
|
+
|
|
1304
1491
|
const commands = {
|
|
1492
|
+
CreateVoiceCommand,
|
|
1305
1493
|
DeleteLexiconCommand,
|
|
1494
|
+
DeleteVoiceCommand,
|
|
1306
1495
|
DescribeVoicesCommand,
|
|
1307
1496
|
GetLexiconCommand,
|
|
1308
1497
|
GetSpeechSynthesisTaskCommand,
|
|
1498
|
+
GetVoiceCommand,
|
|
1309
1499
|
ListLexiconsCommand,
|
|
1310
1500
|
ListSpeechSynthesisTasksCommand,
|
|
1311
1501
|
ListTagsForResourceCommand,
|
|
@@ -1319,15 +1509,31 @@ const commands = {
|
|
|
1319
1509
|
const paginators = {
|
|
1320
1510
|
paginateListSpeechSynthesisTasks,
|
|
1321
1511
|
};
|
|
1512
|
+
const waiters = {
|
|
1513
|
+
waitUntilVoiceActive,
|
|
1514
|
+
};
|
|
1322
1515
|
class Polly extends PollyClient {
|
|
1323
1516
|
}
|
|
1324
|
-
createAggregatedClient(commands, Polly, { paginators });
|
|
1517
|
+
createAggregatedClient(commands, Polly, { paginators, waiters });
|
|
1325
1518
|
|
|
1326
|
-
const
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1519
|
+
const AudioFormat = {
|
|
1520
|
+
FLAC: "flac",
|
|
1521
|
+
MP3: "mp3",
|
|
1522
|
+
OGG_VORBIS: "ogg_vorbis",
|
|
1523
|
+
WAV: "wav",
|
|
1524
|
+
};
|
|
1525
|
+
const ResourceType = {
|
|
1526
|
+
LEXICON: "lexicon",
|
|
1527
|
+
VOICE: "voice",
|
|
1528
|
+
};
|
|
1529
|
+
const CustomVoiceLanguageCode = {
|
|
1530
|
+
DE_DE: "de-DE",
|
|
1531
|
+
EN_US: "en-US",
|
|
1532
|
+
ES_US: "es-US",
|
|
1533
|
+
FR_FR: "fr-FR",
|
|
1534
|
+
HI_IN: "hi-IN",
|
|
1535
|
+
IT_IT: "it-IT",
|
|
1536
|
+
PT_BR: "pt-BR",
|
|
1331
1537
|
};
|
|
1332
1538
|
const LanguageCode = {
|
|
1333
1539
|
ar_AE: "ar-AE",
|
|
@@ -1495,6 +1701,37 @@ const VoiceId = {
|
|
|
1495
1701
|
Zeina: "Zeina",
|
|
1496
1702
|
Zhiyu: "Zhiyu",
|
|
1497
1703
|
};
|
|
1704
|
+
const VoiceOrigin = {
|
|
1705
|
+
AWS: "aws",
|
|
1706
|
+
CUSTOMER: "customer",
|
|
1707
|
+
};
|
|
1708
|
+
const VoiceStatus = {
|
|
1709
|
+
ACTIVE: "active",
|
|
1710
|
+
FAILED: "failed",
|
|
1711
|
+
PENDING: "pending",
|
|
1712
|
+
};
|
|
1713
|
+
const Engine = {
|
|
1714
|
+
GENERATIVE: "generative",
|
|
1715
|
+
LONG_FORM: "long-form",
|
|
1716
|
+
NEURAL: "neural",
|
|
1717
|
+
STANDARD: "standard",
|
|
1718
|
+
};
|
|
1719
|
+
const QuotaCode = {
|
|
1720
|
+
CUSTOM_VOICE_MAX_COUNT: "custom-voice-max-count",
|
|
1721
|
+
INPUT_STREAM_INBOUND_EVENT_TIMEOUT: "input-stream-inbound-event-timeout",
|
|
1722
|
+
INPUT_STREAM_TIMEOUT: "input-stream-timeout",
|
|
1723
|
+
};
|
|
1724
|
+
const ServiceCode = {
|
|
1725
|
+
POLLY: "polly",
|
|
1726
|
+
};
|
|
1727
|
+
const ValidationExceptionReason = {
|
|
1728
|
+
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
1729
|
+
INVALID_INBOUND_EVENT: "invalidInboundEvent",
|
|
1730
|
+
KMS_KEY_NOT_FOUND: "kmsKeyNotFound",
|
|
1731
|
+
KMS_KEY_UNUSABLE: "kmsKeyUnusable",
|
|
1732
|
+
OTHER: "other",
|
|
1733
|
+
UNSUPPORTED_OPERATION: "unsupportedOperation",
|
|
1734
|
+
};
|
|
1498
1735
|
const OutputFormat = {
|
|
1499
1736
|
ALAW: "alaw",
|
|
1500
1737
|
JSON: "json",
|
|
@@ -1520,29 +1757,28 @@ const TextType = {
|
|
|
1520
1757
|
SSML: "ssml",
|
|
1521
1758
|
TEXT: "text",
|
|
1522
1759
|
};
|
|
1523
|
-
const ResourceType = {
|
|
1524
|
-
LEXICON: "lexicon",
|
|
1525
|
-
};
|
|
1526
|
-
const ValidationExceptionReason = {
|
|
1527
|
-
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
1528
|
-
INVALID_INBOUND_EVENT: "invalidInboundEvent",
|
|
1529
|
-
OTHER: "other",
|
|
1530
|
-
UNSUPPORTED_OPERATION: "unsupportedOperation",
|
|
1531
|
-
};
|
|
1532
|
-
const QuotaCode = {
|
|
1533
|
-
INPUT_STREAM_INBOUND_EVENT_TIMEOUT: "input-stream-inbound-event-timeout",
|
|
1534
|
-
INPUT_STREAM_TIMEOUT: "input-stream-timeout",
|
|
1535
|
-
};
|
|
1536
|
-
const ServiceCode = {
|
|
1537
|
-
POLLY: "polly",
|
|
1538
|
-
};
|
|
1539
1760
|
|
|
1761
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
1762
|
+
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
1540
1763
|
exports.AudioEvent$ = AudioEvent$;
|
|
1764
|
+
exports.AudioFormat = AudioFormat;
|
|
1541
1765
|
exports.CloseStreamEvent$ = CloseStreamEvent$;
|
|
1766
|
+
exports.ConflictException = ConflictException;
|
|
1767
|
+
exports.ConflictException$ = ConflictException$;
|
|
1768
|
+
exports.CreateVoice$ = CreateVoice$;
|
|
1769
|
+
exports.CreateVoiceCommand = CreateVoiceCommand;
|
|
1770
|
+
exports.CreateVoiceInput$ = CreateVoiceInput$;
|
|
1771
|
+
exports.CreateVoiceOutput$ = CreateVoiceOutput$;
|
|
1772
|
+
exports.CustomVoiceLanguageCode = CustomVoiceLanguageCode;
|
|
1773
|
+
exports.CustomerManagedEncryption$ = CustomerManagedEncryption$;
|
|
1542
1774
|
exports.DeleteLexicon$ = DeleteLexicon$;
|
|
1543
1775
|
exports.DeleteLexiconCommand = DeleteLexiconCommand;
|
|
1544
1776
|
exports.DeleteLexiconInput$ = DeleteLexiconInput$;
|
|
1545
1777
|
exports.DeleteLexiconOutput$ = DeleteLexiconOutput$;
|
|
1778
|
+
exports.DeleteVoice$ = DeleteVoice$;
|
|
1779
|
+
exports.DeleteVoiceCommand = DeleteVoiceCommand;
|
|
1780
|
+
exports.DeleteVoiceInput$ = DeleteVoiceInput$;
|
|
1781
|
+
exports.DeleteVoiceOutput$ = DeleteVoiceOutput$;
|
|
1546
1782
|
exports.DescribeVoices$ = DescribeVoices$;
|
|
1547
1783
|
exports.DescribeVoicesCommand = DescribeVoicesCommand;
|
|
1548
1784
|
exports.DescribeVoicesInput$ = DescribeVoicesInput$;
|
|
@@ -1560,6 +1796,10 @@ exports.GetSpeechSynthesisTask$ = GetSpeechSynthesisTask$;
|
|
|
1560
1796
|
exports.GetSpeechSynthesisTaskCommand = GetSpeechSynthesisTaskCommand;
|
|
1561
1797
|
exports.GetSpeechSynthesisTaskInput$ = GetSpeechSynthesisTaskInput$;
|
|
1562
1798
|
exports.GetSpeechSynthesisTaskOutput$ = GetSpeechSynthesisTaskOutput$;
|
|
1799
|
+
exports.GetVoice$ = GetVoice$;
|
|
1800
|
+
exports.GetVoiceCommand = GetVoiceCommand;
|
|
1801
|
+
exports.GetVoiceInput$ = GetVoiceInput$;
|
|
1802
|
+
exports.GetVoiceOutput$ = GetVoiceOutput$;
|
|
1563
1803
|
exports.InvalidLexiconException = InvalidLexiconException;
|
|
1564
1804
|
exports.InvalidLexiconException$ = InvalidLexiconException$;
|
|
1565
1805
|
exports.InvalidNextTokenException = InvalidNextTokenException;
|
|
@@ -1616,6 +1856,8 @@ exports.PutLexiconCommand = PutLexiconCommand;
|
|
|
1616
1856
|
exports.PutLexiconInput$ = PutLexiconInput$;
|
|
1617
1857
|
exports.PutLexiconOutput$ = PutLexiconOutput$;
|
|
1618
1858
|
exports.QuotaCode = QuotaCode;
|
|
1859
|
+
exports.Recording$ = Recording$;
|
|
1860
|
+
exports.RecordingData$ = RecordingData$;
|
|
1619
1861
|
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1620
1862
|
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
1621
1863
|
exports.ResourceType = ResourceType;
|
|
@@ -1672,6 +1914,11 @@ exports.ValidationException$ = ValidationException$;
|
|
|
1672
1914
|
exports.ValidationExceptionField$ = ValidationExceptionField$;
|
|
1673
1915
|
exports.ValidationExceptionReason = ValidationExceptionReason;
|
|
1674
1916
|
exports.Voice$ = Voice$;
|
|
1917
|
+
exports.VoiceCreationData$ = VoiceCreationData$;
|
|
1675
1918
|
exports.VoiceId = VoiceId;
|
|
1919
|
+
exports.VoiceOrigin = VoiceOrigin;
|
|
1920
|
+
exports.VoiceStatus = VoiceStatus;
|
|
1676
1921
|
exports.errorTypeRegistries = errorTypeRegistries;
|
|
1677
1922
|
exports.paginateListSpeechSynthesisTasks = paginateListSpeechSynthesisTasks;
|
|
1923
|
+
exports.waitForVoiceActive = waitForVoiceActive;
|
|
1924
|
+
exports.waitUntilVoiceActive = waitUntilVoiceActive;
|