@aws-sdk/client-polly 3.490.0 → 3.495.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/index.js CHANGED
@@ -1,12 +1,1911 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PollyServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./PollyClient"), exports);
6
- tslib_1.__exportStar(require("./Polly"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- require("@aws-sdk/util-endpoints");
11
- var PollyServiceException_1 = require("./models/PollyServiceException");
12
- Object.defineProperty(exports, "PollyServiceException", { enumerable: true, get: function () { return PollyServiceException_1.PollyServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ DeleteLexiconCommand: () => DeleteLexiconCommand,
25
+ DescribeVoicesCommand: () => DescribeVoicesCommand,
26
+ Engine: () => Engine,
27
+ EngineNotSupportedException: () => EngineNotSupportedException,
28
+ Gender: () => Gender,
29
+ GetLexiconCommand: () => GetLexiconCommand,
30
+ GetLexiconOutputFilterSensitiveLog: () => GetLexiconOutputFilterSensitiveLog,
31
+ GetSpeechSynthesisTaskCommand: () => GetSpeechSynthesisTaskCommand,
32
+ InvalidLexiconException: () => InvalidLexiconException,
33
+ InvalidNextTokenException: () => InvalidNextTokenException,
34
+ InvalidS3BucketException: () => InvalidS3BucketException,
35
+ InvalidS3KeyException: () => InvalidS3KeyException,
36
+ InvalidSampleRateException: () => InvalidSampleRateException,
37
+ InvalidSnsTopicArnException: () => InvalidSnsTopicArnException,
38
+ InvalidSsmlException: () => InvalidSsmlException,
39
+ InvalidTaskIdException: () => InvalidTaskIdException,
40
+ LanguageCode: () => LanguageCode,
41
+ LanguageNotSupportedException: () => LanguageNotSupportedException,
42
+ LexiconFilterSensitiveLog: () => LexiconFilterSensitiveLog,
43
+ LexiconNotFoundException: () => LexiconNotFoundException,
44
+ LexiconSizeExceededException: () => LexiconSizeExceededException,
45
+ ListLexiconsCommand: () => ListLexiconsCommand,
46
+ ListSpeechSynthesisTasksCommand: () => ListSpeechSynthesisTasksCommand,
47
+ MarksNotSupportedForFormatException: () => MarksNotSupportedForFormatException,
48
+ MaxLexemeLengthExceededException: () => MaxLexemeLengthExceededException,
49
+ MaxLexiconsNumberExceededException: () => MaxLexiconsNumberExceededException,
50
+ OutputFormat: () => OutputFormat,
51
+ Polly: () => Polly,
52
+ PollyClient: () => PollyClient,
53
+ PollyServiceException: () => PollyServiceException,
54
+ PutLexiconCommand: () => PutLexiconCommand,
55
+ PutLexiconInputFilterSensitiveLog: () => PutLexiconInputFilterSensitiveLog,
56
+ ServiceFailureException: () => ServiceFailureException,
57
+ SpeechMarkType: () => SpeechMarkType,
58
+ SsmlMarksNotSupportedForTextTypeException: () => SsmlMarksNotSupportedForTextTypeException,
59
+ StartSpeechSynthesisTaskCommand: () => StartSpeechSynthesisTaskCommand,
60
+ SynthesisTaskNotFoundException: () => SynthesisTaskNotFoundException,
61
+ SynthesizeSpeechCommand: () => SynthesizeSpeechCommand,
62
+ SynthesizeSpeechOutputFilterSensitiveLog: () => SynthesizeSpeechOutputFilterSensitiveLog,
63
+ TaskStatus: () => TaskStatus,
64
+ TextLengthExceededException: () => TextLengthExceededException,
65
+ TextType: () => TextType,
66
+ UnsupportedPlsAlphabetException: () => UnsupportedPlsAlphabetException,
67
+ UnsupportedPlsLanguageException: () => UnsupportedPlsLanguageException,
68
+ VoiceId: () => VoiceId,
69
+ __Client: () => import_smithy_client.Client,
70
+ paginateListSpeechSynthesisTasks: () => paginateListSpeechSynthesisTasks
71
+ });
72
+ module.exports = __toCommonJS(src_exports);
73
+
74
+ // src/PollyClient.ts
75
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
76
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
77
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
78
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
79
+ var import_config_resolver = require("@smithy/config-resolver");
80
+ var import_core = require("@smithy/core");
81
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
82
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
83
+ var import_middleware_retry = require("@smithy/middleware-retry");
84
+
85
+ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
86
+
87
+ // src/endpoint/EndpointParameters.ts
88
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
89
+ return {
90
+ ...options,
91
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
92
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
93
+ defaultSigningName: "polly"
94
+ };
95
+ }, "resolveClientEndpointParameters");
96
+ var commonParams = {
97
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
98
+ Endpoint: { type: "builtInParams", name: "endpoint" },
99
+ Region: { type: "builtInParams", name: "region" },
100
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
101
+ };
102
+
103
+ // src/PollyClient.ts
104
+ var import_runtimeConfig = require("././runtimeConfig");
105
+
106
+ // src/runtimeExtensions.ts
107
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
108
+ var import_protocol_http = require("@smithy/protocol-http");
109
+ var import_smithy_client = require("@smithy/smithy-client");
110
+
111
+ // src/auth/httpAuthExtensionConfiguration.ts
112
+ var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
113
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
114
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
115
+ let _credentials = runtimeConfig.credentials;
116
+ return {
117
+ setHttpAuthScheme(httpAuthScheme) {
118
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
119
+ if (index === -1) {
120
+ _httpAuthSchemes.push(httpAuthScheme);
121
+ } else {
122
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
123
+ }
124
+ },
125
+ httpAuthSchemes() {
126
+ return _httpAuthSchemes;
127
+ },
128
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
129
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
130
+ },
131
+ httpAuthSchemeProvider() {
132
+ return _httpAuthSchemeProvider;
133
+ },
134
+ setCredentials(credentials) {
135
+ _credentials = credentials;
136
+ },
137
+ credentials() {
138
+ return _credentials;
139
+ }
140
+ };
141
+ }, "getHttpAuthExtensionConfiguration");
142
+ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
143
+ return {
144
+ httpAuthSchemes: config.httpAuthSchemes(),
145
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
146
+ credentials: config.credentials()
147
+ };
148
+ }, "resolveHttpAuthRuntimeConfig");
149
+
150
+ // src/runtimeExtensions.ts
151
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
152
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
153
+ const extensionConfiguration = {
154
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
155
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
156
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
157
+ ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig))
158
+ };
159
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
160
+ return {
161
+ ...runtimeConfig,
162
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
163
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
164
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
165
+ ...resolveHttpAuthRuntimeConfig(extensionConfiguration)
166
+ };
167
+ }, "resolveRuntimeExtensions");
168
+
169
+ // src/PollyClient.ts
170
+ var _PollyClient = class _PollyClient extends import_smithy_client.Client {
171
+ constructor(...[configuration]) {
172
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
173
+ const _config_1 = resolveClientEndpointParameters(_config_0);
174
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
175
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
176
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
177
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
178
+ const _config_6 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_5);
179
+ const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
180
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
181
+ super(_config_8);
182
+ this.config = _config_8;
183
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
184
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
185
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
186
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
187
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
188
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
189
+ this.middlewareStack.use(
190
+ (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
191
+ httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
192
+ identityProviderConfigProvider: this.getIdentityProviderConfigProvider()
193
+ })
194
+ );
195
+ this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
196
+ }
197
+ /**
198
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
199
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
200
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
201
+ */
202
+ destroy() {
203
+ super.destroy();
204
+ }
205
+ getDefaultHttpAuthSchemeParametersProvider() {
206
+ return import_httpAuthSchemeProvider.defaultPollyHttpAuthSchemeParametersProvider;
207
+ }
208
+ getIdentityProviderConfigProvider() {
209
+ return async (config) => new import_core.DefaultIdentityProviderConfig({
210
+ "aws.auth#sigv4": config.credentials
211
+ });
212
+ }
213
+ };
214
+ __name(_PollyClient, "PollyClient");
215
+ var PollyClient = _PollyClient;
216
+
217
+ // src/Polly.ts
218
+
219
+
220
+ // src/commands/DeleteLexiconCommand.ts
221
+
222
+ var import_middleware_serde = require("@smithy/middleware-serde");
223
+
224
+ var import_types = require("@smithy/types");
225
+
226
+ // src/protocols/Aws_restJson1.ts
227
+
228
+
229
+
230
+ // src/models/models_0.ts
231
+
232
+
233
+ // src/models/PollyServiceException.ts
234
+
235
+ var _PollyServiceException = class _PollyServiceException extends import_smithy_client.ServiceException {
236
+ /**
237
+ * @internal
238
+ */
239
+ constructor(options) {
240
+ super(options);
241
+ Object.setPrototypeOf(this, _PollyServiceException.prototype);
242
+ }
243
+ };
244
+ __name(_PollyServiceException, "PollyServiceException");
245
+ var PollyServiceException = _PollyServiceException;
246
+
247
+ // src/models/models_0.ts
248
+ var _LexiconNotFoundException = class _LexiconNotFoundException extends PollyServiceException {
249
+ /**
250
+ * @internal
251
+ */
252
+ constructor(opts) {
253
+ super({
254
+ name: "LexiconNotFoundException",
255
+ $fault: "client",
256
+ ...opts
257
+ });
258
+ this.name = "LexiconNotFoundException";
259
+ this.$fault = "client";
260
+ Object.setPrototypeOf(this, _LexiconNotFoundException.prototype);
261
+ }
262
+ };
263
+ __name(_LexiconNotFoundException, "LexiconNotFoundException");
264
+ var LexiconNotFoundException = _LexiconNotFoundException;
265
+ var _ServiceFailureException = class _ServiceFailureException extends PollyServiceException {
266
+ /**
267
+ * @internal
268
+ */
269
+ constructor(opts) {
270
+ super({
271
+ name: "ServiceFailureException",
272
+ $fault: "server",
273
+ ...opts
274
+ });
275
+ this.name = "ServiceFailureException";
276
+ this.$fault = "server";
277
+ Object.setPrototypeOf(this, _ServiceFailureException.prototype);
278
+ }
279
+ };
280
+ __name(_ServiceFailureException, "ServiceFailureException");
281
+ var ServiceFailureException = _ServiceFailureException;
282
+ var Engine = {
283
+ LONG_FORM: "long-form",
284
+ NEURAL: "neural",
285
+ STANDARD: "standard"
286
+ };
287
+ var LanguageCode = {
288
+ ar_AE: "ar-AE",
289
+ arb: "arb",
290
+ ca_ES: "ca-ES",
291
+ cmn_CN: "cmn-CN",
292
+ cy_GB: "cy-GB",
293
+ da_DK: "da-DK",
294
+ de_AT: "de-AT",
295
+ de_DE: "de-DE",
296
+ en_AU: "en-AU",
297
+ en_GB: "en-GB",
298
+ en_GB_WLS: "en-GB-WLS",
299
+ en_IE: "en-IE",
300
+ en_IN: "en-IN",
301
+ en_NZ: "en-NZ",
302
+ en_US: "en-US",
303
+ en_ZA: "en-ZA",
304
+ es_ES: "es-ES",
305
+ es_MX: "es-MX",
306
+ es_US: "es-US",
307
+ fi_FI: "fi-FI",
308
+ fr_BE: "fr-BE",
309
+ fr_CA: "fr-CA",
310
+ fr_FR: "fr-FR",
311
+ hi_IN: "hi-IN",
312
+ is_IS: "is-IS",
313
+ it_IT: "it-IT",
314
+ ja_JP: "ja-JP",
315
+ ko_KR: "ko-KR",
316
+ nb_NO: "nb-NO",
317
+ nl_BE: "nl-BE",
318
+ nl_NL: "nl-NL",
319
+ pl_PL: "pl-PL",
320
+ pt_BR: "pt-BR",
321
+ pt_PT: "pt-PT",
322
+ ro_RO: "ro-RO",
323
+ ru_RU: "ru-RU",
324
+ sv_SE: "sv-SE",
325
+ tr_TR: "tr-TR",
326
+ yue_CN: "yue-CN"
327
+ };
328
+ var Gender = {
329
+ Female: "Female",
330
+ Male: "Male"
331
+ };
332
+ var VoiceId = {
333
+ Aditi: "Aditi",
334
+ Adriano: "Adriano",
335
+ Amy: "Amy",
336
+ Andres: "Andres",
337
+ Aria: "Aria",
338
+ Arlet: "Arlet",
339
+ Arthur: "Arthur",
340
+ Astrid: "Astrid",
341
+ Ayanda: "Ayanda",
342
+ Bianca: "Bianca",
343
+ Brian: "Brian",
344
+ Camila: "Camila",
345
+ Carla: "Carla",
346
+ Carmen: "Carmen",
347
+ Celine: "Celine",
348
+ Chantal: "Chantal",
349
+ Conchita: "Conchita",
350
+ Cristiano: "Cristiano",
351
+ Daniel: "Daniel",
352
+ Danielle: "Danielle",
353
+ Dora: "Dora",
354
+ Elin: "Elin",
355
+ Emma: "Emma",
356
+ Enrique: "Enrique",
357
+ Ewa: "Ewa",
358
+ Filiz: "Filiz",
359
+ Gabrielle: "Gabrielle",
360
+ Geraint: "Geraint",
361
+ Giorgio: "Giorgio",
362
+ Gregory: "Gregory",
363
+ Gwyneth: "Gwyneth",
364
+ Hala: "Hala",
365
+ Hannah: "Hannah",
366
+ Hans: "Hans",
367
+ Hiujin: "Hiujin",
368
+ Ida: "Ida",
369
+ Ines: "Ines",
370
+ Isabelle: "Isabelle",
371
+ Ivy: "Ivy",
372
+ Jacek: "Jacek",
373
+ Jan: "Jan",
374
+ Joanna: "Joanna",
375
+ Joey: "Joey",
376
+ Justin: "Justin",
377
+ Kajal: "Kajal",
378
+ Karl: "Karl",
379
+ Kazuha: "Kazuha",
380
+ Kendra: "Kendra",
381
+ Kevin: "Kevin",
382
+ Kimberly: "Kimberly",
383
+ Laura: "Laura",
384
+ Lea: "Lea",
385
+ Liam: "Liam",
386
+ Lisa: "Lisa",
387
+ Liv: "Liv",
388
+ Lotte: "Lotte",
389
+ Lucia: "Lucia",
390
+ Lupe: "Lupe",
391
+ Mads: "Mads",
392
+ Maja: "Maja",
393
+ Marlene: "Marlene",
394
+ Mathieu: "Mathieu",
395
+ Matthew: "Matthew",
396
+ Maxim: "Maxim",
397
+ Mia: "Mia",
398
+ Miguel: "Miguel",
399
+ Mizuki: "Mizuki",
400
+ Naja: "Naja",
401
+ Niamh: "Niamh",
402
+ Nicole: "Nicole",
403
+ Ola: "Ola",
404
+ Olivia: "Olivia",
405
+ Pedro: "Pedro",
406
+ Penelope: "Penelope",
407
+ Raveena: "Raveena",
408
+ Remi: "Remi",
409
+ Ricardo: "Ricardo",
410
+ Ruben: "Ruben",
411
+ Russell: "Russell",
412
+ Ruth: "Ruth",
413
+ Salli: "Salli",
414
+ Seoyeon: "Seoyeon",
415
+ Sergio: "Sergio",
416
+ Sofie: "Sofie",
417
+ Stephen: "Stephen",
418
+ Suvi: "Suvi",
419
+ Takumi: "Takumi",
420
+ Tatyana: "Tatyana",
421
+ Thiago: "Thiago",
422
+ Tomoko: "Tomoko",
423
+ Vicki: "Vicki",
424
+ Vitoria: "Vitoria",
425
+ Zayd: "Zayd",
426
+ Zeina: "Zeina",
427
+ Zhiyu: "Zhiyu"
428
+ };
429
+ var _InvalidNextTokenException = class _InvalidNextTokenException extends PollyServiceException {
430
+ /**
431
+ * @internal
432
+ */
433
+ constructor(opts) {
434
+ super({
435
+ name: "InvalidNextTokenException",
436
+ $fault: "client",
437
+ ...opts
438
+ });
439
+ this.name = "InvalidNextTokenException";
440
+ this.$fault = "client";
441
+ Object.setPrototypeOf(this, _InvalidNextTokenException.prototype);
442
+ }
443
+ };
444
+ __name(_InvalidNextTokenException, "InvalidNextTokenException");
445
+ var InvalidNextTokenException = _InvalidNextTokenException;
446
+ var _EngineNotSupportedException = class _EngineNotSupportedException extends PollyServiceException {
447
+ /**
448
+ * @internal
449
+ */
450
+ constructor(opts) {
451
+ super({
452
+ name: "EngineNotSupportedException",
453
+ $fault: "client",
454
+ ...opts
455
+ });
456
+ this.name = "EngineNotSupportedException";
457
+ this.$fault = "client";
458
+ Object.setPrototypeOf(this, _EngineNotSupportedException.prototype);
459
+ }
460
+ };
461
+ __name(_EngineNotSupportedException, "EngineNotSupportedException");
462
+ var EngineNotSupportedException = _EngineNotSupportedException;
463
+ var OutputFormat = {
464
+ JSON: "json",
465
+ MP3: "mp3",
466
+ OGG_VORBIS: "ogg_vorbis",
467
+ PCM: "pcm"
468
+ };
469
+ var SpeechMarkType = {
470
+ SENTENCE: "sentence",
471
+ SSML: "ssml",
472
+ VISEME: "viseme",
473
+ WORD: "word"
474
+ };
475
+ var TaskStatus = {
476
+ COMPLETED: "completed",
477
+ FAILED: "failed",
478
+ IN_PROGRESS: "inProgress",
479
+ SCHEDULED: "scheduled"
480
+ };
481
+ var TextType = {
482
+ SSML: "ssml",
483
+ TEXT: "text"
484
+ };
485
+ var _InvalidTaskIdException = class _InvalidTaskIdException extends PollyServiceException {
486
+ /**
487
+ * @internal
488
+ */
489
+ constructor(opts) {
490
+ super({
491
+ name: "InvalidTaskIdException",
492
+ $fault: "client",
493
+ ...opts
494
+ });
495
+ this.name = "InvalidTaskIdException";
496
+ this.$fault = "client";
497
+ Object.setPrototypeOf(this, _InvalidTaskIdException.prototype);
498
+ }
499
+ };
500
+ __name(_InvalidTaskIdException, "InvalidTaskIdException");
501
+ var InvalidTaskIdException = _InvalidTaskIdException;
502
+ var _SynthesisTaskNotFoundException = class _SynthesisTaskNotFoundException extends PollyServiceException {
503
+ /**
504
+ * @internal
505
+ */
506
+ constructor(opts) {
507
+ super({
508
+ name: "SynthesisTaskNotFoundException",
509
+ $fault: "client",
510
+ ...opts
511
+ });
512
+ this.name = "SynthesisTaskNotFoundException";
513
+ this.$fault = "client";
514
+ Object.setPrototypeOf(this, _SynthesisTaskNotFoundException.prototype);
515
+ }
516
+ };
517
+ __name(_SynthesisTaskNotFoundException, "SynthesisTaskNotFoundException");
518
+ var SynthesisTaskNotFoundException = _SynthesisTaskNotFoundException;
519
+ var _InvalidLexiconException = class _InvalidLexiconException extends PollyServiceException {
520
+ /**
521
+ * @internal
522
+ */
523
+ constructor(opts) {
524
+ super({
525
+ name: "InvalidLexiconException",
526
+ $fault: "client",
527
+ ...opts
528
+ });
529
+ this.name = "InvalidLexiconException";
530
+ this.$fault = "client";
531
+ Object.setPrototypeOf(this, _InvalidLexiconException.prototype);
532
+ }
533
+ };
534
+ __name(_InvalidLexiconException, "InvalidLexiconException");
535
+ var InvalidLexiconException = _InvalidLexiconException;
536
+ var _InvalidS3BucketException = class _InvalidS3BucketException extends PollyServiceException {
537
+ /**
538
+ * @internal
539
+ */
540
+ constructor(opts) {
541
+ super({
542
+ name: "InvalidS3BucketException",
543
+ $fault: "client",
544
+ ...opts
545
+ });
546
+ this.name = "InvalidS3BucketException";
547
+ this.$fault = "client";
548
+ Object.setPrototypeOf(this, _InvalidS3BucketException.prototype);
549
+ }
550
+ };
551
+ __name(_InvalidS3BucketException, "InvalidS3BucketException");
552
+ var InvalidS3BucketException = _InvalidS3BucketException;
553
+ var _InvalidS3KeyException = class _InvalidS3KeyException extends PollyServiceException {
554
+ /**
555
+ * @internal
556
+ */
557
+ constructor(opts) {
558
+ super({
559
+ name: "InvalidS3KeyException",
560
+ $fault: "client",
561
+ ...opts
562
+ });
563
+ this.name = "InvalidS3KeyException";
564
+ this.$fault = "client";
565
+ Object.setPrototypeOf(this, _InvalidS3KeyException.prototype);
566
+ }
567
+ };
568
+ __name(_InvalidS3KeyException, "InvalidS3KeyException");
569
+ var InvalidS3KeyException = _InvalidS3KeyException;
570
+ var _InvalidSampleRateException = class _InvalidSampleRateException extends PollyServiceException {
571
+ /**
572
+ * @internal
573
+ */
574
+ constructor(opts) {
575
+ super({
576
+ name: "InvalidSampleRateException",
577
+ $fault: "client",
578
+ ...opts
579
+ });
580
+ this.name = "InvalidSampleRateException";
581
+ this.$fault = "client";
582
+ Object.setPrototypeOf(this, _InvalidSampleRateException.prototype);
583
+ }
584
+ };
585
+ __name(_InvalidSampleRateException, "InvalidSampleRateException");
586
+ var InvalidSampleRateException = _InvalidSampleRateException;
587
+ var _InvalidSnsTopicArnException = class _InvalidSnsTopicArnException extends PollyServiceException {
588
+ /**
589
+ * @internal
590
+ */
591
+ constructor(opts) {
592
+ super({
593
+ name: "InvalidSnsTopicArnException",
594
+ $fault: "client",
595
+ ...opts
596
+ });
597
+ this.name = "InvalidSnsTopicArnException";
598
+ this.$fault = "client";
599
+ Object.setPrototypeOf(this, _InvalidSnsTopicArnException.prototype);
600
+ }
601
+ };
602
+ __name(_InvalidSnsTopicArnException, "InvalidSnsTopicArnException");
603
+ var InvalidSnsTopicArnException = _InvalidSnsTopicArnException;
604
+ var _InvalidSsmlException = class _InvalidSsmlException extends PollyServiceException {
605
+ /**
606
+ * @internal
607
+ */
608
+ constructor(opts) {
609
+ super({
610
+ name: "InvalidSsmlException",
611
+ $fault: "client",
612
+ ...opts
613
+ });
614
+ this.name = "InvalidSsmlException";
615
+ this.$fault = "client";
616
+ Object.setPrototypeOf(this, _InvalidSsmlException.prototype);
617
+ }
618
+ };
619
+ __name(_InvalidSsmlException, "InvalidSsmlException");
620
+ var InvalidSsmlException = _InvalidSsmlException;
621
+ var _LanguageNotSupportedException = class _LanguageNotSupportedException extends PollyServiceException {
622
+ /**
623
+ * @internal
624
+ */
625
+ constructor(opts) {
626
+ super({
627
+ name: "LanguageNotSupportedException",
628
+ $fault: "client",
629
+ ...opts
630
+ });
631
+ this.name = "LanguageNotSupportedException";
632
+ this.$fault = "client";
633
+ Object.setPrototypeOf(this, _LanguageNotSupportedException.prototype);
634
+ }
635
+ };
636
+ __name(_LanguageNotSupportedException, "LanguageNotSupportedException");
637
+ var LanguageNotSupportedException = _LanguageNotSupportedException;
638
+ var _LexiconSizeExceededException = class _LexiconSizeExceededException extends PollyServiceException {
639
+ /**
640
+ * @internal
641
+ */
642
+ constructor(opts) {
643
+ super({
644
+ name: "LexiconSizeExceededException",
645
+ $fault: "client",
646
+ ...opts
647
+ });
648
+ this.name = "LexiconSizeExceededException";
649
+ this.$fault = "client";
650
+ Object.setPrototypeOf(this, _LexiconSizeExceededException.prototype);
651
+ }
652
+ };
653
+ __name(_LexiconSizeExceededException, "LexiconSizeExceededException");
654
+ var LexiconSizeExceededException = _LexiconSizeExceededException;
655
+ var _MarksNotSupportedForFormatException = class _MarksNotSupportedForFormatException extends PollyServiceException {
656
+ /**
657
+ * @internal
658
+ */
659
+ constructor(opts) {
660
+ super({
661
+ name: "MarksNotSupportedForFormatException",
662
+ $fault: "client",
663
+ ...opts
664
+ });
665
+ this.name = "MarksNotSupportedForFormatException";
666
+ this.$fault = "client";
667
+ Object.setPrototypeOf(this, _MarksNotSupportedForFormatException.prototype);
668
+ }
669
+ };
670
+ __name(_MarksNotSupportedForFormatException, "MarksNotSupportedForFormatException");
671
+ var MarksNotSupportedForFormatException = _MarksNotSupportedForFormatException;
672
+ var _MaxLexemeLengthExceededException = class _MaxLexemeLengthExceededException extends PollyServiceException {
673
+ /**
674
+ * @internal
675
+ */
676
+ constructor(opts) {
677
+ super({
678
+ name: "MaxLexemeLengthExceededException",
679
+ $fault: "client",
680
+ ...opts
681
+ });
682
+ this.name = "MaxLexemeLengthExceededException";
683
+ this.$fault = "client";
684
+ Object.setPrototypeOf(this, _MaxLexemeLengthExceededException.prototype);
685
+ }
686
+ };
687
+ __name(_MaxLexemeLengthExceededException, "MaxLexemeLengthExceededException");
688
+ var MaxLexemeLengthExceededException = _MaxLexemeLengthExceededException;
689
+ var _MaxLexiconsNumberExceededException = class _MaxLexiconsNumberExceededException extends PollyServiceException {
690
+ /**
691
+ * @internal
692
+ */
693
+ constructor(opts) {
694
+ super({
695
+ name: "MaxLexiconsNumberExceededException",
696
+ $fault: "client",
697
+ ...opts
698
+ });
699
+ this.name = "MaxLexiconsNumberExceededException";
700
+ this.$fault = "client";
701
+ Object.setPrototypeOf(this, _MaxLexiconsNumberExceededException.prototype);
702
+ }
703
+ };
704
+ __name(_MaxLexiconsNumberExceededException, "MaxLexiconsNumberExceededException");
705
+ var MaxLexiconsNumberExceededException = _MaxLexiconsNumberExceededException;
706
+ var _UnsupportedPlsAlphabetException = class _UnsupportedPlsAlphabetException extends PollyServiceException {
707
+ /**
708
+ * @internal
709
+ */
710
+ constructor(opts) {
711
+ super({
712
+ name: "UnsupportedPlsAlphabetException",
713
+ $fault: "client",
714
+ ...opts
715
+ });
716
+ this.name = "UnsupportedPlsAlphabetException";
717
+ this.$fault = "client";
718
+ Object.setPrototypeOf(this, _UnsupportedPlsAlphabetException.prototype);
719
+ }
720
+ };
721
+ __name(_UnsupportedPlsAlphabetException, "UnsupportedPlsAlphabetException");
722
+ var UnsupportedPlsAlphabetException = _UnsupportedPlsAlphabetException;
723
+ var _UnsupportedPlsLanguageException = class _UnsupportedPlsLanguageException extends PollyServiceException {
724
+ /**
725
+ * @internal
726
+ */
727
+ constructor(opts) {
728
+ super({
729
+ name: "UnsupportedPlsLanguageException",
730
+ $fault: "client",
731
+ ...opts
732
+ });
733
+ this.name = "UnsupportedPlsLanguageException";
734
+ this.$fault = "client";
735
+ Object.setPrototypeOf(this, _UnsupportedPlsLanguageException.prototype);
736
+ }
737
+ };
738
+ __name(_UnsupportedPlsLanguageException, "UnsupportedPlsLanguageException");
739
+ var UnsupportedPlsLanguageException = _UnsupportedPlsLanguageException;
740
+ var _SsmlMarksNotSupportedForTextTypeException = class _SsmlMarksNotSupportedForTextTypeException extends PollyServiceException {
741
+ /**
742
+ * @internal
743
+ */
744
+ constructor(opts) {
745
+ super({
746
+ name: "SsmlMarksNotSupportedForTextTypeException",
747
+ $fault: "client",
748
+ ...opts
749
+ });
750
+ this.name = "SsmlMarksNotSupportedForTextTypeException";
751
+ this.$fault = "client";
752
+ Object.setPrototypeOf(this, _SsmlMarksNotSupportedForTextTypeException.prototype);
753
+ }
754
+ };
755
+ __name(_SsmlMarksNotSupportedForTextTypeException, "SsmlMarksNotSupportedForTextTypeException");
756
+ var SsmlMarksNotSupportedForTextTypeException = _SsmlMarksNotSupportedForTextTypeException;
757
+ var _TextLengthExceededException = class _TextLengthExceededException extends PollyServiceException {
758
+ /**
759
+ * @internal
760
+ */
761
+ constructor(opts) {
762
+ super({
763
+ name: "TextLengthExceededException",
764
+ $fault: "client",
765
+ ...opts
766
+ });
767
+ this.name = "TextLengthExceededException";
768
+ this.$fault = "client";
769
+ Object.setPrototypeOf(this, _TextLengthExceededException.prototype);
770
+ }
771
+ };
772
+ __name(_TextLengthExceededException, "TextLengthExceededException");
773
+ var TextLengthExceededException = _TextLengthExceededException;
774
+ var LexiconFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
775
+ ...obj,
776
+ ...obj.Content && { Content: import_smithy_client.SENSITIVE_STRING }
777
+ }), "LexiconFilterSensitiveLog");
778
+ var GetLexiconOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
779
+ ...obj,
780
+ ...obj.Lexicon && { Lexicon: LexiconFilterSensitiveLog(obj.Lexicon) }
781
+ }), "GetLexiconOutputFilterSensitiveLog");
782
+ var PutLexiconInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
783
+ ...obj,
784
+ ...obj.Content && { Content: import_smithy_client.SENSITIVE_STRING }
785
+ }), "PutLexiconInputFilterSensitiveLog");
786
+ var SynthesizeSpeechOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
787
+ ...obj
788
+ }), "SynthesizeSpeechOutputFilterSensitiveLog");
789
+
790
+ // src/protocols/Aws_restJson1.ts
791
+ var se_DeleteLexiconCommand = /* @__PURE__ */ __name(async (input, context) => {
792
+ const b = (0, import_core.requestBuilder)(input, context);
793
+ const headers = {};
794
+ b.bp("/v1/lexicons/{Name}");
795
+ b.p("Name", () => input.Name, "{Name}", false);
796
+ let body;
797
+ b.m("DELETE").h(headers).b(body);
798
+ return b.build();
799
+ }, "se_DeleteLexiconCommand");
800
+ var se_DescribeVoicesCommand = /* @__PURE__ */ __name(async (input, context) => {
801
+ const b = (0, import_core.requestBuilder)(input, context);
802
+ const headers = {};
803
+ b.bp("/v1/voices");
804
+ const query = (0, import_smithy_client.map)({
805
+ [_E]: [, input[_E]],
806
+ [_LC]: [, input[_LC]],
807
+ [_IALC]: [() => input.IncludeAdditionalLanguageCodes !== void 0, () => input[_IALC].toString()],
808
+ [_NT]: [, input[_NT]]
809
+ });
810
+ let body;
811
+ b.m("GET").h(headers).q(query).b(body);
812
+ return b.build();
813
+ }, "se_DescribeVoicesCommand");
814
+ var se_GetLexiconCommand = /* @__PURE__ */ __name(async (input, context) => {
815
+ const b = (0, import_core.requestBuilder)(input, context);
816
+ const headers = {};
817
+ b.bp("/v1/lexicons/{Name}");
818
+ b.p("Name", () => input.Name, "{Name}", false);
819
+ let body;
820
+ b.m("GET").h(headers).b(body);
821
+ return b.build();
822
+ }, "se_GetLexiconCommand");
823
+ var se_GetSpeechSynthesisTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
824
+ const b = (0, import_core.requestBuilder)(input, context);
825
+ const headers = {};
826
+ b.bp("/v1/synthesisTasks/{TaskId}");
827
+ b.p("TaskId", () => input.TaskId, "{TaskId}", false);
828
+ let body;
829
+ b.m("GET").h(headers).b(body);
830
+ return b.build();
831
+ }, "se_GetSpeechSynthesisTaskCommand");
832
+ var se_ListLexiconsCommand = /* @__PURE__ */ __name(async (input, context) => {
833
+ const b = (0, import_core.requestBuilder)(input, context);
834
+ const headers = {};
835
+ b.bp("/v1/lexicons");
836
+ const query = (0, import_smithy_client.map)({
837
+ [_NT]: [, input[_NT]]
838
+ });
839
+ let body;
840
+ b.m("GET").h(headers).q(query).b(body);
841
+ return b.build();
842
+ }, "se_ListLexiconsCommand");
843
+ var se_ListSpeechSynthesisTasksCommand = /* @__PURE__ */ __name(async (input, context) => {
844
+ const b = (0, import_core.requestBuilder)(input, context);
845
+ const headers = {};
846
+ b.bp("/v1/synthesisTasks");
847
+ const query = (0, import_smithy_client.map)({
848
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
849
+ [_NT]: [, input[_NT]],
850
+ [_S]: [, input[_S]]
851
+ });
852
+ let body;
853
+ b.m("GET").h(headers).q(query).b(body);
854
+ return b.build();
855
+ }, "se_ListSpeechSynthesisTasksCommand");
856
+ var se_PutLexiconCommand = /* @__PURE__ */ __name(async (input, context) => {
857
+ const b = (0, import_core.requestBuilder)(input, context);
858
+ const headers = {
859
+ "content-type": "application/json"
860
+ };
861
+ b.bp("/v1/lexicons/{Name}");
862
+ b.p("Name", () => input.Name, "{Name}", false);
863
+ let body;
864
+ body = JSON.stringify(
865
+ (0, import_smithy_client.take)(input, {
866
+ Content: []
867
+ })
868
+ );
869
+ b.m("PUT").h(headers).b(body);
870
+ return b.build();
871
+ }, "se_PutLexiconCommand");
872
+ var se_StartSpeechSynthesisTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
873
+ const b = (0, import_core.requestBuilder)(input, context);
874
+ const headers = {
875
+ "content-type": "application/json"
876
+ };
877
+ b.bp("/v1/synthesisTasks");
878
+ let body;
879
+ body = JSON.stringify(
880
+ (0, import_smithy_client.take)(input, {
881
+ Engine: [],
882
+ LanguageCode: [],
883
+ LexiconNames: (_) => (0, import_smithy_client._json)(_),
884
+ OutputFormat: [],
885
+ OutputS3BucketName: [],
886
+ OutputS3KeyPrefix: [],
887
+ SampleRate: [],
888
+ SnsTopicArn: [],
889
+ SpeechMarkTypes: (_) => (0, import_smithy_client._json)(_),
890
+ Text: [],
891
+ TextType: [],
892
+ VoiceId: []
893
+ })
894
+ );
895
+ b.m("POST").h(headers).b(body);
896
+ return b.build();
897
+ }, "se_StartSpeechSynthesisTaskCommand");
898
+ var se_SynthesizeSpeechCommand = /* @__PURE__ */ __name(async (input, context) => {
899
+ const b = (0, import_core.requestBuilder)(input, context);
900
+ const headers = {
901
+ "content-type": "application/json"
902
+ };
903
+ b.bp("/v1/speech");
904
+ let body;
905
+ body = JSON.stringify(
906
+ (0, import_smithy_client.take)(input, {
907
+ Engine: [],
908
+ LanguageCode: [],
909
+ LexiconNames: (_) => (0, import_smithy_client._json)(_),
910
+ OutputFormat: [],
911
+ SampleRate: [],
912
+ SpeechMarkTypes: (_) => (0, import_smithy_client._json)(_),
913
+ Text: [],
914
+ TextType: [],
915
+ VoiceId: []
916
+ })
917
+ );
918
+ b.m("POST").h(headers).b(body);
919
+ return b.build();
920
+ }, "se_SynthesizeSpeechCommand");
921
+ var de_DeleteLexiconCommand = /* @__PURE__ */ __name(async (output, context) => {
922
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
923
+ return de_DeleteLexiconCommandError(output, context);
924
+ }
925
+ const contents = (0, import_smithy_client.map)({
926
+ $metadata: deserializeMetadata(output)
927
+ });
928
+ await (0, import_smithy_client.collectBody)(output.body, context);
929
+ return contents;
930
+ }, "de_DeleteLexiconCommand");
931
+ var de_DeleteLexiconCommandError = /* @__PURE__ */ __name(async (output, context) => {
932
+ const parsedOutput = {
933
+ ...output,
934
+ body: await parseErrorBody(output.body, context)
935
+ };
936
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
937
+ switch (errorCode) {
938
+ case "LexiconNotFoundException":
939
+ case "com.amazonaws.polly#LexiconNotFoundException":
940
+ throw await de_LexiconNotFoundExceptionRes(parsedOutput, context);
941
+ case "ServiceFailureException":
942
+ case "com.amazonaws.polly#ServiceFailureException":
943
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
944
+ default:
945
+ const parsedBody = parsedOutput.body;
946
+ return throwDefaultError({
947
+ output,
948
+ parsedBody,
949
+ errorCode
950
+ });
951
+ }
952
+ }, "de_DeleteLexiconCommandError");
953
+ var de_DescribeVoicesCommand = /* @__PURE__ */ __name(async (output, context) => {
954
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
955
+ return de_DescribeVoicesCommandError(output, context);
956
+ }
957
+ const contents = (0, import_smithy_client.map)({
958
+ $metadata: deserializeMetadata(output)
959
+ });
960
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
961
+ const doc = (0, import_smithy_client.take)(data, {
962
+ NextToken: import_smithy_client.expectString,
963
+ Voices: import_smithy_client._json
964
+ });
965
+ Object.assign(contents, doc);
966
+ return contents;
967
+ }, "de_DescribeVoicesCommand");
968
+ var de_DescribeVoicesCommandError = /* @__PURE__ */ __name(async (output, context) => {
969
+ const parsedOutput = {
970
+ ...output,
971
+ body: await parseErrorBody(output.body, context)
972
+ };
973
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
974
+ switch (errorCode) {
975
+ case "InvalidNextTokenException":
976
+ case "com.amazonaws.polly#InvalidNextTokenException":
977
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
978
+ case "ServiceFailureException":
979
+ case "com.amazonaws.polly#ServiceFailureException":
980
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
981
+ default:
982
+ const parsedBody = parsedOutput.body;
983
+ return throwDefaultError({
984
+ output,
985
+ parsedBody,
986
+ errorCode
987
+ });
988
+ }
989
+ }, "de_DescribeVoicesCommandError");
990
+ var de_GetLexiconCommand = /* @__PURE__ */ __name(async (output, context) => {
991
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
992
+ return de_GetLexiconCommandError(output, context);
993
+ }
994
+ const contents = (0, import_smithy_client.map)({
995
+ $metadata: deserializeMetadata(output)
996
+ });
997
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
998
+ const doc = (0, import_smithy_client.take)(data, {
999
+ Lexicon: import_smithy_client._json,
1000
+ LexiconAttributes: (_) => de_LexiconAttributes(_, context)
1001
+ });
1002
+ Object.assign(contents, doc);
1003
+ return contents;
1004
+ }, "de_GetLexiconCommand");
1005
+ var de_GetLexiconCommandError = /* @__PURE__ */ __name(async (output, context) => {
1006
+ const parsedOutput = {
1007
+ ...output,
1008
+ body: await parseErrorBody(output.body, context)
1009
+ };
1010
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1011
+ switch (errorCode) {
1012
+ case "LexiconNotFoundException":
1013
+ case "com.amazonaws.polly#LexiconNotFoundException":
1014
+ throw await de_LexiconNotFoundExceptionRes(parsedOutput, context);
1015
+ case "ServiceFailureException":
1016
+ case "com.amazonaws.polly#ServiceFailureException":
1017
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1018
+ default:
1019
+ const parsedBody = parsedOutput.body;
1020
+ return throwDefaultError({
1021
+ output,
1022
+ parsedBody,
1023
+ errorCode
1024
+ });
1025
+ }
1026
+ }, "de_GetLexiconCommandError");
1027
+ var de_GetSpeechSynthesisTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
1028
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1029
+ return de_GetSpeechSynthesisTaskCommandError(output, context);
1030
+ }
1031
+ const contents = (0, import_smithy_client.map)({
1032
+ $metadata: deserializeMetadata(output)
1033
+ });
1034
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1035
+ const doc = (0, import_smithy_client.take)(data, {
1036
+ SynthesisTask: (_) => de_SynthesisTask(_, context)
1037
+ });
1038
+ Object.assign(contents, doc);
1039
+ return contents;
1040
+ }, "de_GetSpeechSynthesisTaskCommand");
1041
+ var de_GetSpeechSynthesisTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
1042
+ const parsedOutput = {
1043
+ ...output,
1044
+ body: await parseErrorBody(output.body, context)
1045
+ };
1046
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1047
+ switch (errorCode) {
1048
+ case "InvalidTaskIdException":
1049
+ case "com.amazonaws.polly#InvalidTaskIdException":
1050
+ throw await de_InvalidTaskIdExceptionRes(parsedOutput, context);
1051
+ case "ServiceFailureException":
1052
+ case "com.amazonaws.polly#ServiceFailureException":
1053
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1054
+ case "SynthesisTaskNotFoundException":
1055
+ case "com.amazonaws.polly#SynthesisTaskNotFoundException":
1056
+ throw await de_SynthesisTaskNotFoundExceptionRes(parsedOutput, context);
1057
+ default:
1058
+ const parsedBody = parsedOutput.body;
1059
+ return throwDefaultError({
1060
+ output,
1061
+ parsedBody,
1062
+ errorCode
1063
+ });
1064
+ }
1065
+ }, "de_GetSpeechSynthesisTaskCommandError");
1066
+ var de_ListLexiconsCommand = /* @__PURE__ */ __name(async (output, context) => {
1067
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1068
+ return de_ListLexiconsCommandError(output, context);
1069
+ }
1070
+ const contents = (0, import_smithy_client.map)({
1071
+ $metadata: deserializeMetadata(output)
1072
+ });
1073
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1074
+ const doc = (0, import_smithy_client.take)(data, {
1075
+ Lexicons: (_) => de_LexiconDescriptionList(_, context),
1076
+ NextToken: import_smithy_client.expectString
1077
+ });
1078
+ Object.assign(contents, doc);
1079
+ return contents;
1080
+ }, "de_ListLexiconsCommand");
1081
+ var de_ListLexiconsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1082
+ const parsedOutput = {
1083
+ ...output,
1084
+ body: await parseErrorBody(output.body, context)
1085
+ };
1086
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1087
+ switch (errorCode) {
1088
+ case "InvalidNextTokenException":
1089
+ case "com.amazonaws.polly#InvalidNextTokenException":
1090
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1091
+ case "ServiceFailureException":
1092
+ case "com.amazonaws.polly#ServiceFailureException":
1093
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1094
+ default:
1095
+ const parsedBody = parsedOutput.body;
1096
+ return throwDefaultError({
1097
+ output,
1098
+ parsedBody,
1099
+ errorCode
1100
+ });
1101
+ }
1102
+ }, "de_ListLexiconsCommandError");
1103
+ var de_ListSpeechSynthesisTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
1104
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1105
+ return de_ListSpeechSynthesisTasksCommandError(output, context);
1106
+ }
1107
+ const contents = (0, import_smithy_client.map)({
1108
+ $metadata: deserializeMetadata(output)
1109
+ });
1110
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1111
+ const doc = (0, import_smithy_client.take)(data, {
1112
+ NextToken: import_smithy_client.expectString,
1113
+ SynthesisTasks: (_) => de_SynthesisTasks(_, context)
1114
+ });
1115
+ Object.assign(contents, doc);
1116
+ return contents;
1117
+ }, "de_ListSpeechSynthesisTasksCommand");
1118
+ var de_ListSpeechSynthesisTasksCommandError = /* @__PURE__ */ __name(async (output, context) => {
1119
+ const parsedOutput = {
1120
+ ...output,
1121
+ body: await parseErrorBody(output.body, context)
1122
+ };
1123
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1124
+ switch (errorCode) {
1125
+ case "InvalidNextTokenException":
1126
+ case "com.amazonaws.polly#InvalidNextTokenException":
1127
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1128
+ case "ServiceFailureException":
1129
+ case "com.amazonaws.polly#ServiceFailureException":
1130
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1131
+ default:
1132
+ const parsedBody = parsedOutput.body;
1133
+ return throwDefaultError({
1134
+ output,
1135
+ parsedBody,
1136
+ errorCode
1137
+ });
1138
+ }
1139
+ }, "de_ListSpeechSynthesisTasksCommandError");
1140
+ var de_PutLexiconCommand = /* @__PURE__ */ __name(async (output, context) => {
1141
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1142
+ return de_PutLexiconCommandError(output, context);
1143
+ }
1144
+ const contents = (0, import_smithy_client.map)({
1145
+ $metadata: deserializeMetadata(output)
1146
+ });
1147
+ await (0, import_smithy_client.collectBody)(output.body, context);
1148
+ return contents;
1149
+ }, "de_PutLexiconCommand");
1150
+ var de_PutLexiconCommandError = /* @__PURE__ */ __name(async (output, context) => {
1151
+ const parsedOutput = {
1152
+ ...output,
1153
+ body: await parseErrorBody(output.body, context)
1154
+ };
1155
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1156
+ switch (errorCode) {
1157
+ case "InvalidLexiconException":
1158
+ case "com.amazonaws.polly#InvalidLexiconException":
1159
+ throw await de_InvalidLexiconExceptionRes(parsedOutput, context);
1160
+ case "LexiconSizeExceededException":
1161
+ case "com.amazonaws.polly#LexiconSizeExceededException":
1162
+ throw await de_LexiconSizeExceededExceptionRes(parsedOutput, context);
1163
+ case "MaxLexemeLengthExceededException":
1164
+ case "com.amazonaws.polly#MaxLexemeLengthExceededException":
1165
+ throw await de_MaxLexemeLengthExceededExceptionRes(parsedOutput, context);
1166
+ case "MaxLexiconsNumberExceededException":
1167
+ case "com.amazonaws.polly#MaxLexiconsNumberExceededException":
1168
+ throw await de_MaxLexiconsNumberExceededExceptionRes(parsedOutput, context);
1169
+ case "ServiceFailureException":
1170
+ case "com.amazonaws.polly#ServiceFailureException":
1171
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1172
+ case "UnsupportedPlsAlphabetException":
1173
+ case "com.amazonaws.polly#UnsupportedPlsAlphabetException":
1174
+ throw await de_UnsupportedPlsAlphabetExceptionRes(parsedOutput, context);
1175
+ case "UnsupportedPlsLanguageException":
1176
+ case "com.amazonaws.polly#UnsupportedPlsLanguageException":
1177
+ throw await de_UnsupportedPlsLanguageExceptionRes(parsedOutput, context);
1178
+ default:
1179
+ const parsedBody = parsedOutput.body;
1180
+ return throwDefaultError({
1181
+ output,
1182
+ parsedBody,
1183
+ errorCode
1184
+ });
1185
+ }
1186
+ }, "de_PutLexiconCommandError");
1187
+ var de_StartSpeechSynthesisTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
1188
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1189
+ return de_StartSpeechSynthesisTaskCommandError(output, context);
1190
+ }
1191
+ const contents = (0, import_smithy_client.map)({
1192
+ $metadata: deserializeMetadata(output)
1193
+ });
1194
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1195
+ const doc = (0, import_smithy_client.take)(data, {
1196
+ SynthesisTask: (_) => de_SynthesisTask(_, context)
1197
+ });
1198
+ Object.assign(contents, doc);
1199
+ return contents;
1200
+ }, "de_StartSpeechSynthesisTaskCommand");
1201
+ var de_StartSpeechSynthesisTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
1202
+ const parsedOutput = {
1203
+ ...output,
1204
+ body: await parseErrorBody(output.body, context)
1205
+ };
1206
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1207
+ switch (errorCode) {
1208
+ case "EngineNotSupportedException":
1209
+ case "com.amazonaws.polly#EngineNotSupportedException":
1210
+ throw await de_EngineNotSupportedExceptionRes(parsedOutput, context);
1211
+ case "InvalidS3BucketException":
1212
+ case "com.amazonaws.polly#InvalidS3BucketException":
1213
+ throw await de_InvalidS3BucketExceptionRes(parsedOutput, context);
1214
+ case "InvalidS3KeyException":
1215
+ case "com.amazonaws.polly#InvalidS3KeyException":
1216
+ throw await de_InvalidS3KeyExceptionRes(parsedOutput, context);
1217
+ case "InvalidSampleRateException":
1218
+ case "com.amazonaws.polly#InvalidSampleRateException":
1219
+ throw await de_InvalidSampleRateExceptionRes(parsedOutput, context);
1220
+ case "InvalidSnsTopicArnException":
1221
+ case "com.amazonaws.polly#InvalidSnsTopicArnException":
1222
+ throw await de_InvalidSnsTopicArnExceptionRes(parsedOutput, context);
1223
+ case "InvalidSsmlException":
1224
+ case "com.amazonaws.polly#InvalidSsmlException":
1225
+ throw await de_InvalidSsmlExceptionRes(parsedOutput, context);
1226
+ case "LanguageNotSupportedException":
1227
+ case "com.amazonaws.polly#LanguageNotSupportedException":
1228
+ throw await de_LanguageNotSupportedExceptionRes(parsedOutput, context);
1229
+ case "LexiconNotFoundException":
1230
+ case "com.amazonaws.polly#LexiconNotFoundException":
1231
+ throw await de_LexiconNotFoundExceptionRes(parsedOutput, context);
1232
+ case "MarksNotSupportedForFormatException":
1233
+ case "com.amazonaws.polly#MarksNotSupportedForFormatException":
1234
+ throw await de_MarksNotSupportedForFormatExceptionRes(parsedOutput, context);
1235
+ case "ServiceFailureException":
1236
+ case "com.amazonaws.polly#ServiceFailureException":
1237
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1238
+ case "SsmlMarksNotSupportedForTextTypeException":
1239
+ case "com.amazonaws.polly#SsmlMarksNotSupportedForTextTypeException":
1240
+ throw await de_SsmlMarksNotSupportedForTextTypeExceptionRes(parsedOutput, context);
1241
+ case "TextLengthExceededException":
1242
+ case "com.amazonaws.polly#TextLengthExceededException":
1243
+ throw await de_TextLengthExceededExceptionRes(parsedOutput, context);
1244
+ default:
1245
+ const parsedBody = parsedOutput.body;
1246
+ return throwDefaultError({
1247
+ output,
1248
+ parsedBody,
1249
+ errorCode
1250
+ });
1251
+ }
1252
+ }, "de_StartSpeechSynthesisTaskCommandError");
1253
+ var de_SynthesizeSpeechCommand = /* @__PURE__ */ __name(async (output, context) => {
1254
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1255
+ return de_SynthesizeSpeechCommandError(output, context);
1256
+ }
1257
+ const contents = (0, import_smithy_client.map)({
1258
+ $metadata: deserializeMetadata(output),
1259
+ [_CT]: [, output.headers[_ct]],
1260
+ [_RC]: [() => void 0 !== output.headers[_xar], () => (0, import_smithy_client.strictParseInt32)(output.headers[_xar])]
1261
+ });
1262
+ const data = output.body;
1263
+ context.sdkStreamMixin(data);
1264
+ contents.AudioStream = data;
1265
+ return contents;
1266
+ }, "de_SynthesizeSpeechCommand");
1267
+ var de_SynthesizeSpeechCommandError = /* @__PURE__ */ __name(async (output, context) => {
1268
+ const parsedOutput = {
1269
+ ...output,
1270
+ body: await parseErrorBody(output.body, context)
1271
+ };
1272
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1273
+ switch (errorCode) {
1274
+ case "EngineNotSupportedException":
1275
+ case "com.amazonaws.polly#EngineNotSupportedException":
1276
+ throw await de_EngineNotSupportedExceptionRes(parsedOutput, context);
1277
+ case "InvalidSampleRateException":
1278
+ case "com.amazonaws.polly#InvalidSampleRateException":
1279
+ throw await de_InvalidSampleRateExceptionRes(parsedOutput, context);
1280
+ case "InvalidSsmlException":
1281
+ case "com.amazonaws.polly#InvalidSsmlException":
1282
+ throw await de_InvalidSsmlExceptionRes(parsedOutput, context);
1283
+ case "LanguageNotSupportedException":
1284
+ case "com.amazonaws.polly#LanguageNotSupportedException":
1285
+ throw await de_LanguageNotSupportedExceptionRes(parsedOutput, context);
1286
+ case "LexiconNotFoundException":
1287
+ case "com.amazonaws.polly#LexiconNotFoundException":
1288
+ throw await de_LexiconNotFoundExceptionRes(parsedOutput, context);
1289
+ case "MarksNotSupportedForFormatException":
1290
+ case "com.amazonaws.polly#MarksNotSupportedForFormatException":
1291
+ throw await de_MarksNotSupportedForFormatExceptionRes(parsedOutput, context);
1292
+ case "ServiceFailureException":
1293
+ case "com.amazonaws.polly#ServiceFailureException":
1294
+ throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1295
+ case "SsmlMarksNotSupportedForTextTypeException":
1296
+ case "com.amazonaws.polly#SsmlMarksNotSupportedForTextTypeException":
1297
+ throw await de_SsmlMarksNotSupportedForTextTypeExceptionRes(parsedOutput, context);
1298
+ case "TextLengthExceededException":
1299
+ case "com.amazonaws.polly#TextLengthExceededException":
1300
+ throw await de_TextLengthExceededExceptionRes(parsedOutput, context);
1301
+ default:
1302
+ const parsedBody = parsedOutput.body;
1303
+ return throwDefaultError({
1304
+ output,
1305
+ parsedBody,
1306
+ errorCode
1307
+ });
1308
+ }
1309
+ }, "de_SynthesizeSpeechCommandError");
1310
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(PollyServiceException);
1311
+ var de_EngineNotSupportedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1312
+ const contents = (0, import_smithy_client.map)({});
1313
+ const data = parsedOutput.body;
1314
+ const doc = (0, import_smithy_client.take)(data, {
1315
+ message: import_smithy_client.expectString
1316
+ });
1317
+ Object.assign(contents, doc);
1318
+ const exception = new EngineNotSupportedException({
1319
+ $metadata: deserializeMetadata(parsedOutput),
1320
+ ...contents
1321
+ });
1322
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1323
+ }, "de_EngineNotSupportedExceptionRes");
1324
+ var de_InvalidLexiconExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1325
+ const contents = (0, import_smithy_client.map)({});
1326
+ const data = parsedOutput.body;
1327
+ const doc = (0, import_smithy_client.take)(data, {
1328
+ message: import_smithy_client.expectString
1329
+ });
1330
+ Object.assign(contents, doc);
1331
+ const exception = new InvalidLexiconException({
1332
+ $metadata: deserializeMetadata(parsedOutput),
1333
+ ...contents
1334
+ });
1335
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1336
+ }, "de_InvalidLexiconExceptionRes");
1337
+ var de_InvalidNextTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1338
+ const contents = (0, import_smithy_client.map)({});
1339
+ const data = parsedOutput.body;
1340
+ const doc = (0, import_smithy_client.take)(data, {
1341
+ message: import_smithy_client.expectString
1342
+ });
1343
+ Object.assign(contents, doc);
1344
+ const exception = new InvalidNextTokenException({
1345
+ $metadata: deserializeMetadata(parsedOutput),
1346
+ ...contents
1347
+ });
1348
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1349
+ }, "de_InvalidNextTokenExceptionRes");
1350
+ var de_InvalidS3BucketExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1351
+ const contents = (0, import_smithy_client.map)({});
1352
+ const data = parsedOutput.body;
1353
+ const doc = (0, import_smithy_client.take)(data, {
1354
+ message: import_smithy_client.expectString
1355
+ });
1356
+ Object.assign(contents, doc);
1357
+ const exception = new InvalidS3BucketException({
1358
+ $metadata: deserializeMetadata(parsedOutput),
1359
+ ...contents
1360
+ });
1361
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1362
+ }, "de_InvalidS3BucketExceptionRes");
1363
+ var de_InvalidS3KeyExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1364
+ const contents = (0, import_smithy_client.map)({});
1365
+ const data = parsedOutput.body;
1366
+ const doc = (0, import_smithy_client.take)(data, {
1367
+ message: import_smithy_client.expectString
1368
+ });
1369
+ Object.assign(contents, doc);
1370
+ const exception = new InvalidS3KeyException({
1371
+ $metadata: deserializeMetadata(parsedOutput),
1372
+ ...contents
1373
+ });
1374
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1375
+ }, "de_InvalidS3KeyExceptionRes");
1376
+ var de_InvalidSampleRateExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1377
+ const contents = (0, import_smithy_client.map)({});
1378
+ const data = parsedOutput.body;
1379
+ const doc = (0, import_smithy_client.take)(data, {
1380
+ message: import_smithy_client.expectString
1381
+ });
1382
+ Object.assign(contents, doc);
1383
+ const exception = new InvalidSampleRateException({
1384
+ $metadata: deserializeMetadata(parsedOutput),
1385
+ ...contents
1386
+ });
1387
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1388
+ }, "de_InvalidSampleRateExceptionRes");
1389
+ var de_InvalidSnsTopicArnExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1390
+ const contents = (0, import_smithy_client.map)({});
1391
+ const data = parsedOutput.body;
1392
+ const doc = (0, import_smithy_client.take)(data, {
1393
+ message: import_smithy_client.expectString
1394
+ });
1395
+ Object.assign(contents, doc);
1396
+ const exception = new InvalidSnsTopicArnException({
1397
+ $metadata: deserializeMetadata(parsedOutput),
1398
+ ...contents
1399
+ });
1400
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1401
+ }, "de_InvalidSnsTopicArnExceptionRes");
1402
+ var de_InvalidSsmlExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1403
+ const contents = (0, import_smithy_client.map)({});
1404
+ const data = parsedOutput.body;
1405
+ const doc = (0, import_smithy_client.take)(data, {
1406
+ message: import_smithy_client.expectString
1407
+ });
1408
+ Object.assign(contents, doc);
1409
+ const exception = new InvalidSsmlException({
1410
+ $metadata: deserializeMetadata(parsedOutput),
1411
+ ...contents
1412
+ });
1413
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1414
+ }, "de_InvalidSsmlExceptionRes");
1415
+ var de_InvalidTaskIdExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1416
+ const contents = (0, import_smithy_client.map)({});
1417
+ const data = parsedOutput.body;
1418
+ const doc = (0, import_smithy_client.take)(data, {
1419
+ message: import_smithy_client.expectString
1420
+ });
1421
+ Object.assign(contents, doc);
1422
+ const exception = new InvalidTaskIdException({
1423
+ $metadata: deserializeMetadata(parsedOutput),
1424
+ ...contents
1425
+ });
1426
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1427
+ }, "de_InvalidTaskIdExceptionRes");
1428
+ var de_LanguageNotSupportedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1429
+ const contents = (0, import_smithy_client.map)({});
1430
+ const data = parsedOutput.body;
1431
+ const doc = (0, import_smithy_client.take)(data, {
1432
+ message: import_smithy_client.expectString
1433
+ });
1434
+ Object.assign(contents, doc);
1435
+ const exception = new LanguageNotSupportedException({
1436
+ $metadata: deserializeMetadata(parsedOutput),
1437
+ ...contents
1438
+ });
1439
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1440
+ }, "de_LanguageNotSupportedExceptionRes");
1441
+ var de_LexiconNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1442
+ const contents = (0, import_smithy_client.map)({});
1443
+ const data = parsedOutput.body;
1444
+ const doc = (0, import_smithy_client.take)(data, {
1445
+ message: import_smithy_client.expectString
1446
+ });
1447
+ Object.assign(contents, doc);
1448
+ const exception = new LexiconNotFoundException({
1449
+ $metadata: deserializeMetadata(parsedOutput),
1450
+ ...contents
1451
+ });
1452
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1453
+ }, "de_LexiconNotFoundExceptionRes");
1454
+ var de_LexiconSizeExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1455
+ const contents = (0, import_smithy_client.map)({});
1456
+ const data = parsedOutput.body;
1457
+ const doc = (0, import_smithy_client.take)(data, {
1458
+ message: import_smithy_client.expectString
1459
+ });
1460
+ Object.assign(contents, doc);
1461
+ const exception = new LexiconSizeExceededException({
1462
+ $metadata: deserializeMetadata(parsedOutput),
1463
+ ...contents
1464
+ });
1465
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1466
+ }, "de_LexiconSizeExceededExceptionRes");
1467
+ var de_MarksNotSupportedForFormatExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1468
+ const contents = (0, import_smithy_client.map)({});
1469
+ const data = parsedOutput.body;
1470
+ const doc = (0, import_smithy_client.take)(data, {
1471
+ message: import_smithy_client.expectString
1472
+ });
1473
+ Object.assign(contents, doc);
1474
+ const exception = new MarksNotSupportedForFormatException({
1475
+ $metadata: deserializeMetadata(parsedOutput),
1476
+ ...contents
1477
+ });
1478
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1479
+ }, "de_MarksNotSupportedForFormatExceptionRes");
1480
+ var de_MaxLexemeLengthExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1481
+ const contents = (0, import_smithy_client.map)({});
1482
+ const data = parsedOutput.body;
1483
+ const doc = (0, import_smithy_client.take)(data, {
1484
+ message: import_smithy_client.expectString
1485
+ });
1486
+ Object.assign(contents, doc);
1487
+ const exception = new MaxLexemeLengthExceededException({
1488
+ $metadata: deserializeMetadata(parsedOutput),
1489
+ ...contents
1490
+ });
1491
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1492
+ }, "de_MaxLexemeLengthExceededExceptionRes");
1493
+ var de_MaxLexiconsNumberExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1494
+ const contents = (0, import_smithy_client.map)({});
1495
+ const data = parsedOutput.body;
1496
+ const doc = (0, import_smithy_client.take)(data, {
1497
+ message: import_smithy_client.expectString
1498
+ });
1499
+ Object.assign(contents, doc);
1500
+ const exception = new MaxLexiconsNumberExceededException({
1501
+ $metadata: deserializeMetadata(parsedOutput),
1502
+ ...contents
1503
+ });
1504
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1505
+ }, "de_MaxLexiconsNumberExceededExceptionRes");
1506
+ var de_ServiceFailureExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1507
+ const contents = (0, import_smithy_client.map)({});
1508
+ const data = parsedOutput.body;
1509
+ const doc = (0, import_smithy_client.take)(data, {
1510
+ message: import_smithy_client.expectString
1511
+ });
1512
+ Object.assign(contents, doc);
1513
+ const exception = new ServiceFailureException({
1514
+ $metadata: deserializeMetadata(parsedOutput),
1515
+ ...contents
1516
+ });
1517
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1518
+ }, "de_ServiceFailureExceptionRes");
1519
+ var de_SsmlMarksNotSupportedForTextTypeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1520
+ const contents = (0, import_smithy_client.map)({});
1521
+ const data = parsedOutput.body;
1522
+ const doc = (0, import_smithy_client.take)(data, {
1523
+ message: import_smithy_client.expectString
1524
+ });
1525
+ Object.assign(contents, doc);
1526
+ const exception = new SsmlMarksNotSupportedForTextTypeException({
1527
+ $metadata: deserializeMetadata(parsedOutput),
1528
+ ...contents
1529
+ });
1530
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1531
+ }, "de_SsmlMarksNotSupportedForTextTypeExceptionRes");
1532
+ var de_SynthesisTaskNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1533
+ const contents = (0, import_smithy_client.map)({});
1534
+ const data = parsedOutput.body;
1535
+ const doc = (0, import_smithy_client.take)(data, {
1536
+ message: import_smithy_client.expectString
1537
+ });
1538
+ Object.assign(contents, doc);
1539
+ const exception = new SynthesisTaskNotFoundException({
1540
+ $metadata: deserializeMetadata(parsedOutput),
1541
+ ...contents
1542
+ });
1543
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1544
+ }, "de_SynthesisTaskNotFoundExceptionRes");
1545
+ var de_TextLengthExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1546
+ const contents = (0, import_smithy_client.map)({});
1547
+ const data = parsedOutput.body;
1548
+ const doc = (0, import_smithy_client.take)(data, {
1549
+ message: import_smithy_client.expectString
1550
+ });
1551
+ Object.assign(contents, doc);
1552
+ const exception = new TextLengthExceededException({
1553
+ $metadata: deserializeMetadata(parsedOutput),
1554
+ ...contents
1555
+ });
1556
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1557
+ }, "de_TextLengthExceededExceptionRes");
1558
+ var de_UnsupportedPlsAlphabetExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1559
+ const contents = (0, import_smithy_client.map)({});
1560
+ const data = parsedOutput.body;
1561
+ const doc = (0, import_smithy_client.take)(data, {
1562
+ message: import_smithy_client.expectString
1563
+ });
1564
+ Object.assign(contents, doc);
1565
+ const exception = new UnsupportedPlsAlphabetException({
1566
+ $metadata: deserializeMetadata(parsedOutput),
1567
+ ...contents
1568
+ });
1569
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1570
+ }, "de_UnsupportedPlsAlphabetExceptionRes");
1571
+ var de_UnsupportedPlsLanguageExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1572
+ const contents = (0, import_smithy_client.map)({});
1573
+ const data = parsedOutput.body;
1574
+ const doc = (0, import_smithy_client.take)(data, {
1575
+ message: import_smithy_client.expectString
1576
+ });
1577
+ Object.assign(contents, doc);
1578
+ const exception = new UnsupportedPlsLanguageException({
1579
+ $metadata: deserializeMetadata(parsedOutput),
1580
+ ...contents
1581
+ });
1582
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1583
+ }, "de_UnsupportedPlsLanguageExceptionRes");
1584
+ var de_LexiconAttributes = /* @__PURE__ */ __name((output, context) => {
1585
+ return (0, import_smithy_client.take)(output, {
1586
+ Alphabet: import_smithy_client.expectString,
1587
+ LanguageCode: import_smithy_client.expectString,
1588
+ LastModified: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1589
+ LexemesCount: import_smithy_client.expectInt32,
1590
+ LexiconArn: import_smithy_client.expectString,
1591
+ Size: import_smithy_client.expectInt32
1592
+ });
1593
+ }, "de_LexiconAttributes");
1594
+ var de_LexiconDescription = /* @__PURE__ */ __name((output, context) => {
1595
+ return (0, import_smithy_client.take)(output, {
1596
+ Attributes: (_) => de_LexiconAttributes(_, context),
1597
+ Name: import_smithy_client.expectString
1598
+ });
1599
+ }, "de_LexiconDescription");
1600
+ var de_LexiconDescriptionList = /* @__PURE__ */ __name((output, context) => {
1601
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1602
+ return de_LexiconDescription(entry, context);
1603
+ });
1604
+ return retVal;
1605
+ }, "de_LexiconDescriptionList");
1606
+ var de_SynthesisTask = /* @__PURE__ */ __name((output, context) => {
1607
+ return (0, import_smithy_client.take)(output, {
1608
+ CreationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1609
+ Engine: import_smithy_client.expectString,
1610
+ LanguageCode: import_smithy_client.expectString,
1611
+ LexiconNames: import_smithy_client._json,
1612
+ OutputFormat: import_smithy_client.expectString,
1613
+ OutputUri: import_smithy_client.expectString,
1614
+ RequestCharacters: import_smithy_client.expectInt32,
1615
+ SampleRate: import_smithy_client.expectString,
1616
+ SnsTopicArn: import_smithy_client.expectString,
1617
+ SpeechMarkTypes: import_smithy_client._json,
1618
+ TaskId: import_smithy_client.expectString,
1619
+ TaskStatus: import_smithy_client.expectString,
1620
+ TaskStatusReason: import_smithy_client.expectString,
1621
+ TextType: import_smithy_client.expectString,
1622
+ VoiceId: import_smithy_client.expectString
1623
+ });
1624
+ }, "de_SynthesisTask");
1625
+ var de_SynthesisTasks = /* @__PURE__ */ __name((output, context) => {
1626
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1627
+ return de_SynthesisTask(entry, context);
1628
+ });
1629
+ return retVal;
1630
+ }, "de_SynthesisTasks");
1631
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1632
+ httpStatusCode: output.statusCode,
1633
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1634
+ extendedRequestId: output.headers["x-amz-id-2"],
1635
+ cfId: output.headers["x-amz-cf-id"]
1636
+ }), "deserializeMetadata");
1637
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
1638
+ var _CT = "ContentType";
1639
+ var _E = "Engine";
1640
+ var _IALC = "IncludeAdditionalLanguageCodes";
1641
+ var _LC = "LanguageCode";
1642
+ var _MR = "MaxResults";
1643
+ var _NT = "NextToken";
1644
+ var _RC = "RequestCharacters";
1645
+ var _S = "Status";
1646
+ var _ct = "content-type";
1647
+ var _xar = "x-amzn-requestcharacters";
1648
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1649
+ if (encoded.length) {
1650
+ return JSON.parse(encoded);
1651
+ }
1652
+ return {};
1653
+ }), "parseBody");
1654
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
1655
+ const value = await parseBody(errorBody, context);
1656
+ value.message = value.message ?? value.Message;
1657
+ return value;
1658
+ }, "parseErrorBody");
1659
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
1660
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
1661
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
1662
+ let cleanValue = rawValue;
1663
+ if (typeof cleanValue === "number") {
1664
+ cleanValue = cleanValue.toString();
1665
+ }
1666
+ if (cleanValue.indexOf(",") >= 0) {
1667
+ cleanValue = cleanValue.split(",")[0];
1668
+ }
1669
+ if (cleanValue.indexOf(":") >= 0) {
1670
+ cleanValue = cleanValue.split(":")[0];
1671
+ }
1672
+ if (cleanValue.indexOf("#") >= 0) {
1673
+ cleanValue = cleanValue.split("#")[1];
1674
+ }
1675
+ return cleanValue;
1676
+ }, "sanitizeErrorCode");
1677
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
1678
+ if (headerKey !== void 0) {
1679
+ return sanitizeErrorCode(output.headers[headerKey]);
1680
+ }
1681
+ if (data.code !== void 0) {
1682
+ return sanitizeErrorCode(data.code);
1683
+ }
1684
+ if (data["__type"] !== void 0) {
1685
+ return sanitizeErrorCode(data["__type"]);
1686
+ }
1687
+ }, "loadRestJsonErrorCode");
1688
+
1689
+ // src/commands/DeleteLexiconCommand.ts
1690
+ var _DeleteLexiconCommand = class _DeleteLexiconCommand extends import_smithy_client.Command.classBuilder().ep({
1691
+ ...commonParams
1692
+ }).m(function(Command, cs, config, o) {
1693
+ return [
1694
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1695
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1696
+ ];
1697
+ }).s("Parrot_v1", "DeleteLexicon", {}).n("PollyClient", "DeleteLexiconCommand").f(void 0, void 0).ser(se_DeleteLexiconCommand).de(de_DeleteLexiconCommand).build() {
1698
+ };
1699
+ __name(_DeleteLexiconCommand, "DeleteLexiconCommand");
1700
+ var DeleteLexiconCommand = _DeleteLexiconCommand;
1701
+
1702
+ // src/commands/DescribeVoicesCommand.ts
1703
+
1704
+
1705
+
1706
+
1707
+ var _DescribeVoicesCommand = class _DescribeVoicesCommand extends import_smithy_client.Command.classBuilder().ep({
1708
+ ...commonParams
1709
+ }).m(function(Command, cs, config, o) {
1710
+ return [
1711
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1712
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1713
+ ];
1714
+ }).s("Parrot_v1", "DescribeVoices", {}).n("PollyClient", "DescribeVoicesCommand").f(void 0, void 0).ser(se_DescribeVoicesCommand).de(de_DescribeVoicesCommand).build() {
1715
+ };
1716
+ __name(_DescribeVoicesCommand, "DescribeVoicesCommand");
1717
+ var DescribeVoicesCommand = _DescribeVoicesCommand;
1718
+
1719
+ // src/commands/GetLexiconCommand.ts
1720
+
1721
+
1722
+
1723
+
1724
+ var _GetLexiconCommand = class _GetLexiconCommand extends import_smithy_client.Command.classBuilder().ep({
1725
+ ...commonParams
1726
+ }).m(function(Command, cs, config, o) {
1727
+ return [
1728
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1729
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1730
+ ];
1731
+ }).s("Parrot_v1", "GetLexicon", {}).n("PollyClient", "GetLexiconCommand").f(void 0, GetLexiconOutputFilterSensitiveLog).ser(se_GetLexiconCommand).de(de_GetLexiconCommand).build() {
1732
+ };
1733
+ __name(_GetLexiconCommand, "GetLexiconCommand");
1734
+ var GetLexiconCommand = _GetLexiconCommand;
1735
+
1736
+ // src/commands/GetSpeechSynthesisTaskCommand.ts
1737
+
1738
+
1739
+
1740
+
1741
+ var _GetSpeechSynthesisTaskCommand = class _GetSpeechSynthesisTaskCommand extends import_smithy_client.Command.classBuilder().ep({
1742
+ ...commonParams
1743
+ }).m(function(Command, cs, config, o) {
1744
+ return [
1745
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1746
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1747
+ ];
1748
+ }).s("Parrot_v1", "GetSpeechSynthesisTask", {}).n("PollyClient", "GetSpeechSynthesisTaskCommand").f(void 0, void 0).ser(se_GetSpeechSynthesisTaskCommand).de(de_GetSpeechSynthesisTaskCommand).build() {
1749
+ };
1750
+ __name(_GetSpeechSynthesisTaskCommand, "GetSpeechSynthesisTaskCommand");
1751
+ var GetSpeechSynthesisTaskCommand = _GetSpeechSynthesisTaskCommand;
1752
+
1753
+ // src/commands/ListLexiconsCommand.ts
1754
+
1755
+
1756
+
1757
+
1758
+ var _ListLexiconsCommand = class _ListLexiconsCommand extends import_smithy_client.Command.classBuilder().ep({
1759
+ ...commonParams
1760
+ }).m(function(Command, cs, config, o) {
1761
+ return [
1762
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1763
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1764
+ ];
1765
+ }).s("Parrot_v1", "ListLexicons", {}).n("PollyClient", "ListLexiconsCommand").f(void 0, void 0).ser(se_ListLexiconsCommand).de(de_ListLexiconsCommand).build() {
1766
+ };
1767
+ __name(_ListLexiconsCommand, "ListLexiconsCommand");
1768
+ var ListLexiconsCommand = _ListLexiconsCommand;
1769
+
1770
+ // src/commands/ListSpeechSynthesisTasksCommand.ts
1771
+
1772
+
1773
+
1774
+
1775
+ var _ListSpeechSynthesisTasksCommand = class _ListSpeechSynthesisTasksCommand extends import_smithy_client.Command.classBuilder().ep({
1776
+ ...commonParams
1777
+ }).m(function(Command, cs, config, o) {
1778
+ return [
1779
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1780
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1781
+ ];
1782
+ }).s("Parrot_v1", "ListSpeechSynthesisTasks", {}).n("PollyClient", "ListSpeechSynthesisTasksCommand").f(void 0, void 0).ser(se_ListSpeechSynthesisTasksCommand).de(de_ListSpeechSynthesisTasksCommand).build() {
1783
+ };
1784
+ __name(_ListSpeechSynthesisTasksCommand, "ListSpeechSynthesisTasksCommand");
1785
+ var ListSpeechSynthesisTasksCommand = _ListSpeechSynthesisTasksCommand;
1786
+
1787
+ // src/commands/PutLexiconCommand.ts
1788
+
1789
+
1790
+
1791
+
1792
+ var _PutLexiconCommand = class _PutLexiconCommand extends import_smithy_client.Command.classBuilder().ep({
1793
+ ...commonParams
1794
+ }).m(function(Command, cs, config, o) {
1795
+ return [
1796
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1797
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1798
+ ];
1799
+ }).s("Parrot_v1", "PutLexicon", {}).n("PollyClient", "PutLexiconCommand").f(PutLexiconInputFilterSensitiveLog, void 0).ser(se_PutLexiconCommand).de(de_PutLexiconCommand).build() {
1800
+ };
1801
+ __name(_PutLexiconCommand, "PutLexiconCommand");
1802
+ var PutLexiconCommand = _PutLexiconCommand;
1803
+
1804
+ // src/commands/StartSpeechSynthesisTaskCommand.ts
1805
+
1806
+
1807
+
1808
+
1809
+ var _StartSpeechSynthesisTaskCommand = class _StartSpeechSynthesisTaskCommand extends import_smithy_client.Command.classBuilder().ep({
1810
+ ...commonParams
1811
+ }).m(function(Command, cs, config, o) {
1812
+ return [
1813
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1814
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1815
+ ];
1816
+ }).s("Parrot_v1", "StartSpeechSynthesisTask", {}).n("PollyClient", "StartSpeechSynthesisTaskCommand").f(void 0, void 0).ser(se_StartSpeechSynthesisTaskCommand).de(de_StartSpeechSynthesisTaskCommand).build() {
1817
+ };
1818
+ __name(_StartSpeechSynthesisTaskCommand, "StartSpeechSynthesisTaskCommand");
1819
+ var StartSpeechSynthesisTaskCommand = _StartSpeechSynthesisTaskCommand;
1820
+
1821
+ // src/commands/SynthesizeSpeechCommand.ts
1822
+
1823
+
1824
+
1825
+
1826
+ var _SynthesizeSpeechCommand = class _SynthesizeSpeechCommand extends import_smithy_client.Command.classBuilder().ep({
1827
+ ...commonParams
1828
+ }).m(function(Command, cs, config, o) {
1829
+ return [
1830
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1831
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1832
+ ];
1833
+ }).s("Parrot_v1", "SynthesizeSpeech", {}).n("PollyClient", "SynthesizeSpeechCommand").f(void 0, SynthesizeSpeechOutputFilterSensitiveLog).ser(se_SynthesizeSpeechCommand).de(de_SynthesizeSpeechCommand).build() {
1834
+ };
1835
+ __name(_SynthesizeSpeechCommand, "SynthesizeSpeechCommand");
1836
+ var SynthesizeSpeechCommand = _SynthesizeSpeechCommand;
1837
+
1838
+ // src/Polly.ts
1839
+ var commands = {
1840
+ DeleteLexiconCommand,
1841
+ DescribeVoicesCommand,
1842
+ GetLexiconCommand,
1843
+ GetSpeechSynthesisTaskCommand,
1844
+ ListLexiconsCommand,
1845
+ ListSpeechSynthesisTasksCommand,
1846
+ PutLexiconCommand,
1847
+ StartSpeechSynthesisTaskCommand,
1848
+ SynthesizeSpeechCommand
1849
+ };
1850
+ var _Polly = class _Polly extends PollyClient {
1851
+ };
1852
+ __name(_Polly, "Polly");
1853
+ var Polly = _Polly;
1854
+ (0, import_smithy_client.createAggregatedClient)(commands, Polly);
1855
+
1856
+ // src/pagination/ListSpeechSynthesisTasksPaginator.ts
1857
+
1858
+ var paginateListSpeechSynthesisTasks = (0, import_core.createPaginator)(PollyClient, ListSpeechSynthesisTasksCommand, "NextToken", "NextToken", "MaxResults");
1859
+
1860
+ // src/index.ts
1861
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
1862
+ // Annotate the CommonJS export names for ESM import in node:
1863
+ 0 && (module.exports = {
1864
+ DeleteLexiconCommand,
1865
+ DescribeVoicesCommand,
1866
+ Engine,
1867
+ EngineNotSupportedException,
1868
+ Gender,
1869
+ GetLexiconCommand,
1870
+ GetLexiconOutputFilterSensitiveLog,
1871
+ GetSpeechSynthesisTaskCommand,
1872
+ InvalidLexiconException,
1873
+ InvalidNextTokenException,
1874
+ InvalidS3BucketException,
1875
+ InvalidS3KeyException,
1876
+ InvalidSampleRateException,
1877
+ InvalidSnsTopicArnException,
1878
+ InvalidSsmlException,
1879
+ InvalidTaskIdException,
1880
+ LanguageCode,
1881
+ LanguageNotSupportedException,
1882
+ LexiconFilterSensitiveLog,
1883
+ LexiconNotFoundException,
1884
+ LexiconSizeExceededException,
1885
+ ListLexiconsCommand,
1886
+ ListSpeechSynthesisTasksCommand,
1887
+ MarksNotSupportedForFormatException,
1888
+ MaxLexemeLengthExceededException,
1889
+ MaxLexiconsNumberExceededException,
1890
+ OutputFormat,
1891
+ Polly,
1892
+ PollyClient,
1893
+ PollyServiceException,
1894
+ PutLexiconCommand,
1895
+ PutLexiconInputFilterSensitiveLog,
1896
+ ServiceFailureException,
1897
+ SpeechMarkType,
1898
+ SsmlMarksNotSupportedForTextTypeException,
1899
+ StartSpeechSynthesisTaskCommand,
1900
+ SynthesisTaskNotFoundException,
1901
+ SynthesizeSpeechCommand,
1902
+ SynthesizeSpeechOutputFilterSensitiveLog,
1903
+ TaskStatus,
1904
+ TextLengthExceededException,
1905
+ TextType,
1906
+ UnsupportedPlsAlphabetException,
1907
+ UnsupportedPlsLanguageException,
1908
+ VoiceId,
1909
+ __Client,
1910
+ paginateListSpeechSynthesisTasks
1911
+ });