@aws-sdk/client-polly 3.1011.0 → 3.1013.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 +7 -0
- package/dist-cjs/index.js +45 -3
- package/dist-cjs/models/errors.js +50 -1
- package/dist-cjs/runtimeConfig.browser.js +5 -0
- package/dist-cjs/runtimeConfig.js +8 -1
- package/dist-cjs/runtimeConfig.native.js +4 -0
- package/dist-cjs/schemas/schemas_0.js +120 -2
- package/dist-es/Polly.js +2 -0
- package/dist-es/PollyClient.js +7 -3
- package/dist-es/commands/StartSpeechSynthesisStreamCommand.js +25 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/enums.js +13 -0
- package/dist-es/models/errors.js +46 -0
- package/dist-es/runtimeConfig.browser.js +6 -1
- package/dist-es/runtimeConfig.js +9 -2
- package/dist-es/runtimeConfig.native.js +4 -0
- package/dist-es/schemas/schemas_0.js +119 -1
- package/dist-types/Polly.d.ts +7 -0
- package/dist-types/PollyClient.d.ts +18 -5
- package/dist-types/commands/StartSpeechSynthesisStreamCommand.d.ts +147 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +37 -0
- package/dist-types/models/errors.d.ts +63 -0
- package/dist-types/models/models_0.d.ts +336 -3
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +3 -1
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/schemas/schemas_0.d.ts +16 -1
- package/dist-types/ts3.4/Polly.d.ts +17 -0
- package/dist-types/ts3.4/PollyClient.d.ts +22 -0
- package/dist-types/ts3.4/commands/StartSpeechSynthesisStreamCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +17 -0
- package/dist-types/ts3.4/models/errors.d.ts +28 -0
- package/dist-types/ts3.4/models/models_0.d.ts +153 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +3 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +16 -0
- package/package.json +19 -14
package/README.md
CHANGED
|
@@ -235,6 +235,13 @@ PutLexicon
|
|
|
235
235
|
</details>
|
|
236
236
|
<details>
|
|
237
237
|
<summary>
|
|
238
|
+
StartSpeechSynthesisStream
|
|
239
|
+
</summary>
|
|
240
|
+
|
|
241
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/polly/command/StartSpeechSynthesisStreamCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-polly/Interface/StartSpeechSynthesisStreamCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-polly/Interface/StartSpeechSynthesisStreamCommandOutput/)
|
|
242
|
+
</details>
|
|
243
|
+
<details>
|
|
244
|
+
<summary>
|
|
238
245
|
StartSpeechSynthesisTask
|
|
239
246
|
</summary>
|
|
240
247
|
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var middlewareEventstream = require('@aws-sdk/middleware-eventstream');
|
|
3
4
|
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
5
|
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
6
|
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
@@ -7,6 +8,7 @@ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
|
7
8
|
var configResolver = require('@smithy/config-resolver');
|
|
8
9
|
var core = require('@smithy/core');
|
|
9
10
|
var schema = require('@smithy/core/schema');
|
|
11
|
+
var eventstreamSerdeConfigResolver = require('@smithy/eventstream-serde-config-resolver');
|
|
10
12
|
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
11
13
|
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
12
14
|
var middlewareRetry = require('@smithy/middleware-retry');
|
|
@@ -90,9 +92,11 @@ class PollyClient extends smithyClient.Client {
|
|
|
90
92
|
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
91
93
|
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
92
94
|
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
93
|
-
const _config_7 =
|
|
94
|
-
const _config_8 =
|
|
95
|
-
|
|
95
|
+
const _config_7 = eventstreamSerdeConfigResolver.resolveEventStreamSerdeConfig(_config_6);
|
|
96
|
+
const _config_8 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_7);
|
|
97
|
+
const _config_9 = middlewareEventstream.resolveEventStreamConfig(_config_8);
|
|
98
|
+
const _config_10 = resolveRuntimeExtensions(_config_9, configuration?.extensions || []);
|
|
99
|
+
this.config = _config_10;
|
|
96
100
|
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
97
101
|
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
98
102
|
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
@@ -197,6 +201,26 @@ class PutLexiconCommand extends smithyClient.Command
|
|
|
197
201
|
.build() {
|
|
198
202
|
}
|
|
199
203
|
|
|
204
|
+
class StartSpeechSynthesisStreamCommand extends smithyClient.Command
|
|
205
|
+
.classBuilder()
|
|
206
|
+
.ep(commonParams)
|
|
207
|
+
.m(function (Command, cs, config, o) {
|
|
208
|
+
return [
|
|
209
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
210
|
+
middlewareEventstream.getEventStreamPlugin(config),
|
|
211
|
+
];
|
|
212
|
+
})
|
|
213
|
+
.s("Parrot_v1", "StartSpeechSynthesisStream", {
|
|
214
|
+
eventStream: {
|
|
215
|
+
input: true,
|
|
216
|
+
output: true,
|
|
217
|
+
},
|
|
218
|
+
})
|
|
219
|
+
.n("PollyClient", "StartSpeechSynthesisStreamCommand")
|
|
220
|
+
.sc(schemas_0.StartSpeechSynthesisStream$)
|
|
221
|
+
.build() {
|
|
222
|
+
}
|
|
223
|
+
|
|
200
224
|
class StartSpeechSynthesisTaskCommand extends smithyClient.Command
|
|
201
225
|
.classBuilder()
|
|
202
226
|
.ep(commonParams)
|
|
@@ -231,6 +255,7 @@ const commands = {
|
|
|
231
255
|
ListLexiconsCommand,
|
|
232
256
|
ListSpeechSynthesisTasksCommand,
|
|
233
257
|
PutLexiconCommand,
|
|
258
|
+
StartSpeechSynthesisStreamCommand,
|
|
234
259
|
StartSpeechSynthesisTaskCommand,
|
|
235
260
|
SynthesizeSpeechCommand,
|
|
236
261
|
};
|
|
@@ -426,6 +451,19 @@ const TextType = {
|
|
|
426
451
|
SSML: "ssml",
|
|
427
452
|
TEXT: "text",
|
|
428
453
|
};
|
|
454
|
+
const QuotaCode = {
|
|
455
|
+
INPUT_STREAM_INBOUND_EVENT_TIMEOUT: "input-stream-inbound-event-timeout",
|
|
456
|
+
INPUT_STREAM_TIMEOUT: "input-stream-timeout",
|
|
457
|
+
};
|
|
458
|
+
const ServiceCode = {
|
|
459
|
+
POLLY: "polly",
|
|
460
|
+
};
|
|
461
|
+
const ValidationExceptionReason = {
|
|
462
|
+
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
463
|
+
INVALID_INBOUND_EVENT: "invalidInboundEvent",
|
|
464
|
+
OTHER: "other",
|
|
465
|
+
UNSUPPORTED_OPERATION: "unsupportedOperation",
|
|
466
|
+
};
|
|
429
467
|
|
|
430
468
|
exports.$Command = smithyClient.Command;
|
|
431
469
|
exports.__Client = smithyClient.Client;
|
|
@@ -443,11 +481,15 @@ exports.OutputFormat = OutputFormat;
|
|
|
443
481
|
exports.Polly = Polly;
|
|
444
482
|
exports.PollyClient = PollyClient;
|
|
445
483
|
exports.PutLexiconCommand = PutLexiconCommand;
|
|
484
|
+
exports.QuotaCode = QuotaCode;
|
|
485
|
+
exports.ServiceCode = ServiceCode;
|
|
446
486
|
exports.SpeechMarkType = SpeechMarkType;
|
|
487
|
+
exports.StartSpeechSynthesisStreamCommand = StartSpeechSynthesisStreamCommand;
|
|
447
488
|
exports.StartSpeechSynthesisTaskCommand = StartSpeechSynthesisTaskCommand;
|
|
448
489
|
exports.SynthesizeSpeechCommand = SynthesizeSpeechCommand;
|
|
449
490
|
exports.TaskStatus = TaskStatus;
|
|
450
491
|
exports.TextType = TextType;
|
|
492
|
+
exports.ValidationExceptionReason = ValidationExceptionReason;
|
|
451
493
|
exports.VoiceId = VoiceId;
|
|
452
494
|
exports.paginateListSpeechSynthesisTasks = paginateListSpeechSynthesisTasks;
|
|
453
495
|
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
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.EngineNotSupportedException = exports.InvalidNextTokenException = exports.ServiceFailureException = exports.LexiconNotFoundException = void 0;
|
|
3
|
+
exports.TextLengthExceededException = exports.SsmlMarksNotSupportedForTextTypeException = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = 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.EngineNotSupportedException = exports.InvalidNextTokenException = exports.ServiceFailureException = exports.LexiconNotFoundException = void 0;
|
|
4
4
|
const PollyServiceException_1 = require("./PollyServiceException");
|
|
5
5
|
class LexiconNotFoundException extends PollyServiceException_1.PollyServiceException {
|
|
6
6
|
name = "LexiconNotFoundException";
|
|
@@ -249,6 +249,55 @@ class UnsupportedPlsLanguageException extends PollyServiceException_1.PollyServi
|
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
exports.UnsupportedPlsLanguageException = UnsupportedPlsLanguageException;
|
|
252
|
+
class ServiceQuotaExceededException extends PollyServiceException_1.PollyServiceException {
|
|
253
|
+
name = "ServiceQuotaExceededException";
|
|
254
|
+
$fault = "client";
|
|
255
|
+
quotaCode;
|
|
256
|
+
serviceCode;
|
|
257
|
+
constructor(opts) {
|
|
258
|
+
super({
|
|
259
|
+
name: "ServiceQuotaExceededException",
|
|
260
|
+
$fault: "client",
|
|
261
|
+
...opts,
|
|
262
|
+
});
|
|
263
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
264
|
+
this.quotaCode = opts.quotaCode;
|
|
265
|
+
this.serviceCode = opts.serviceCode;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
269
|
+
class ThrottlingException extends PollyServiceException_1.PollyServiceException {
|
|
270
|
+
name = "ThrottlingException";
|
|
271
|
+
$fault = "client";
|
|
272
|
+
throttlingReasons;
|
|
273
|
+
constructor(opts) {
|
|
274
|
+
super({
|
|
275
|
+
name: "ThrottlingException",
|
|
276
|
+
$fault: "client",
|
|
277
|
+
...opts,
|
|
278
|
+
});
|
|
279
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
280
|
+
this.throttlingReasons = opts.throttlingReasons;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
exports.ThrottlingException = ThrottlingException;
|
|
284
|
+
class ValidationException extends PollyServiceException_1.PollyServiceException {
|
|
285
|
+
name = "ValidationException";
|
|
286
|
+
$fault = "client";
|
|
287
|
+
reason;
|
|
288
|
+
fields;
|
|
289
|
+
constructor(opts) {
|
|
290
|
+
super({
|
|
291
|
+
name: "ValidationException",
|
|
292
|
+
$fault: "client",
|
|
293
|
+
...opts,
|
|
294
|
+
});
|
|
295
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
296
|
+
this.reason = opts.reason;
|
|
297
|
+
this.fields = opts.fields;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
exports.ValidationException = ValidationException;
|
|
252
301
|
class SsmlMarksNotSupportedForTextTypeException extends PollyServiceException_1.PollyServiceException {
|
|
253
302
|
name = "SsmlMarksNotSupportedForTextTypeException";
|
|
254
303
|
$fault = "client";
|
|
@@ -6,6 +6,7 @@ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
|
6
6
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
7
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
8
8
|
const config_resolver_1 = require("@smithy/config-resolver");
|
|
9
|
+
const eventstream_serde_browser_1 = require("@smithy/eventstream-serde-browser");
|
|
9
10
|
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
10
11
|
const invalid_dependency_1 = require("@smithy/invalid-dependency");
|
|
11
12
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
@@ -25,6 +26,10 @@ const getRuntimeConfig = (config) => {
|
|
|
25
26
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
26
27
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
28
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
29
|
+
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? (() => ({
|
|
30
|
+
handle: (0, invalid_dependency_1.invalidFunction)("event stream request is not supported in browser."),
|
|
31
|
+
})),
|
|
32
|
+
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_browser_1.eventStreamSerdeProvider,
|
|
28
33
|
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
34
|
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
30
35
|
requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
@@ -5,8 +5,10 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
6
|
const core_1 = require("@aws-sdk/core");
|
|
7
7
|
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
8
|
+
const eventstream_handler_node_1 = require("@aws-sdk/eventstream-handler-node");
|
|
8
9
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
9
10
|
const config_resolver_1 = require("@smithy/config-resolver");
|
|
11
|
+
const eventstream_serde_node_1 = require("@smithy/eventstream-serde-node");
|
|
10
12
|
const hash_node_1 = require("@smithy/hash-node");
|
|
11
13
|
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
12
14
|
const node_config_provider_1 = require("@smithy/node-config-provider");
|
|
@@ -35,9 +37,14 @@ const getRuntimeConfig = (config) => {
|
|
|
35
37
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
36
38
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
|
|
37
39
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
40
|
+
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? eventstream_handler_node_1.eventStreamPayloadHandlerProvider,
|
|
41
|
+
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_node_1.eventStreamSerdeProvider,
|
|
38
42
|
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
39
43
|
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
40
|
-
requestHandler: node_http_handler_1.
|
|
44
|
+
requestHandler: node_http_handler_1.NodeHttp2Handler.create(config?.requestHandler ?? (async () => ({
|
|
45
|
+
...await defaultConfigProvider(),
|
|
46
|
+
disableConcurrentStreams: true
|
|
47
|
+
}))),
|
|
41
48
|
retryMode: config?.retryMode ??
|
|
42
49
|
(0, node_config_provider_1.loadConfig)({
|
|
43
50
|
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
+
const invalid_dependency_1 = require("@smithy/invalid-dependency");
|
|
5
6
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
7
|
const getRuntimeConfig = (config) => {
|
|
7
8
|
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
@@ -9,6 +10,9 @@ const getRuntimeConfig = (config) => {
|
|
|
9
10
|
...browserDefaults,
|
|
10
11
|
...config,
|
|
11
12
|
runtime: "react-native",
|
|
13
|
+
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? (() => ({
|
|
14
|
+
handle: (0, invalid_dependency_1.invalidFunction)("event stream request is not supported in ReactNative."),
|
|
15
|
+
})),
|
|
12
16
|
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
13
17
|
};
|
|
14
18
|
};
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.SynthesizeSpeech$ = exports.StartSpeechSynthesisTask$ = exports.PutLexicon$ = exports.ListSpeechSynthesisTasks$ = exports.ListLexicons$ = void 0;
|
|
3
|
+
exports.StartSpeechSynthesisTaskOutput$ = exports.StartSpeechSynthesisTaskInput$ = exports.StartSpeechSynthesisStreamOutput$ = exports.StartSpeechSynthesisStreamInput$ = exports.PutLexiconOutput$ = exports.PutLexiconInput$ = exports.ListSpeechSynthesisTasksOutput$ = exports.ListSpeechSynthesisTasksInput$ = exports.ListLexiconsOutput$ = exports.ListLexiconsInput$ = exports.LexiconDescription$ = exports.LexiconAttributes$ = exports.Lexicon$ = exports.GetSpeechSynthesisTaskOutput$ = exports.GetSpeechSynthesisTaskInput$ = exports.GetLexiconOutput$ = exports.GetLexiconInput$ = exports.FlushStreamConfiguration$ = exports.DescribeVoicesOutput$ = exports.DescribeVoicesInput$ = exports.DeleteLexiconOutput$ = exports.DeleteLexiconInput$ = exports.CloseStreamEvent$ = exports.AudioEvent$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.UnsupportedPlsLanguageException$ = exports.UnsupportedPlsAlphabetException$ = exports.ThrottlingException$ = exports.TextLengthExceededException$ = exports.SynthesisTaskNotFoundException$ = exports.SsmlMarksNotSupportedForTextTypeException$ = exports.ServiceQuotaExceededException$ = exports.ServiceFailureException$ = exports.MaxLexiconsNumberExceededException$ = exports.MaxLexemeLengthExceededException$ = exports.MarksNotSupportedForFormatException$ = exports.LexiconSizeExceededException$ = exports.LexiconNotFoundException$ = exports.LanguageNotSupportedException$ = exports.InvalidTaskIdException$ = exports.InvalidSsmlException$ = exports.InvalidSnsTopicArnException$ = exports.InvalidSampleRateException$ = exports.InvalidS3KeyException$ = exports.InvalidS3BucketException$ = exports.InvalidNextTokenException$ = exports.InvalidLexiconException$ = exports.EngineNotSupportedException$ = exports.PollyServiceException$ = void 0;
|
|
4
|
+
exports.SynthesizeSpeech$ = exports.StartSpeechSynthesisTask$ = exports.StartSpeechSynthesisStream$ = exports.PutLexicon$ = exports.ListSpeechSynthesisTasks$ = exports.ListLexicons$ = exports.GetSpeechSynthesisTask$ = exports.GetLexicon$ = exports.DescribeVoices$ = exports.DeleteLexicon$ = exports.StartSpeechSynthesisStreamEventStream$ = exports.StartSpeechSynthesisStreamActionStream$ = exports.Voice$ = exports.ValidationExceptionField$ = exports.ThrottlingReason$ = exports.TextEvent$ = exports.SynthesizeSpeechOutput$ = exports.SynthesizeSpeechInput$ = exports.SynthesisTask$ = exports.StreamClosedEvent$ = void 0;
|
|
5
5
|
const _A = "Alphabet";
|
|
6
|
+
const _AC = "AudioChunk";
|
|
7
|
+
const _AE = "AudioEvent";
|
|
6
8
|
const _ALC = "AdditionalLanguageCodes";
|
|
7
9
|
const _AS = "AudioStream";
|
|
10
|
+
const _ASc = "ActionStream";
|
|
8
11
|
const _At = "Attributes";
|
|
9
12
|
const _C = "Content";
|
|
13
|
+
const _CSE = "CloseStreamEvent";
|
|
10
14
|
const _CT = "CreationTime";
|
|
11
15
|
const _CT_ = "Content-Type";
|
|
12
16
|
const _CTo = "ContentType";
|
|
@@ -18,6 +22,9 @@ const _DVI = "DescribeVoicesInput";
|
|
|
18
22
|
const _DVO = "DescribeVoicesOutput";
|
|
19
23
|
const _E = "Engine";
|
|
20
24
|
const _ENSE = "EngineNotSupportedException";
|
|
25
|
+
const _ES = "EventStream";
|
|
26
|
+
const _F = "Force";
|
|
27
|
+
const _FSC = "FlushStreamConfiguration";
|
|
21
28
|
const _G = "Gender";
|
|
22
29
|
const _GL = "GetLexicon";
|
|
23
30
|
const _GLI = "GetLexiconInput";
|
|
@@ -71,14 +78,21 @@ const _PLI = "PutLexiconInput";
|
|
|
71
78
|
const _PLO = "PutLexiconOutput";
|
|
72
79
|
const _RC = "RequestCharacters";
|
|
73
80
|
const _S = "Size";
|
|
81
|
+
const _SCE = "StreamClosedEvent";
|
|
74
82
|
const _SE = "SupportedEngines";
|
|
75
83
|
const _SFE = "ServiceFailureException";
|
|
76
84
|
const _SMNSFTTE = "SsmlMarksNotSupportedForTextTypeException";
|
|
77
85
|
const _SMT = "SpeechMarkTypes";
|
|
86
|
+
const _SQEE = "ServiceQuotaExceededException";
|
|
78
87
|
const _SR = "SampleRate";
|
|
79
88
|
const _SS = "SynthesizeSpeech";
|
|
80
89
|
const _SSI = "SynthesizeSpeechInput";
|
|
81
90
|
const _SSO = "SynthesizeSpeechOutput";
|
|
91
|
+
const _SSSS = "StartSpeechSynthesisStream";
|
|
92
|
+
const _SSSSAS = "StartSpeechSynthesisStreamActionStream";
|
|
93
|
+
const _SSSSES = "StartSpeechSynthesisStreamEventStream";
|
|
94
|
+
const _SSSSI = "StartSpeechSynthesisStreamInput";
|
|
95
|
+
const _SSSSO = "StartSpeechSynthesisStreamOutput";
|
|
82
96
|
const _SSST = "StartSpeechSynthesisTask";
|
|
83
97
|
const _SSSTI = "StartSpeechSynthesisTaskInput";
|
|
84
98
|
const _SSSTO = "StartSpeechSynthesisTaskOutput";
|
|
@@ -88,28 +102,50 @@ const _STNFE = "SynthesisTaskNotFoundException";
|
|
|
88
102
|
const _STy = "SynthesisTasks";
|
|
89
103
|
const _St = "Status";
|
|
90
104
|
const _T = "Text";
|
|
105
|
+
const _TE = "ThrottlingException";
|
|
106
|
+
const _TEe = "TextEvent";
|
|
91
107
|
const _TI = "TaskId";
|
|
92
108
|
const _TLEE = "TextLengthExceededException";
|
|
109
|
+
const _TR = "ThrottlingReason";
|
|
110
|
+
const _TRL = "ThrottlingReasonList";
|
|
93
111
|
const _TS = "TaskStatus";
|
|
94
112
|
const _TSR = "TaskStatusReason";
|
|
95
113
|
const _TT = "TextType";
|
|
96
114
|
const _UPAE = "UnsupportedPlsAlphabetException";
|
|
97
115
|
const _UPLE = "UnsupportedPlsLanguageException";
|
|
98
116
|
const _V = "Voices";
|
|
117
|
+
const _VE = "ValidationException";
|
|
118
|
+
const _VEF = "ValidationExceptionField";
|
|
119
|
+
const _VEFL = "ValidationExceptionFieldList";
|
|
99
120
|
const _VI = "VoiceId";
|
|
100
121
|
const _VL = "VoiceList";
|
|
101
122
|
const _Vo = "Voice";
|
|
123
|
+
const _aQE = "awsQueryError";
|
|
102
124
|
const _c = "client";
|
|
103
125
|
const _e = "error";
|
|
126
|
+
const _eP = "eventPayload";
|
|
127
|
+
const _f = "fields";
|
|
104
128
|
const _h = "http";
|
|
105
129
|
const _hE = "httpError";
|
|
106
130
|
const _hH = "httpHeader";
|
|
107
131
|
const _hQ = "httpQuery";
|
|
108
132
|
const _m = "message";
|
|
133
|
+
const _n = "name";
|
|
134
|
+
const _qC = "quotaCode";
|
|
135
|
+
const _r = "reason";
|
|
136
|
+
const _re = "resource";
|
|
109
137
|
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.polly";
|
|
138
|
+
const _sC = "serviceCode";
|
|
110
139
|
const _se = "server";
|
|
111
140
|
const _st = "streaming";
|
|
141
|
+
const _tR = "throttlingReasons";
|
|
142
|
+
const _xaE = "x-amzn-Engine";
|
|
143
|
+
const _xaL = "x-amzn-LanguageCode";
|
|
144
|
+
const _xaL_ = "x-amzn-LexiconNames";
|
|
145
|
+
const _xaO = "x-amzn-OutputFormat";
|
|
112
146
|
const _xaR = "x-amzn-RequestCharacters";
|
|
147
|
+
const _xaS = "x-amzn-SampleRate";
|
|
148
|
+
const _xaV = "x-amzn-VoiceId";
|
|
113
149
|
const n0 = "com.amazonaws.polly";
|
|
114
150
|
const schema_1 = require("@smithy/core/schema");
|
|
115
151
|
const errors_1 = require("../models/errors");
|
|
@@ -214,6 +250,12 @@ exports.ServiceFailureException$ = [-3, n0, _SFE,
|
|
|
214
250
|
[0]
|
|
215
251
|
];
|
|
216
252
|
n0_registry.registerError(exports.ServiceFailureException$, errors_1.ServiceFailureException);
|
|
253
|
+
exports.ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
254
|
+
{ [_e]: _c, [_hE]: 402 },
|
|
255
|
+
[_m, _qC, _sC],
|
|
256
|
+
[0, 0, 0], 3
|
|
257
|
+
];
|
|
258
|
+
n0_registry.registerError(exports.ServiceQuotaExceededException$, errors_1.ServiceQuotaExceededException);
|
|
217
259
|
exports.SsmlMarksNotSupportedForTextTypeException$ = [-3, n0, _SMNSFTTE,
|
|
218
260
|
{ [_e]: _c, [_hE]: 400 },
|
|
219
261
|
[_m],
|
|
@@ -232,6 +274,12 @@ exports.TextLengthExceededException$ = [-3, n0, _TLEE,
|
|
|
232
274
|
[0]
|
|
233
275
|
];
|
|
234
276
|
n0_registry.registerError(exports.TextLengthExceededException$, errors_1.TextLengthExceededException);
|
|
277
|
+
exports.ThrottlingException$ = [-3, n0, _TE,
|
|
278
|
+
{ [_aQE]: [`Throttling`, 400], [_e]: _c, [_hE]: 400 },
|
|
279
|
+
[_m, _tR],
|
|
280
|
+
[0, () => ThrottlingReasonList]
|
|
281
|
+
];
|
|
282
|
+
n0_registry.registerError(exports.ThrottlingException$, errors_1.ThrottlingException);
|
|
235
283
|
exports.UnsupportedPlsAlphabetException$ = [-3, n0, _UPAE,
|
|
236
284
|
{ [_e]: _c, [_hE]: 400 },
|
|
237
285
|
[_m],
|
|
@@ -244,12 +292,28 @@ exports.UnsupportedPlsLanguageException$ = [-3, n0, _UPLE,
|
|
|
244
292
|
[0]
|
|
245
293
|
];
|
|
246
294
|
n0_registry.registerError(exports.UnsupportedPlsLanguageException$, errors_1.UnsupportedPlsLanguageException);
|
|
295
|
+
exports.ValidationException$ = [-3, n0, _VE,
|
|
296
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
297
|
+
[_m, _r, _f],
|
|
298
|
+
[0, 0, () => ValidationExceptionFieldList], 2
|
|
299
|
+
];
|
|
300
|
+
n0_registry.registerError(exports.ValidationException$, errors_1.ValidationException);
|
|
247
301
|
exports.errorTypeRegistries = [
|
|
248
302
|
_s_registry,
|
|
249
303
|
n0_registry,
|
|
250
304
|
];
|
|
251
305
|
var AudioStream = [0, n0, _AS, { [_st]: 1 }, 42];
|
|
252
306
|
var LexiconContent = [0, n0, _LC, 8, 0];
|
|
307
|
+
exports.AudioEvent$ = [3, n0, _AE,
|
|
308
|
+
0,
|
|
309
|
+
[_AC],
|
|
310
|
+
[[21, { [_eP]: 1 }]]
|
|
311
|
+
];
|
|
312
|
+
exports.CloseStreamEvent$ = [3, n0, _CSE,
|
|
313
|
+
0,
|
|
314
|
+
[],
|
|
315
|
+
[]
|
|
316
|
+
];
|
|
253
317
|
exports.DeleteLexiconInput$ = [3, n0, _DLI,
|
|
254
318
|
0,
|
|
255
319
|
[_N],
|
|
@@ -270,6 +334,11 @@ exports.DescribeVoicesOutput$ = [3, n0, _DVO,
|
|
|
270
334
|
[_V, _NT],
|
|
271
335
|
[() => VoiceList, 0]
|
|
272
336
|
];
|
|
337
|
+
exports.FlushStreamConfiguration$ = [3, n0, _FSC,
|
|
338
|
+
0,
|
|
339
|
+
[_F],
|
|
340
|
+
[2]
|
|
341
|
+
];
|
|
273
342
|
exports.GetLexiconInput$ = [3, n0, _GLI,
|
|
274
343
|
0,
|
|
275
344
|
[_N],
|
|
@@ -335,6 +404,16 @@ exports.PutLexiconOutput$ = [3, n0, _PLO,
|
|
|
335
404
|
[],
|
|
336
405
|
[]
|
|
337
406
|
];
|
|
407
|
+
exports.StartSpeechSynthesisStreamInput$ = [3, n0, _SSSSI,
|
|
408
|
+
0,
|
|
409
|
+
[_E, _OF, _VI, _LCa, _LN, _SR, _ASc],
|
|
410
|
+
[[0, { [_hH]: _xaE }], [0, { [_hH]: _xaO }], [0, { [_hH]: _xaV }], [0, { [_hH]: _xaL }], [64 | 0, { [_hH]: _xaL_ }], [0, { [_hH]: _xaS }], [() => exports.StartSpeechSynthesisStreamActionStream$, 16]], 3
|
|
411
|
+
];
|
|
412
|
+
exports.StartSpeechSynthesisStreamOutput$ = [3, n0, _SSSSO,
|
|
413
|
+
0,
|
|
414
|
+
[_ES],
|
|
415
|
+
[[() => exports.StartSpeechSynthesisStreamEventStream$, 16]]
|
|
416
|
+
];
|
|
338
417
|
exports.StartSpeechSynthesisTaskInput$ = [3, n0, _SSSTI,
|
|
339
418
|
0,
|
|
340
419
|
[_OF, _OSBN, _T, _VI, _E, _LCa, _LN, _OSKP, _SR, _STA, _SMT, _TT],
|
|
@@ -345,6 +424,11 @@ exports.StartSpeechSynthesisTaskOutput$ = [3, n0, _SSSTO,
|
|
|
345
424
|
[_ST],
|
|
346
425
|
[() => exports.SynthesisTask$]
|
|
347
426
|
];
|
|
427
|
+
exports.StreamClosedEvent$ = [3, n0, _SCE,
|
|
428
|
+
0,
|
|
429
|
+
[_RC],
|
|
430
|
+
[1]
|
|
431
|
+
];
|
|
348
432
|
exports.SynthesisTask$ = [3, n0, _ST,
|
|
349
433
|
0,
|
|
350
434
|
[_E, _TI, _TS, _TSR, _OU, _CT, _RC, _STA, _LN, _OF, _SR, _SMT, _TT, _VI, _LCa],
|
|
@@ -360,6 +444,21 @@ exports.SynthesizeSpeechOutput$ = [3, n0, _SSO,
|
|
|
360
444
|
[_AS, _CTo, _RC],
|
|
361
445
|
[[() => AudioStream, 16], [0, { [_hH]: _CT_ }], [1, { [_hH]: _xaR }]]
|
|
362
446
|
];
|
|
447
|
+
exports.TextEvent$ = [3, n0, _TEe,
|
|
448
|
+
0,
|
|
449
|
+
[_T, _TT, _FSC],
|
|
450
|
+
[0, 0, () => exports.FlushStreamConfiguration$], 1
|
|
451
|
+
];
|
|
452
|
+
exports.ThrottlingReason$ = [3, n0, _TR,
|
|
453
|
+
0,
|
|
454
|
+
[_r, _re],
|
|
455
|
+
[0, 0]
|
|
456
|
+
];
|
|
457
|
+
exports.ValidationExceptionField$ = [3, n0, _VEF,
|
|
458
|
+
0,
|
|
459
|
+
[_n, _m],
|
|
460
|
+
[0, 0], 2
|
|
461
|
+
];
|
|
363
462
|
exports.Voice$ = [3, n0, _Vo,
|
|
364
463
|
0,
|
|
365
464
|
[_G, _I, _LCa, _LNa, _N, _ALC, _SE],
|
|
@@ -375,9 +474,25 @@ var SpeechMarkTypeList = 64 | 0;
|
|
|
375
474
|
var SynthesisTasks = [1, n0, _STy,
|
|
376
475
|
0, () => exports.SynthesisTask$
|
|
377
476
|
];
|
|
477
|
+
var ThrottlingReasonList = [1, n0, _TRL,
|
|
478
|
+
0, () => exports.ThrottlingReason$
|
|
479
|
+
];
|
|
480
|
+
var ValidationExceptionFieldList = [1, n0, _VEFL,
|
|
481
|
+
0, () => exports.ValidationExceptionField$
|
|
482
|
+
];
|
|
378
483
|
var VoiceList = [1, n0, _VL,
|
|
379
484
|
0, () => exports.Voice$
|
|
380
485
|
];
|
|
486
|
+
exports.StartSpeechSynthesisStreamActionStream$ = [4, n0, _SSSSAS,
|
|
487
|
+
{ [_st]: 1 },
|
|
488
|
+
[_TEe, _CSE],
|
|
489
|
+
[() => exports.TextEvent$, () => exports.CloseStreamEvent$]
|
|
490
|
+
];
|
|
491
|
+
exports.StartSpeechSynthesisStreamEventStream$ = [4, n0, _SSSSES,
|
|
492
|
+
{ [_st]: 1 },
|
|
493
|
+
[_AE, _SCE, _VE, _SQEE, _SFE, _TE],
|
|
494
|
+
[[() => exports.AudioEvent$, 0], () => exports.StreamClosedEvent$, [() => exports.ValidationException$, 0], [() => exports.ServiceQuotaExceededException$, 0], [() => exports.ServiceFailureException$, 0], [() => exports.ThrottlingException$, 0]]
|
|
495
|
+
];
|
|
381
496
|
exports.DeleteLexicon$ = [9, n0, _DL,
|
|
382
497
|
{ [_h]: ["DELETE", "/v1/lexicons/{Name}", 200] }, () => exports.DeleteLexiconInput$, () => exports.DeleteLexiconOutput$
|
|
383
498
|
];
|
|
@@ -399,6 +514,9 @@ exports.ListSpeechSynthesisTasks$ = [9, n0, _LSST,
|
|
|
399
514
|
exports.PutLexicon$ = [9, n0, _PL,
|
|
400
515
|
{ [_h]: ["PUT", "/v1/lexicons/{Name}", 200] }, () => exports.PutLexiconInput$, () => exports.PutLexiconOutput$
|
|
401
516
|
];
|
|
517
|
+
exports.StartSpeechSynthesisStream$ = [9, n0, _SSSS,
|
|
518
|
+
{ [_h]: ["POST", "/v1/synthesisStream", 200] }, () => exports.StartSpeechSynthesisStreamInput$, () => exports.StartSpeechSynthesisStreamOutput$
|
|
519
|
+
];
|
|
402
520
|
exports.StartSpeechSynthesisTask$ = [9, n0, _SSST,
|
|
403
521
|
{ [_h]: ["POST", "/v1/synthesisTasks", 200] }, () => exports.StartSpeechSynthesisTaskInput$, () => exports.StartSpeechSynthesisTaskOutput$
|
|
404
522
|
];
|
package/dist-es/Polly.js
CHANGED
|
@@ -6,6 +6,7 @@ import { GetSpeechSynthesisTaskCommand, } from "./commands/GetSpeechSynthesisTas
|
|
|
6
6
|
import { ListLexiconsCommand, } from "./commands/ListLexiconsCommand";
|
|
7
7
|
import { ListSpeechSynthesisTasksCommand, } from "./commands/ListSpeechSynthesisTasksCommand";
|
|
8
8
|
import { PutLexiconCommand } from "./commands/PutLexiconCommand";
|
|
9
|
+
import { StartSpeechSynthesisStreamCommand, } from "./commands/StartSpeechSynthesisStreamCommand";
|
|
9
10
|
import { StartSpeechSynthesisTaskCommand, } from "./commands/StartSpeechSynthesisTaskCommand";
|
|
10
11
|
import { SynthesizeSpeechCommand, } from "./commands/SynthesizeSpeechCommand";
|
|
11
12
|
import { paginateListSpeechSynthesisTasks } from "./pagination/ListSpeechSynthesisTasksPaginator";
|
|
@@ -18,6 +19,7 @@ const commands = {
|
|
|
18
19
|
ListLexiconsCommand,
|
|
19
20
|
ListSpeechSynthesisTasksCommand,
|
|
20
21
|
PutLexiconCommand,
|
|
22
|
+
StartSpeechSynthesisStreamCommand,
|
|
21
23
|
StartSpeechSynthesisTaskCommand,
|
|
22
24
|
SynthesizeSpeechCommand,
|
|
23
25
|
};
|
package/dist-es/PollyClient.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { resolveEventStreamConfig, } from "@aws-sdk/middleware-eventstream";
|
|
1
2
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
2
3
|
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
3
4
|
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
@@ -5,6 +6,7 @@ import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware
|
|
|
5
6
|
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
6
7
|
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
8
|
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
9
|
+
import { resolveEventStreamSerdeConfig, } from "@smithy/eventstream-serde-config-resolver";
|
|
8
10
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
9
11
|
import { resolveEndpointConfig, } from "@smithy/middleware-endpoint";
|
|
10
12
|
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
|
|
@@ -26,9 +28,11 @@ export class PollyClient extends __Client {
|
|
|
26
28
|
const _config_4 = resolveRegionConfig(_config_3);
|
|
27
29
|
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
28
30
|
const _config_6 = resolveEndpointConfig(_config_5);
|
|
29
|
-
const _config_7 =
|
|
30
|
-
const _config_8 =
|
|
31
|
-
|
|
31
|
+
const _config_7 = resolveEventStreamSerdeConfig(_config_6);
|
|
32
|
+
const _config_8 = resolveHttpAuthSchemeConfig(_config_7);
|
|
33
|
+
const _config_9 = resolveEventStreamConfig(_config_8);
|
|
34
|
+
const _config_10 = resolveRuntimeExtensions(_config_9, configuration?.extensions || []);
|
|
35
|
+
this.config = _config_10;
|
|
32
36
|
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
33
37
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
34
38
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { getEventStreamPlugin } from "@aws-sdk/middleware-eventstream";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { StartSpeechSynthesisStream$ } from "../schemas/schemas_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class StartSpeechSynthesisStreamCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
13
|
+
getEventStreamPlugin(config),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("Parrot_v1", "StartSpeechSynthesisStream", {
|
|
17
|
+
eventStream: {
|
|
18
|
+
input: true,
|
|
19
|
+
output: true,
|
|
20
|
+
},
|
|
21
|
+
})
|
|
22
|
+
.n("PollyClient", "StartSpeechSynthesisStreamCommand")
|
|
23
|
+
.sc(StartSpeechSynthesisStream$)
|
|
24
|
+
.build() {
|
|
25
|
+
}
|
|
@@ -5,5 +5,6 @@ export * from "./GetSpeechSynthesisTaskCommand";
|
|
|
5
5
|
export * from "./ListLexiconsCommand";
|
|
6
6
|
export * from "./ListSpeechSynthesisTasksCommand";
|
|
7
7
|
export * from "./PutLexiconCommand";
|
|
8
|
+
export * from "./StartSpeechSynthesisStreamCommand";
|
|
8
9
|
export * from "./StartSpeechSynthesisTaskCommand";
|
|
9
10
|
export * from "./SynthesizeSpeechCommand";
|
package/dist-es/models/enums.js
CHANGED
|
@@ -183,3 +183,16 @@ export const TextType = {
|
|
|
183
183
|
SSML: "ssml",
|
|
184
184
|
TEXT: "text",
|
|
185
185
|
};
|
|
186
|
+
export const QuotaCode = {
|
|
187
|
+
INPUT_STREAM_INBOUND_EVENT_TIMEOUT: "input-stream-inbound-event-timeout",
|
|
188
|
+
INPUT_STREAM_TIMEOUT: "input-stream-timeout",
|
|
189
|
+
};
|
|
190
|
+
export const ServiceCode = {
|
|
191
|
+
POLLY: "polly",
|
|
192
|
+
};
|
|
193
|
+
export const ValidationExceptionReason = {
|
|
194
|
+
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
195
|
+
INVALID_INBOUND_EVENT: "invalidInboundEvent",
|
|
196
|
+
OTHER: "other",
|
|
197
|
+
UNSUPPORTED_OPERATION: "unsupportedOperation",
|
|
198
|
+
};
|
package/dist-es/models/errors.js
CHANGED
|
@@ -227,6 +227,52 @@ export class UnsupportedPlsLanguageException extends __BaseException {
|
|
|
227
227
|
Object.setPrototypeOf(this, UnsupportedPlsLanguageException.prototype);
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
231
|
+
name = "ServiceQuotaExceededException";
|
|
232
|
+
$fault = "client";
|
|
233
|
+
quotaCode;
|
|
234
|
+
serviceCode;
|
|
235
|
+
constructor(opts) {
|
|
236
|
+
super({
|
|
237
|
+
name: "ServiceQuotaExceededException",
|
|
238
|
+
$fault: "client",
|
|
239
|
+
...opts,
|
|
240
|
+
});
|
|
241
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
242
|
+
this.quotaCode = opts.quotaCode;
|
|
243
|
+
this.serviceCode = opts.serviceCode;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
export class ThrottlingException extends __BaseException {
|
|
247
|
+
name = "ThrottlingException";
|
|
248
|
+
$fault = "client";
|
|
249
|
+
throttlingReasons;
|
|
250
|
+
constructor(opts) {
|
|
251
|
+
super({
|
|
252
|
+
name: "ThrottlingException",
|
|
253
|
+
$fault: "client",
|
|
254
|
+
...opts,
|
|
255
|
+
});
|
|
256
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
257
|
+
this.throttlingReasons = opts.throttlingReasons;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
export class ValidationException extends __BaseException {
|
|
261
|
+
name = "ValidationException";
|
|
262
|
+
$fault = "client";
|
|
263
|
+
reason;
|
|
264
|
+
fields;
|
|
265
|
+
constructor(opts) {
|
|
266
|
+
super({
|
|
267
|
+
name: "ValidationException",
|
|
268
|
+
$fault: "client",
|
|
269
|
+
...opts,
|
|
270
|
+
});
|
|
271
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
272
|
+
this.reason = opts.reason;
|
|
273
|
+
this.fields = opts.fields;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
230
276
|
export class SsmlMarksNotSupportedForTextTypeException extends __BaseException {
|
|
231
277
|
name = "SsmlMarksNotSupportedForTextTypeException";
|
|
232
278
|
$fault = "client";
|