@aws-sdk/client-polly 3.296.0 → 3.298.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/dist-cjs/commands/DeleteLexiconCommand.js +2 -3
- package/dist-cjs/commands/DescribeVoicesCommand.js +2 -3
- package/dist-cjs/commands/GetLexiconCommand.js +1 -1
- package/dist-cjs/commands/GetSpeechSynthesisTaskCommand.js +2 -3
- package/dist-cjs/commands/ListLexiconsCommand.js +2 -3
- package/dist-cjs/commands/ListSpeechSynthesisTasksCommand.js +2 -3
- package/dist-cjs/commands/PutLexiconCommand.js +1 -1
- package/dist-cjs/commands/StartSpeechSynthesisTaskCommand.js +2 -3
- package/dist-cjs/commands/SynthesizeSpeechCommand.js +1 -1
- package/dist-cjs/models/models_0.js +1 -78
- package/dist-es/commands/DeleteLexiconCommand.js +2 -3
- package/dist-es/commands/DescribeVoicesCommand.js +2 -3
- package/dist-es/commands/GetLexiconCommand.js +2 -2
- package/dist-es/commands/GetSpeechSynthesisTaskCommand.js +2 -3
- package/dist-es/commands/ListLexiconsCommand.js +2 -3
- package/dist-es/commands/ListSpeechSynthesisTasksCommand.js +2 -3
- package/dist-es/commands/PutLexiconCommand.js +2 -2
- package/dist-es/commands/StartSpeechSynthesisTaskCommand.js +2 -3
- package/dist-es/commands/SynthesizeSpeechCommand.js +2 -2
- package/dist-es/models/models_0.js +0 -57
- package/dist-types/Polly.d.ts +10 -0
- package/dist-types/PollyClient.d.ts +24 -4
- package/dist-types/commands/DeleteLexiconCommand.d.ts +16 -0
- package/dist-types/commands/DescribeVoicesCommand.d.ts +16 -0
- package/dist-types/commands/GetLexiconCommand.d.ts +16 -0
- package/dist-types/commands/GetSpeechSynthesisTaskCommand.d.ts +16 -0
- package/dist-types/commands/ListLexiconsCommand.d.ts +16 -0
- package/dist-types/commands/ListSpeechSynthesisTasksCommand.d.ts +16 -0
- package/dist-types/commands/PutLexiconCommand.d.ts +16 -0
- package/dist-types/commands/StartSpeechSynthesisTaskCommand.d.ts +16 -0
- package/dist-types/commands/SynthesizeSpeechCommand.d.ts +16 -0
- package/dist-types/models/PollyServiceException.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +105 -77
- package/dist-types/pagination/Interfaces.d.ts +3 -0
- package/dist-types/pagination/ListSpeechSynthesisTasksPaginator.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -55
- package/package.json +4 -3
|
@@ -4,7 +4,6 @@ exports.DeleteLexiconCommand = void 0;
|
|
|
4
4
|
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
5
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
7
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
8
|
class DeleteLexiconCommand extends smithy_client_1.Command {
|
|
10
9
|
static getEndpointParameterInstructions() {
|
|
@@ -30,8 +29,8 @@ class DeleteLexiconCommand extends smithy_client_1.Command {
|
|
|
30
29
|
logger,
|
|
31
30
|
clientName,
|
|
32
31
|
commandName,
|
|
33
|
-
inputFilterSensitiveLog:
|
|
34
|
-
outputFilterSensitiveLog:
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
34
|
};
|
|
36
35
|
const { requestHandler } = configuration;
|
|
37
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -4,7 +4,6 @@ exports.DescribeVoicesCommand = void 0;
|
|
|
4
4
|
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
5
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
7
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
8
|
class DescribeVoicesCommand extends smithy_client_1.Command {
|
|
10
9
|
static getEndpointParameterInstructions() {
|
|
@@ -30,8 +29,8 @@ class DescribeVoicesCommand extends smithy_client_1.Command {
|
|
|
30
29
|
logger,
|
|
31
30
|
clientName,
|
|
32
31
|
commandName,
|
|
33
|
-
inputFilterSensitiveLog:
|
|
34
|
-
outputFilterSensitiveLog:
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
34
|
};
|
|
36
35
|
const { requestHandler } = configuration;
|
|
37
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -30,7 +30,7 @@ class GetLexiconCommand extends smithy_client_1.Command {
|
|
|
30
30
|
logger,
|
|
31
31
|
clientName,
|
|
32
32
|
commandName,
|
|
33
|
-
inputFilterSensitiveLog:
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
34
|
outputFilterSensitiveLog: models_0_1.GetLexiconOutputFilterSensitiveLog,
|
|
35
35
|
};
|
|
36
36
|
const { requestHandler } = configuration;
|
|
@@ -4,7 +4,6 @@ exports.GetSpeechSynthesisTaskCommand = void 0;
|
|
|
4
4
|
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
5
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
7
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
8
|
class GetSpeechSynthesisTaskCommand extends smithy_client_1.Command {
|
|
10
9
|
static getEndpointParameterInstructions() {
|
|
@@ -30,8 +29,8 @@ class GetSpeechSynthesisTaskCommand extends smithy_client_1.Command {
|
|
|
30
29
|
logger,
|
|
31
30
|
clientName,
|
|
32
31
|
commandName,
|
|
33
|
-
inputFilterSensitiveLog:
|
|
34
|
-
outputFilterSensitiveLog:
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
34
|
};
|
|
36
35
|
const { requestHandler } = configuration;
|
|
37
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -4,7 +4,6 @@ exports.ListLexiconsCommand = void 0;
|
|
|
4
4
|
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
5
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
7
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
8
|
class ListLexiconsCommand extends smithy_client_1.Command {
|
|
10
9
|
static getEndpointParameterInstructions() {
|
|
@@ -30,8 +29,8 @@ class ListLexiconsCommand extends smithy_client_1.Command {
|
|
|
30
29
|
logger,
|
|
31
30
|
clientName,
|
|
32
31
|
commandName,
|
|
33
|
-
inputFilterSensitiveLog:
|
|
34
|
-
outputFilterSensitiveLog:
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
34
|
};
|
|
36
35
|
const { requestHandler } = configuration;
|
|
37
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -4,7 +4,6 @@ exports.ListSpeechSynthesisTasksCommand = void 0;
|
|
|
4
4
|
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
5
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
7
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
8
|
class ListSpeechSynthesisTasksCommand extends smithy_client_1.Command {
|
|
10
9
|
static getEndpointParameterInstructions() {
|
|
@@ -30,8 +29,8 @@ class ListSpeechSynthesisTasksCommand extends smithy_client_1.Command {
|
|
|
30
29
|
logger,
|
|
31
30
|
clientName,
|
|
32
31
|
commandName,
|
|
33
|
-
inputFilterSensitiveLog:
|
|
34
|
-
outputFilterSensitiveLog:
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
34
|
};
|
|
36
35
|
const { requestHandler } = configuration;
|
|
37
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -31,7 +31,7 @@ class PutLexiconCommand extends smithy_client_1.Command {
|
|
|
31
31
|
clientName,
|
|
32
32
|
commandName,
|
|
33
33
|
inputFilterSensitiveLog: models_0_1.PutLexiconInputFilterSensitiveLog,
|
|
34
|
-
outputFilterSensitiveLog:
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
35
|
};
|
|
36
36
|
const { requestHandler } = configuration;
|
|
37
37
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -4,7 +4,6 @@ exports.StartSpeechSynthesisTaskCommand = void 0;
|
|
|
4
4
|
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
5
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
7
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
8
|
class StartSpeechSynthesisTaskCommand extends smithy_client_1.Command {
|
|
10
9
|
static getEndpointParameterInstructions() {
|
|
@@ -30,8 +29,8 @@ class StartSpeechSynthesisTaskCommand extends smithy_client_1.Command {
|
|
|
30
29
|
logger,
|
|
31
30
|
clientName,
|
|
32
31
|
commandName,
|
|
33
|
-
inputFilterSensitiveLog:
|
|
34
|
-
outputFilterSensitiveLog:
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
34
|
};
|
|
36
35
|
const { requestHandler } = configuration;
|
|
37
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -30,7 +30,7 @@ class SynthesizeSpeechCommand extends smithy_client_1.Command {
|
|
|
30
30
|
logger,
|
|
31
31
|
clientName,
|
|
32
32
|
commandName,
|
|
33
|
-
inputFilterSensitiveLog:
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
34
|
outputFilterSensitiveLog: models_0_1.SynthesizeSpeechOutputFilterSensitiveLog,
|
|
35
35
|
};
|
|
36
36
|
const { requestHandler } = configuration;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.SynthesizeSpeechOutputFilterSensitiveLog = exports.SynthesizeSpeechInputFilterSensitiveLog = void 0;
|
|
3
|
+
exports.SynthesizeSpeechOutputFilterSensitiveLog = exports.PutLexiconInputFilterSensitiveLog = exports.GetLexiconOutputFilterSensitiveLog = exports.LexiconFilterSensitiveLog = exports.TextLengthExceededException = exports.SsmlMarksNotSupportedForTextTypeException = exports.UnsupportedPlsLanguageException = exports.UnsupportedPlsAlphabetException = exports.MaxLexiconsNumberExceededException = exports.MaxLexemeLengthExceededException = exports.MarksNotSupportedForFormatException = exports.LexiconSizeExceededException = exports.LanguageNotSupportedException = exports.InvalidSsmlException = exports.InvalidSnsTopicArnException = exports.InvalidSampleRateException = exports.InvalidS3KeyException = exports.InvalidS3BucketException = exports.InvalidLexiconException = exports.SynthesisTaskNotFoundException = exports.InvalidTaskIdException = exports.TextType = exports.TaskStatus = exports.SpeechMarkType = exports.OutputFormat = exports.EngineNotSupportedException = exports.InvalidNextTokenException = exports.VoiceId = exports.Gender = exports.LanguageCode = exports.Engine = exports.ServiceFailureException = exports.LexiconNotFoundException = void 0;
|
|
5
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
5
|
const PollyServiceException_1 = require("./PollyServiceException");
|
|
7
6
|
class LexiconNotFoundException extends PollyServiceException_1.PollyServiceException {
|
|
@@ -443,97 +442,21 @@ class TextLengthExceededException extends PollyServiceException_1.PollyServiceEx
|
|
|
443
442
|
}
|
|
444
443
|
}
|
|
445
444
|
exports.TextLengthExceededException = TextLengthExceededException;
|
|
446
|
-
const DeleteLexiconInputFilterSensitiveLog = (obj) => ({
|
|
447
|
-
...obj,
|
|
448
|
-
});
|
|
449
|
-
exports.DeleteLexiconInputFilterSensitiveLog = DeleteLexiconInputFilterSensitiveLog;
|
|
450
|
-
const DeleteLexiconOutputFilterSensitiveLog = (obj) => ({
|
|
451
|
-
...obj,
|
|
452
|
-
});
|
|
453
|
-
exports.DeleteLexiconOutputFilterSensitiveLog = DeleteLexiconOutputFilterSensitiveLog;
|
|
454
|
-
const DescribeVoicesInputFilterSensitiveLog = (obj) => ({
|
|
455
|
-
...obj,
|
|
456
|
-
});
|
|
457
|
-
exports.DescribeVoicesInputFilterSensitiveLog = DescribeVoicesInputFilterSensitiveLog;
|
|
458
|
-
const VoiceFilterSensitiveLog = (obj) => ({
|
|
459
|
-
...obj,
|
|
460
|
-
});
|
|
461
|
-
exports.VoiceFilterSensitiveLog = VoiceFilterSensitiveLog;
|
|
462
|
-
const DescribeVoicesOutputFilterSensitiveLog = (obj) => ({
|
|
463
|
-
...obj,
|
|
464
|
-
});
|
|
465
|
-
exports.DescribeVoicesOutputFilterSensitiveLog = DescribeVoicesOutputFilterSensitiveLog;
|
|
466
|
-
const GetLexiconInputFilterSensitiveLog = (obj) => ({
|
|
467
|
-
...obj,
|
|
468
|
-
});
|
|
469
|
-
exports.GetLexiconInputFilterSensitiveLog = GetLexiconInputFilterSensitiveLog;
|
|
470
445
|
const LexiconFilterSensitiveLog = (obj) => ({
|
|
471
446
|
...obj,
|
|
472
447
|
...(obj.Content && { Content: smithy_client_1.SENSITIVE_STRING }),
|
|
473
448
|
});
|
|
474
449
|
exports.LexiconFilterSensitiveLog = LexiconFilterSensitiveLog;
|
|
475
|
-
const LexiconAttributesFilterSensitiveLog = (obj) => ({
|
|
476
|
-
...obj,
|
|
477
|
-
});
|
|
478
|
-
exports.LexiconAttributesFilterSensitiveLog = LexiconAttributesFilterSensitiveLog;
|
|
479
450
|
const GetLexiconOutputFilterSensitiveLog = (obj) => ({
|
|
480
451
|
...obj,
|
|
481
452
|
...(obj.Lexicon && { Lexicon: (0, exports.LexiconFilterSensitiveLog)(obj.Lexicon) }),
|
|
482
453
|
});
|
|
483
454
|
exports.GetLexiconOutputFilterSensitiveLog = GetLexiconOutputFilterSensitiveLog;
|
|
484
|
-
const GetSpeechSynthesisTaskInputFilterSensitiveLog = (obj) => ({
|
|
485
|
-
...obj,
|
|
486
|
-
});
|
|
487
|
-
exports.GetSpeechSynthesisTaskInputFilterSensitiveLog = GetSpeechSynthesisTaskInputFilterSensitiveLog;
|
|
488
|
-
const SynthesisTaskFilterSensitiveLog = (obj) => ({
|
|
489
|
-
...obj,
|
|
490
|
-
});
|
|
491
|
-
exports.SynthesisTaskFilterSensitiveLog = SynthesisTaskFilterSensitiveLog;
|
|
492
|
-
const GetSpeechSynthesisTaskOutputFilterSensitiveLog = (obj) => ({
|
|
493
|
-
...obj,
|
|
494
|
-
});
|
|
495
|
-
exports.GetSpeechSynthesisTaskOutputFilterSensitiveLog = GetSpeechSynthesisTaskOutputFilterSensitiveLog;
|
|
496
|
-
const LexiconDescriptionFilterSensitiveLog = (obj) => ({
|
|
497
|
-
...obj,
|
|
498
|
-
});
|
|
499
|
-
exports.LexiconDescriptionFilterSensitiveLog = LexiconDescriptionFilterSensitiveLog;
|
|
500
|
-
const ListLexiconsInputFilterSensitiveLog = (obj) => ({
|
|
501
|
-
...obj,
|
|
502
|
-
});
|
|
503
|
-
exports.ListLexiconsInputFilterSensitiveLog = ListLexiconsInputFilterSensitiveLog;
|
|
504
|
-
const ListLexiconsOutputFilterSensitiveLog = (obj) => ({
|
|
505
|
-
...obj,
|
|
506
|
-
});
|
|
507
|
-
exports.ListLexiconsOutputFilterSensitiveLog = ListLexiconsOutputFilterSensitiveLog;
|
|
508
|
-
const ListSpeechSynthesisTasksInputFilterSensitiveLog = (obj) => ({
|
|
509
|
-
...obj,
|
|
510
|
-
});
|
|
511
|
-
exports.ListSpeechSynthesisTasksInputFilterSensitiveLog = ListSpeechSynthesisTasksInputFilterSensitiveLog;
|
|
512
|
-
const ListSpeechSynthesisTasksOutputFilterSensitiveLog = (obj) => ({
|
|
513
|
-
...obj,
|
|
514
|
-
});
|
|
515
|
-
exports.ListSpeechSynthesisTasksOutputFilterSensitiveLog = ListSpeechSynthesisTasksOutputFilterSensitiveLog;
|
|
516
455
|
const PutLexiconInputFilterSensitiveLog = (obj) => ({
|
|
517
456
|
...obj,
|
|
518
457
|
...(obj.Content && { Content: smithy_client_1.SENSITIVE_STRING }),
|
|
519
458
|
});
|
|
520
459
|
exports.PutLexiconInputFilterSensitiveLog = PutLexiconInputFilterSensitiveLog;
|
|
521
|
-
const PutLexiconOutputFilterSensitiveLog = (obj) => ({
|
|
522
|
-
...obj,
|
|
523
|
-
});
|
|
524
|
-
exports.PutLexiconOutputFilterSensitiveLog = PutLexiconOutputFilterSensitiveLog;
|
|
525
|
-
const StartSpeechSynthesisTaskInputFilterSensitiveLog = (obj) => ({
|
|
526
|
-
...obj,
|
|
527
|
-
});
|
|
528
|
-
exports.StartSpeechSynthesisTaskInputFilterSensitiveLog = StartSpeechSynthesisTaskInputFilterSensitiveLog;
|
|
529
|
-
const StartSpeechSynthesisTaskOutputFilterSensitiveLog = (obj) => ({
|
|
530
|
-
...obj,
|
|
531
|
-
});
|
|
532
|
-
exports.StartSpeechSynthesisTaskOutputFilterSensitiveLog = StartSpeechSynthesisTaskOutputFilterSensitiveLog;
|
|
533
|
-
const SynthesizeSpeechInputFilterSensitiveLog = (obj) => ({
|
|
534
|
-
...obj,
|
|
535
|
-
});
|
|
536
|
-
exports.SynthesizeSpeechInputFilterSensitiveLog = SynthesizeSpeechInputFilterSensitiveLog;
|
|
537
460
|
const SynthesizeSpeechOutputFilterSensitiveLog = (obj) => ({
|
|
538
461
|
...obj,
|
|
539
462
|
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { DeleteLexiconInputFilterSensitiveLog, DeleteLexiconOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1DeleteLexiconCommand, serializeAws_restJson1DeleteLexiconCommand, } from "../protocols/Aws_restJson1";
|
|
6
5
|
export class DeleteLexiconCommand extends $Command {
|
|
7
6
|
static getEndpointParameterInstructions() {
|
|
@@ -27,8 +26,8 @@ export class DeleteLexiconCommand extends $Command {
|
|
|
27
26
|
logger,
|
|
28
27
|
clientName,
|
|
29
28
|
commandName,
|
|
30
|
-
inputFilterSensitiveLog:
|
|
31
|
-
outputFilterSensitiveLog:
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
31
|
};
|
|
33
32
|
const { requestHandler } = configuration;
|
|
34
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { DescribeVoicesInputFilterSensitiveLog, DescribeVoicesOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1DescribeVoicesCommand, serializeAws_restJson1DescribeVoicesCommand, } from "../protocols/Aws_restJson1";
|
|
6
5
|
export class DescribeVoicesCommand extends $Command {
|
|
7
6
|
static getEndpointParameterInstructions() {
|
|
@@ -27,8 +26,8 @@ export class DescribeVoicesCommand extends $Command {
|
|
|
27
26
|
logger,
|
|
28
27
|
clientName,
|
|
29
28
|
commandName,
|
|
30
|
-
inputFilterSensitiveLog:
|
|
31
|
-
outputFilterSensitiveLog:
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
31
|
};
|
|
33
32
|
const { requestHandler } = configuration;
|
|
34
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { GetLexiconOutputFilterSensitiveLog } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1GetLexiconCommand, serializeAws_restJson1GetLexiconCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
export class GetLexiconCommand extends $Command {
|
|
7
7
|
static getEndpointParameterInstructions() {
|
|
@@ -27,7 +27,7 @@ export class GetLexiconCommand extends $Command {
|
|
|
27
27
|
logger,
|
|
28
28
|
clientName,
|
|
29
29
|
commandName,
|
|
30
|
-
inputFilterSensitiveLog:
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
31
|
outputFilterSensitiveLog: GetLexiconOutputFilterSensitiveLog,
|
|
32
32
|
};
|
|
33
33
|
const { requestHandler } = configuration;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { GetSpeechSynthesisTaskInputFilterSensitiveLog, GetSpeechSynthesisTaskOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1GetSpeechSynthesisTaskCommand, serializeAws_restJson1GetSpeechSynthesisTaskCommand, } from "../protocols/Aws_restJson1";
|
|
6
5
|
export class GetSpeechSynthesisTaskCommand extends $Command {
|
|
7
6
|
static getEndpointParameterInstructions() {
|
|
@@ -27,8 +26,8 @@ export class GetSpeechSynthesisTaskCommand extends $Command {
|
|
|
27
26
|
logger,
|
|
28
27
|
clientName,
|
|
29
28
|
commandName,
|
|
30
|
-
inputFilterSensitiveLog:
|
|
31
|
-
outputFilterSensitiveLog:
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
31
|
};
|
|
33
32
|
const { requestHandler } = configuration;
|
|
34
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { ListLexiconsInputFilterSensitiveLog, ListLexiconsOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1ListLexiconsCommand, serializeAws_restJson1ListLexiconsCommand, } from "../protocols/Aws_restJson1";
|
|
6
5
|
export class ListLexiconsCommand extends $Command {
|
|
7
6
|
static getEndpointParameterInstructions() {
|
|
@@ -27,8 +26,8 @@ export class ListLexiconsCommand extends $Command {
|
|
|
27
26
|
logger,
|
|
28
27
|
clientName,
|
|
29
28
|
commandName,
|
|
30
|
-
inputFilterSensitiveLog:
|
|
31
|
-
outputFilterSensitiveLog:
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
31
|
};
|
|
33
32
|
const { requestHandler } = configuration;
|
|
34
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { ListSpeechSynthesisTasksInputFilterSensitiveLog, ListSpeechSynthesisTasksOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1ListSpeechSynthesisTasksCommand, serializeAws_restJson1ListSpeechSynthesisTasksCommand, } from "../protocols/Aws_restJson1";
|
|
6
5
|
export class ListSpeechSynthesisTasksCommand extends $Command {
|
|
7
6
|
static getEndpointParameterInstructions() {
|
|
@@ -27,8 +26,8 @@ export class ListSpeechSynthesisTasksCommand extends $Command {
|
|
|
27
26
|
logger,
|
|
28
27
|
clientName,
|
|
29
28
|
commandName,
|
|
30
|
-
inputFilterSensitiveLog:
|
|
31
|
-
outputFilterSensitiveLog:
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
31
|
};
|
|
33
32
|
const { requestHandler } = configuration;
|
|
34
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { PutLexiconInputFilterSensitiveLog
|
|
4
|
+
import { PutLexiconInputFilterSensitiveLog } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1PutLexiconCommand, serializeAws_restJson1PutLexiconCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
export class PutLexiconCommand extends $Command {
|
|
7
7
|
static getEndpointParameterInstructions() {
|
|
@@ -28,7 +28,7 @@ export class PutLexiconCommand extends $Command {
|
|
|
28
28
|
clientName,
|
|
29
29
|
commandName,
|
|
30
30
|
inputFilterSensitiveLog: PutLexiconInputFilterSensitiveLog,
|
|
31
|
-
outputFilterSensitiveLog:
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
32
|
};
|
|
33
33
|
const { requestHandler } = configuration;
|
|
34
34
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { StartSpeechSynthesisTaskInputFilterSensitiveLog, StartSpeechSynthesisTaskOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1StartSpeechSynthesisTaskCommand, serializeAws_restJson1StartSpeechSynthesisTaskCommand, } from "../protocols/Aws_restJson1";
|
|
6
5
|
export class StartSpeechSynthesisTaskCommand extends $Command {
|
|
7
6
|
static getEndpointParameterInstructions() {
|
|
@@ -27,8 +26,8 @@ export class StartSpeechSynthesisTaskCommand extends $Command {
|
|
|
27
26
|
logger,
|
|
28
27
|
clientName,
|
|
29
28
|
commandName,
|
|
30
|
-
inputFilterSensitiveLog:
|
|
31
|
-
outputFilterSensitiveLog:
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
31
|
};
|
|
33
32
|
const { requestHandler } = configuration;
|
|
34
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { SynthesizeSpeechOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1SynthesizeSpeechCommand, serializeAws_restJson1SynthesizeSpeechCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
export class SynthesizeSpeechCommand extends $Command {
|
|
7
7
|
static getEndpointParameterInstructions() {
|
|
@@ -27,7 +27,7 @@ export class SynthesizeSpeechCommand extends $Command {
|
|
|
27
27
|
logger,
|
|
28
28
|
clientName,
|
|
29
29
|
commandName,
|
|
30
|
-
inputFilterSensitiveLog:
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
31
|
outputFilterSensitiveLog: SynthesizeSpeechOutputFilterSensitiveLog,
|
|
32
32
|
};
|
|
33
33
|
const { requestHandler } = configuration;
|
|
@@ -418,75 +418,18 @@ export class TextLengthExceededException extends __BaseException {
|
|
|
418
418
|
Object.setPrototypeOf(this, TextLengthExceededException.prototype);
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
|
-
export const DeleteLexiconInputFilterSensitiveLog = (obj) => ({
|
|
422
|
-
...obj,
|
|
423
|
-
});
|
|
424
|
-
export const DeleteLexiconOutputFilterSensitiveLog = (obj) => ({
|
|
425
|
-
...obj,
|
|
426
|
-
});
|
|
427
|
-
export const DescribeVoicesInputFilterSensitiveLog = (obj) => ({
|
|
428
|
-
...obj,
|
|
429
|
-
});
|
|
430
|
-
export const VoiceFilterSensitiveLog = (obj) => ({
|
|
431
|
-
...obj,
|
|
432
|
-
});
|
|
433
|
-
export const DescribeVoicesOutputFilterSensitiveLog = (obj) => ({
|
|
434
|
-
...obj,
|
|
435
|
-
});
|
|
436
|
-
export const GetLexiconInputFilterSensitiveLog = (obj) => ({
|
|
437
|
-
...obj,
|
|
438
|
-
});
|
|
439
421
|
export const LexiconFilterSensitiveLog = (obj) => ({
|
|
440
422
|
...obj,
|
|
441
423
|
...(obj.Content && { Content: SENSITIVE_STRING }),
|
|
442
424
|
});
|
|
443
|
-
export const LexiconAttributesFilterSensitiveLog = (obj) => ({
|
|
444
|
-
...obj,
|
|
445
|
-
});
|
|
446
425
|
export const GetLexiconOutputFilterSensitiveLog = (obj) => ({
|
|
447
426
|
...obj,
|
|
448
427
|
...(obj.Lexicon && { Lexicon: LexiconFilterSensitiveLog(obj.Lexicon) }),
|
|
449
428
|
});
|
|
450
|
-
export const GetSpeechSynthesisTaskInputFilterSensitiveLog = (obj) => ({
|
|
451
|
-
...obj,
|
|
452
|
-
});
|
|
453
|
-
export const SynthesisTaskFilterSensitiveLog = (obj) => ({
|
|
454
|
-
...obj,
|
|
455
|
-
});
|
|
456
|
-
export const GetSpeechSynthesisTaskOutputFilterSensitiveLog = (obj) => ({
|
|
457
|
-
...obj,
|
|
458
|
-
});
|
|
459
|
-
export const LexiconDescriptionFilterSensitiveLog = (obj) => ({
|
|
460
|
-
...obj,
|
|
461
|
-
});
|
|
462
|
-
export const ListLexiconsInputFilterSensitiveLog = (obj) => ({
|
|
463
|
-
...obj,
|
|
464
|
-
});
|
|
465
|
-
export const ListLexiconsOutputFilterSensitiveLog = (obj) => ({
|
|
466
|
-
...obj,
|
|
467
|
-
});
|
|
468
|
-
export const ListSpeechSynthesisTasksInputFilterSensitiveLog = (obj) => ({
|
|
469
|
-
...obj,
|
|
470
|
-
});
|
|
471
|
-
export const ListSpeechSynthesisTasksOutputFilterSensitiveLog = (obj) => ({
|
|
472
|
-
...obj,
|
|
473
|
-
});
|
|
474
429
|
export const PutLexiconInputFilterSensitiveLog = (obj) => ({
|
|
475
430
|
...obj,
|
|
476
431
|
...(obj.Content && { Content: SENSITIVE_STRING }),
|
|
477
432
|
});
|
|
478
|
-
export const PutLexiconOutputFilterSensitiveLog = (obj) => ({
|
|
479
|
-
...obj,
|
|
480
|
-
});
|
|
481
|
-
export const StartSpeechSynthesisTaskInputFilterSensitiveLog = (obj) => ({
|
|
482
|
-
...obj,
|
|
483
|
-
});
|
|
484
|
-
export const StartSpeechSynthesisTaskOutputFilterSensitiveLog = (obj) => ({
|
|
485
|
-
...obj,
|
|
486
|
-
});
|
|
487
|
-
export const SynthesizeSpeechInputFilterSensitiveLog = (obj) => ({
|
|
488
|
-
...obj,
|
|
489
|
-
});
|
|
490
433
|
export const SynthesizeSpeechOutputFilterSensitiveLog = (obj) => ({
|
|
491
434
|
...obj,
|
|
492
435
|
});
|
package/dist-types/Polly.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { StartSpeechSynthesisTaskCommandInput, StartSpeechSynthesisTaskCommandOu
|
|
|
10
10
|
import { SynthesizeSpeechCommandInput, SynthesizeSpeechCommandOutput } from "./commands/SynthesizeSpeechCommand";
|
|
11
11
|
import { PollyClient } from "./PollyClient";
|
|
12
12
|
/**
|
|
13
|
+
* @public
|
|
13
14
|
* <p>Amazon Polly is a web service that makes it easy to synthesize speech from
|
|
14
15
|
* text.</p>
|
|
15
16
|
* <p>The Amazon Polly service provides API operations for synthesizing
|
|
@@ -19,6 +20,7 @@ import { PollyClient } from "./PollyClient";
|
|
|
19
20
|
*/
|
|
20
21
|
export declare class Polly extends PollyClient {
|
|
21
22
|
/**
|
|
23
|
+
* @public
|
|
22
24
|
* <p>Deletes the specified pronunciation lexicon stored in an Amazon Web Services Region. A lexicon which has been deleted is not available for
|
|
23
25
|
* speech synthesis, nor is it possible to retrieve it using either the
|
|
24
26
|
* <code>GetLexicon</code> or <code>ListLexicon</code> APIs.</p>
|
|
@@ -28,6 +30,7 @@ export declare class Polly extends PollyClient {
|
|
|
28
30
|
deleteLexicon(args: DeleteLexiconCommandInput, cb: (err: any, data?: DeleteLexiconCommandOutput) => void): void;
|
|
29
31
|
deleteLexicon(args: DeleteLexiconCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteLexiconCommandOutput) => void): void;
|
|
30
32
|
/**
|
|
33
|
+
* @public
|
|
31
34
|
* <p>Returns the list of voices that are available for use when
|
|
32
35
|
* requesting speech synthesis. Each voice speaks a specified language, is
|
|
33
36
|
* either male or female, and is identified by an ID, which is the ASCII
|
|
@@ -49,6 +52,7 @@ export declare class Polly extends PollyClient {
|
|
|
49
52
|
describeVoices(args: DescribeVoicesCommandInput, cb: (err: any, data?: DescribeVoicesCommandOutput) => void): void;
|
|
50
53
|
describeVoices(args: DescribeVoicesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeVoicesCommandOutput) => void): void;
|
|
51
54
|
/**
|
|
55
|
+
* @public
|
|
52
56
|
* <p>Returns the content of the specified pronunciation lexicon stored
|
|
53
57
|
* in an Amazon Web Services Region. For more information, see <a href="https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html">Managing Lexicons</a>.</p>
|
|
54
58
|
*/
|
|
@@ -56,6 +60,7 @@ export declare class Polly extends PollyClient {
|
|
|
56
60
|
getLexicon(args: GetLexiconCommandInput, cb: (err: any, data?: GetLexiconCommandOutput) => void): void;
|
|
57
61
|
getLexicon(args: GetLexiconCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLexiconCommandOutput) => void): void;
|
|
58
62
|
/**
|
|
63
|
+
* @public
|
|
59
64
|
* <p>Retrieves a specific SpeechSynthesisTask object based on its TaskID.
|
|
60
65
|
* This object contains information about the given speech synthesis task,
|
|
61
66
|
* including the status of the task, and a link to the S3 bucket containing
|
|
@@ -65,12 +70,14 @@ export declare class Polly extends PollyClient {
|
|
|
65
70
|
getSpeechSynthesisTask(args: GetSpeechSynthesisTaskCommandInput, cb: (err: any, data?: GetSpeechSynthesisTaskCommandOutput) => void): void;
|
|
66
71
|
getSpeechSynthesisTask(args: GetSpeechSynthesisTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSpeechSynthesisTaskCommandOutput) => void): void;
|
|
67
72
|
/**
|
|
73
|
+
* @public
|
|
68
74
|
* <p>Returns a list of pronunciation lexicons stored in an Amazon Web Services Region. For more information, see <a href="https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html">Managing Lexicons</a>.</p>
|
|
69
75
|
*/
|
|
70
76
|
listLexicons(args: ListLexiconsCommandInput, options?: __HttpHandlerOptions): Promise<ListLexiconsCommandOutput>;
|
|
71
77
|
listLexicons(args: ListLexiconsCommandInput, cb: (err: any, data?: ListLexiconsCommandOutput) => void): void;
|
|
72
78
|
listLexicons(args: ListLexiconsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListLexiconsCommandOutput) => void): void;
|
|
73
79
|
/**
|
|
80
|
+
* @public
|
|
74
81
|
* <p>Returns a list of SpeechSynthesisTask objects ordered by their
|
|
75
82
|
* creation date. This operation can filter the tasks by their status, for
|
|
76
83
|
* example, allowing users to list only tasks that are completed.</p>
|
|
@@ -79,6 +86,7 @@ export declare class Polly extends PollyClient {
|
|
|
79
86
|
listSpeechSynthesisTasks(args: ListSpeechSynthesisTasksCommandInput, cb: (err: any, data?: ListSpeechSynthesisTasksCommandOutput) => void): void;
|
|
80
87
|
listSpeechSynthesisTasks(args: ListSpeechSynthesisTasksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSpeechSynthesisTasksCommandOutput) => void): void;
|
|
81
88
|
/**
|
|
89
|
+
* @public
|
|
82
90
|
* <p>Stores a pronunciation lexicon in an Amazon Web Services Region. If
|
|
83
91
|
* a lexicon with the same name already exists in the region, it is
|
|
84
92
|
* overwritten by the new lexicon. Lexicon operations have eventual
|
|
@@ -90,6 +98,7 @@ export declare class Polly extends PollyClient {
|
|
|
90
98
|
putLexicon(args: PutLexiconCommandInput, cb: (err: any, data?: PutLexiconCommandOutput) => void): void;
|
|
91
99
|
putLexicon(args: PutLexiconCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutLexiconCommandOutput) => void): void;
|
|
92
100
|
/**
|
|
101
|
+
* @public
|
|
93
102
|
* <p>Allows the creation of an asynchronous synthesis task, by starting a
|
|
94
103
|
* new <code>SpeechSynthesisTask</code>. This operation requires all the
|
|
95
104
|
* standard information needed for speech synthesis, plus the name of an
|
|
@@ -105,6 +114,7 @@ export declare class Polly extends PollyClient {
|
|
|
105
114
|
startSpeechSynthesisTask(args: StartSpeechSynthesisTaskCommandInput, cb: (err: any, data?: StartSpeechSynthesisTaskCommandOutput) => void): void;
|
|
106
115
|
startSpeechSynthesisTask(args: StartSpeechSynthesisTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartSpeechSynthesisTaskCommandOutput) => void): void;
|
|
107
116
|
/**
|
|
117
|
+
* @public
|
|
108
118
|
* <p>Synthesizes UTF-8 input, plain text or SSML, to a stream of bytes.
|
|
109
119
|
* SSML input must be valid, well-formed SSML. Some alphabets might not be
|
|
110
120
|
* available with all the voices (for example, Cyrillic might not be read at
|