@aws-sdk/client-polly 3.306.0 → 3.309.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/DeleteLexiconCommand.js +2 -2
- package/dist-cjs/commands/DescribeVoicesCommand.js +2 -2
- package/dist-cjs/commands/GetLexiconCommand.js +2 -2
- package/dist-cjs/commands/GetSpeechSynthesisTaskCommand.js +2 -2
- package/dist-cjs/commands/ListLexiconsCommand.js +2 -2
- package/dist-cjs/commands/ListSpeechSynthesisTasksCommand.js +2 -2
- package/dist-cjs/commands/PutLexiconCommand.js +2 -2
- package/dist-cjs/commands/StartSpeechSynthesisTaskCommand.js +2 -2
- package/dist-cjs/commands/SynthesizeSpeechCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +150 -164
- package/dist-es/commands/DeleteLexiconCommand.js +3 -3
- package/dist-es/commands/DescribeVoicesCommand.js +3 -3
- package/dist-es/commands/GetLexiconCommand.js +3 -3
- package/dist-es/commands/GetSpeechSynthesisTaskCommand.js +3 -3
- package/dist-es/commands/ListLexiconsCommand.js +3 -3
- package/dist-es/commands/ListSpeechSynthesisTasksCommand.js +3 -3
- package/dist-es/commands/PutLexiconCommand.js +3 -3
- package/dist-es/commands/StartSpeechSynthesisTaskCommand.js +3 -3
- package/dist-es/commands/SynthesizeSpeechCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +131 -145
- package/dist-types/protocols/Aws_restJson1.d.ts +72 -18
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +18 -18
- package/package.json +6 -6
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { EngineNotSupportedException, InvalidLexiconException, InvalidNextTokenException, InvalidS3BucketException, InvalidS3KeyException, InvalidSampleRateException, InvalidSnsTopicArnException, InvalidSsmlException, InvalidTaskIdException, LanguageNotSupportedException, LexiconNotFoundException, LexiconSizeExceededException, MarksNotSupportedForFormatException, MaxLexemeLengthExceededException, MaxLexiconsNumberExceededException, ServiceFailureException, SsmlMarksNotSupportedForTextTypeException, SynthesisTaskNotFoundException, TextLengthExceededException, UnsupportedPlsAlphabetException, UnsupportedPlsLanguageException, } from "../models/models_0";
|
|
4
4
|
import { PollyServiceException as __BaseException } from "../models/PollyServiceException";
|
|
5
|
-
export const
|
|
5
|
+
export const se_DeleteLexiconCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = {};
|
|
8
8
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/lexicons/{Name}";
|
|
@@ -18,7 +18,7 @@ export const serializeAws_restJson1DeleteLexiconCommand = async (input, context)
|
|
|
18
18
|
body,
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
-
export const
|
|
21
|
+
export const se_DescribeVoicesCommand = async (input, context) => {
|
|
22
22
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
23
23
|
const headers = {};
|
|
24
24
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/voices";
|
|
@@ -43,7 +43,7 @@ export const serializeAws_restJson1DescribeVoicesCommand = async (input, context
|
|
|
43
43
|
body,
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
|
-
export const
|
|
46
|
+
export const se_GetLexiconCommand = async (input, context) => {
|
|
47
47
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
48
48
|
const headers = {};
|
|
49
49
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/lexicons/{Name}";
|
|
@@ -59,7 +59,7 @@ export const serializeAws_restJson1GetLexiconCommand = async (input, context) =>
|
|
|
59
59
|
body,
|
|
60
60
|
});
|
|
61
61
|
};
|
|
62
|
-
export const
|
|
62
|
+
export const se_GetSpeechSynthesisTaskCommand = async (input, context) => {
|
|
63
63
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
64
64
|
const headers = {};
|
|
65
65
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/synthesisTasks/{TaskId}";
|
|
@@ -75,7 +75,7 @@ export const serializeAws_restJson1GetSpeechSynthesisTaskCommand = async (input,
|
|
|
75
75
|
body,
|
|
76
76
|
});
|
|
77
77
|
};
|
|
78
|
-
export const
|
|
78
|
+
export const se_ListLexiconsCommand = async (input, context) => {
|
|
79
79
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
80
80
|
const headers = {};
|
|
81
81
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/lexicons";
|
|
@@ -94,7 +94,7 @@ export const serializeAws_restJson1ListLexiconsCommand = async (input, context)
|
|
|
94
94
|
body,
|
|
95
95
|
});
|
|
96
96
|
};
|
|
97
|
-
export const
|
|
97
|
+
export const se_ListSpeechSynthesisTasksCommand = async (input, context) => {
|
|
98
98
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
99
99
|
const headers = {};
|
|
100
100
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/synthesisTasks";
|
|
@@ -115,7 +115,7 @@ export const serializeAws_restJson1ListSpeechSynthesisTasksCommand = async (inpu
|
|
|
115
115
|
body,
|
|
116
116
|
});
|
|
117
117
|
};
|
|
118
|
-
export const
|
|
118
|
+
export const se_PutLexiconCommand = async (input, context) => {
|
|
119
119
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
120
120
|
const headers = {
|
|
121
121
|
"content-type": "application/json",
|
|
@@ -136,7 +136,7 @@ export const serializeAws_restJson1PutLexiconCommand = async (input, context) =>
|
|
|
136
136
|
body,
|
|
137
137
|
});
|
|
138
138
|
};
|
|
139
|
-
export const
|
|
139
|
+
export const se_StartSpeechSynthesisTaskCommand = async (input, context) => {
|
|
140
140
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
141
141
|
const headers = {
|
|
142
142
|
"content-type": "application/json",
|
|
@@ -146,17 +146,13 @@ export const serializeAws_restJson1StartSpeechSynthesisTaskCommand = async (inpu
|
|
|
146
146
|
body = JSON.stringify({
|
|
147
147
|
...(input.Engine != null && { Engine: input.Engine }),
|
|
148
148
|
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
149
|
-
...(input.LexiconNames != null && {
|
|
150
|
-
LexiconNames: serializeAws_restJson1LexiconNameList(input.LexiconNames, context),
|
|
151
|
-
}),
|
|
149
|
+
...(input.LexiconNames != null && { LexiconNames: se_LexiconNameList(input.LexiconNames, context) }),
|
|
152
150
|
...(input.OutputFormat != null && { OutputFormat: input.OutputFormat }),
|
|
153
151
|
...(input.OutputS3BucketName != null && { OutputS3BucketName: input.OutputS3BucketName }),
|
|
154
152
|
...(input.OutputS3KeyPrefix != null && { OutputS3KeyPrefix: input.OutputS3KeyPrefix }),
|
|
155
153
|
...(input.SampleRate != null && { SampleRate: input.SampleRate }),
|
|
156
154
|
...(input.SnsTopicArn != null && { SnsTopicArn: input.SnsTopicArn }),
|
|
157
|
-
...(input.SpeechMarkTypes != null && {
|
|
158
|
-
SpeechMarkTypes: serializeAws_restJson1SpeechMarkTypeList(input.SpeechMarkTypes, context),
|
|
159
|
-
}),
|
|
155
|
+
...(input.SpeechMarkTypes != null && { SpeechMarkTypes: se_SpeechMarkTypeList(input.SpeechMarkTypes, context) }),
|
|
160
156
|
...(input.Text != null && { Text: input.Text }),
|
|
161
157
|
...(input.TextType != null && { TextType: input.TextType }),
|
|
162
158
|
...(input.VoiceId != null && { VoiceId: input.VoiceId }),
|
|
@@ -171,7 +167,7 @@ export const serializeAws_restJson1StartSpeechSynthesisTaskCommand = async (inpu
|
|
|
171
167
|
body,
|
|
172
168
|
});
|
|
173
169
|
};
|
|
174
|
-
export const
|
|
170
|
+
export const se_SynthesizeSpeechCommand = async (input, context) => {
|
|
175
171
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
176
172
|
const headers = {
|
|
177
173
|
"content-type": "application/json",
|
|
@@ -181,14 +177,10 @@ export const serializeAws_restJson1SynthesizeSpeechCommand = async (input, conte
|
|
|
181
177
|
body = JSON.stringify({
|
|
182
178
|
...(input.Engine != null && { Engine: input.Engine }),
|
|
183
179
|
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
184
|
-
...(input.LexiconNames != null && {
|
|
185
|
-
LexiconNames: serializeAws_restJson1LexiconNameList(input.LexiconNames, context),
|
|
186
|
-
}),
|
|
180
|
+
...(input.LexiconNames != null && { LexiconNames: se_LexiconNameList(input.LexiconNames, context) }),
|
|
187
181
|
...(input.OutputFormat != null && { OutputFormat: input.OutputFormat }),
|
|
188
182
|
...(input.SampleRate != null && { SampleRate: input.SampleRate }),
|
|
189
|
-
...(input.SpeechMarkTypes != null && {
|
|
190
|
-
SpeechMarkTypes: serializeAws_restJson1SpeechMarkTypeList(input.SpeechMarkTypes, context),
|
|
191
|
-
}),
|
|
183
|
+
...(input.SpeechMarkTypes != null && { SpeechMarkTypes: se_SpeechMarkTypeList(input.SpeechMarkTypes, context) }),
|
|
192
184
|
...(input.Text != null && { Text: input.Text }),
|
|
193
185
|
...(input.TextType != null && { TextType: input.TextType }),
|
|
194
186
|
...(input.VoiceId != null && { VoiceId: input.VoiceId }),
|
|
@@ -203,9 +195,9 @@ export const serializeAws_restJson1SynthesizeSpeechCommand = async (input, conte
|
|
|
203
195
|
body,
|
|
204
196
|
});
|
|
205
197
|
};
|
|
206
|
-
export const
|
|
198
|
+
export const de_DeleteLexiconCommand = async (output, context) => {
|
|
207
199
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
208
|
-
return
|
|
200
|
+
return de_DeleteLexiconCommandError(output, context);
|
|
209
201
|
}
|
|
210
202
|
const contents = map({
|
|
211
203
|
$metadata: deserializeMetadata(output),
|
|
@@ -213,7 +205,7 @@ export const deserializeAws_restJson1DeleteLexiconCommand = async (output, conte
|
|
|
213
205
|
await collectBody(output.body, context);
|
|
214
206
|
return contents;
|
|
215
207
|
};
|
|
216
|
-
const
|
|
208
|
+
const de_DeleteLexiconCommandError = async (output, context) => {
|
|
217
209
|
const parsedOutput = {
|
|
218
210
|
...output,
|
|
219
211
|
body: await parseErrorBody(output.body, context),
|
|
@@ -222,10 +214,10 @@ const deserializeAws_restJson1DeleteLexiconCommandError = async (output, context
|
|
|
222
214
|
switch (errorCode) {
|
|
223
215
|
case "LexiconNotFoundException":
|
|
224
216
|
case "com.amazonaws.polly#LexiconNotFoundException":
|
|
225
|
-
throw await
|
|
217
|
+
throw await de_LexiconNotFoundExceptionRes(parsedOutput, context);
|
|
226
218
|
case "ServiceFailureException":
|
|
227
219
|
case "com.amazonaws.polly#ServiceFailureException":
|
|
228
|
-
throw await
|
|
220
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
229
221
|
default:
|
|
230
222
|
const parsedBody = parsedOutput.body;
|
|
231
223
|
throwDefaultError({
|
|
@@ -236,9 +228,9 @@ const deserializeAws_restJson1DeleteLexiconCommandError = async (output, context
|
|
|
236
228
|
});
|
|
237
229
|
}
|
|
238
230
|
};
|
|
239
|
-
export const
|
|
231
|
+
export const de_DescribeVoicesCommand = async (output, context) => {
|
|
240
232
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
241
|
-
return
|
|
233
|
+
return de_DescribeVoicesCommandError(output, context);
|
|
242
234
|
}
|
|
243
235
|
const contents = map({
|
|
244
236
|
$metadata: deserializeMetadata(output),
|
|
@@ -248,11 +240,11 @@ export const deserializeAws_restJson1DescribeVoicesCommand = async (output, cont
|
|
|
248
240
|
contents.NextToken = __expectString(data.NextToken);
|
|
249
241
|
}
|
|
250
242
|
if (data.Voices != null) {
|
|
251
|
-
contents.Voices =
|
|
243
|
+
contents.Voices = de_VoiceList(data.Voices, context);
|
|
252
244
|
}
|
|
253
245
|
return contents;
|
|
254
246
|
};
|
|
255
|
-
const
|
|
247
|
+
const de_DescribeVoicesCommandError = async (output, context) => {
|
|
256
248
|
const parsedOutput = {
|
|
257
249
|
...output,
|
|
258
250
|
body: await parseErrorBody(output.body, context),
|
|
@@ -261,10 +253,10 @@ const deserializeAws_restJson1DescribeVoicesCommandError = async (output, contex
|
|
|
261
253
|
switch (errorCode) {
|
|
262
254
|
case "InvalidNextTokenException":
|
|
263
255
|
case "com.amazonaws.polly#InvalidNextTokenException":
|
|
264
|
-
throw await
|
|
256
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
265
257
|
case "ServiceFailureException":
|
|
266
258
|
case "com.amazonaws.polly#ServiceFailureException":
|
|
267
|
-
throw await
|
|
259
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
268
260
|
default:
|
|
269
261
|
const parsedBody = parsedOutput.body;
|
|
270
262
|
throwDefaultError({
|
|
@@ -275,23 +267,23 @@ const deserializeAws_restJson1DescribeVoicesCommandError = async (output, contex
|
|
|
275
267
|
});
|
|
276
268
|
}
|
|
277
269
|
};
|
|
278
|
-
export const
|
|
270
|
+
export const de_GetLexiconCommand = async (output, context) => {
|
|
279
271
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
280
|
-
return
|
|
272
|
+
return de_GetLexiconCommandError(output, context);
|
|
281
273
|
}
|
|
282
274
|
const contents = map({
|
|
283
275
|
$metadata: deserializeMetadata(output),
|
|
284
276
|
});
|
|
285
277
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
286
278
|
if (data.Lexicon != null) {
|
|
287
|
-
contents.Lexicon =
|
|
279
|
+
contents.Lexicon = de_Lexicon(data.Lexicon, context);
|
|
288
280
|
}
|
|
289
281
|
if (data.LexiconAttributes != null) {
|
|
290
|
-
contents.LexiconAttributes =
|
|
282
|
+
contents.LexiconAttributes = de_LexiconAttributes(data.LexiconAttributes, context);
|
|
291
283
|
}
|
|
292
284
|
return contents;
|
|
293
285
|
};
|
|
294
|
-
const
|
|
286
|
+
const de_GetLexiconCommandError = async (output, context) => {
|
|
295
287
|
const parsedOutput = {
|
|
296
288
|
...output,
|
|
297
289
|
body: await parseErrorBody(output.body, context),
|
|
@@ -300,10 +292,10 @@ const deserializeAws_restJson1GetLexiconCommandError = async (output, context) =
|
|
|
300
292
|
switch (errorCode) {
|
|
301
293
|
case "LexiconNotFoundException":
|
|
302
294
|
case "com.amazonaws.polly#LexiconNotFoundException":
|
|
303
|
-
throw await
|
|
295
|
+
throw await de_LexiconNotFoundExceptionRes(parsedOutput, context);
|
|
304
296
|
case "ServiceFailureException":
|
|
305
297
|
case "com.amazonaws.polly#ServiceFailureException":
|
|
306
|
-
throw await
|
|
298
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
307
299
|
default:
|
|
308
300
|
const parsedBody = parsedOutput.body;
|
|
309
301
|
throwDefaultError({
|
|
@@ -314,20 +306,20 @@ const deserializeAws_restJson1GetLexiconCommandError = async (output, context) =
|
|
|
314
306
|
});
|
|
315
307
|
}
|
|
316
308
|
};
|
|
317
|
-
export const
|
|
309
|
+
export const de_GetSpeechSynthesisTaskCommand = async (output, context) => {
|
|
318
310
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
319
|
-
return
|
|
311
|
+
return de_GetSpeechSynthesisTaskCommandError(output, context);
|
|
320
312
|
}
|
|
321
313
|
const contents = map({
|
|
322
314
|
$metadata: deserializeMetadata(output),
|
|
323
315
|
});
|
|
324
316
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
325
317
|
if (data.SynthesisTask != null) {
|
|
326
|
-
contents.SynthesisTask =
|
|
318
|
+
contents.SynthesisTask = de_SynthesisTask(data.SynthesisTask, context);
|
|
327
319
|
}
|
|
328
320
|
return contents;
|
|
329
321
|
};
|
|
330
|
-
const
|
|
322
|
+
const de_GetSpeechSynthesisTaskCommandError = async (output, context) => {
|
|
331
323
|
const parsedOutput = {
|
|
332
324
|
...output,
|
|
333
325
|
body: await parseErrorBody(output.body, context),
|
|
@@ -336,13 +328,13 @@ const deserializeAws_restJson1GetSpeechSynthesisTaskCommandError = async (output
|
|
|
336
328
|
switch (errorCode) {
|
|
337
329
|
case "InvalidTaskIdException":
|
|
338
330
|
case "com.amazonaws.polly#InvalidTaskIdException":
|
|
339
|
-
throw await
|
|
331
|
+
throw await de_InvalidTaskIdExceptionRes(parsedOutput, context);
|
|
340
332
|
case "ServiceFailureException":
|
|
341
333
|
case "com.amazonaws.polly#ServiceFailureException":
|
|
342
|
-
throw await
|
|
334
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
343
335
|
case "SynthesisTaskNotFoundException":
|
|
344
336
|
case "com.amazonaws.polly#SynthesisTaskNotFoundException":
|
|
345
|
-
throw await
|
|
337
|
+
throw await de_SynthesisTaskNotFoundExceptionRes(parsedOutput, context);
|
|
346
338
|
default:
|
|
347
339
|
const parsedBody = parsedOutput.body;
|
|
348
340
|
throwDefaultError({
|
|
@@ -353,23 +345,23 @@ const deserializeAws_restJson1GetSpeechSynthesisTaskCommandError = async (output
|
|
|
353
345
|
});
|
|
354
346
|
}
|
|
355
347
|
};
|
|
356
|
-
export const
|
|
348
|
+
export const de_ListLexiconsCommand = async (output, context) => {
|
|
357
349
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
358
|
-
return
|
|
350
|
+
return de_ListLexiconsCommandError(output, context);
|
|
359
351
|
}
|
|
360
352
|
const contents = map({
|
|
361
353
|
$metadata: deserializeMetadata(output),
|
|
362
354
|
});
|
|
363
355
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
364
356
|
if (data.Lexicons != null) {
|
|
365
|
-
contents.Lexicons =
|
|
357
|
+
contents.Lexicons = de_LexiconDescriptionList(data.Lexicons, context);
|
|
366
358
|
}
|
|
367
359
|
if (data.NextToken != null) {
|
|
368
360
|
contents.NextToken = __expectString(data.NextToken);
|
|
369
361
|
}
|
|
370
362
|
return contents;
|
|
371
363
|
};
|
|
372
|
-
const
|
|
364
|
+
const de_ListLexiconsCommandError = async (output, context) => {
|
|
373
365
|
const parsedOutput = {
|
|
374
366
|
...output,
|
|
375
367
|
body: await parseErrorBody(output.body, context),
|
|
@@ -378,10 +370,10 @@ const deserializeAws_restJson1ListLexiconsCommandError = async (output, context)
|
|
|
378
370
|
switch (errorCode) {
|
|
379
371
|
case "InvalidNextTokenException":
|
|
380
372
|
case "com.amazonaws.polly#InvalidNextTokenException":
|
|
381
|
-
throw await
|
|
373
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
382
374
|
case "ServiceFailureException":
|
|
383
375
|
case "com.amazonaws.polly#ServiceFailureException":
|
|
384
|
-
throw await
|
|
376
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
385
377
|
default:
|
|
386
378
|
const parsedBody = parsedOutput.body;
|
|
387
379
|
throwDefaultError({
|
|
@@ -392,9 +384,9 @@ const deserializeAws_restJson1ListLexiconsCommandError = async (output, context)
|
|
|
392
384
|
});
|
|
393
385
|
}
|
|
394
386
|
};
|
|
395
|
-
export const
|
|
387
|
+
export const de_ListSpeechSynthesisTasksCommand = async (output, context) => {
|
|
396
388
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
397
|
-
return
|
|
389
|
+
return de_ListSpeechSynthesisTasksCommandError(output, context);
|
|
398
390
|
}
|
|
399
391
|
const contents = map({
|
|
400
392
|
$metadata: deserializeMetadata(output),
|
|
@@ -404,11 +396,11 @@ export const deserializeAws_restJson1ListSpeechSynthesisTasksCommand = async (ou
|
|
|
404
396
|
contents.NextToken = __expectString(data.NextToken);
|
|
405
397
|
}
|
|
406
398
|
if (data.SynthesisTasks != null) {
|
|
407
|
-
contents.SynthesisTasks =
|
|
399
|
+
contents.SynthesisTasks = de_SynthesisTasks(data.SynthesisTasks, context);
|
|
408
400
|
}
|
|
409
401
|
return contents;
|
|
410
402
|
};
|
|
411
|
-
const
|
|
403
|
+
const de_ListSpeechSynthesisTasksCommandError = async (output, context) => {
|
|
412
404
|
const parsedOutput = {
|
|
413
405
|
...output,
|
|
414
406
|
body: await parseErrorBody(output.body, context),
|
|
@@ -417,10 +409,10 @@ const deserializeAws_restJson1ListSpeechSynthesisTasksCommandError = async (outp
|
|
|
417
409
|
switch (errorCode) {
|
|
418
410
|
case "InvalidNextTokenException":
|
|
419
411
|
case "com.amazonaws.polly#InvalidNextTokenException":
|
|
420
|
-
throw await
|
|
412
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
421
413
|
case "ServiceFailureException":
|
|
422
414
|
case "com.amazonaws.polly#ServiceFailureException":
|
|
423
|
-
throw await
|
|
415
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
424
416
|
default:
|
|
425
417
|
const parsedBody = parsedOutput.body;
|
|
426
418
|
throwDefaultError({
|
|
@@ -431,9 +423,9 @@ const deserializeAws_restJson1ListSpeechSynthesisTasksCommandError = async (outp
|
|
|
431
423
|
});
|
|
432
424
|
}
|
|
433
425
|
};
|
|
434
|
-
export const
|
|
426
|
+
export const de_PutLexiconCommand = async (output, context) => {
|
|
435
427
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
436
|
-
return
|
|
428
|
+
return de_PutLexiconCommandError(output, context);
|
|
437
429
|
}
|
|
438
430
|
const contents = map({
|
|
439
431
|
$metadata: deserializeMetadata(output),
|
|
@@ -441,7 +433,7 @@ export const deserializeAws_restJson1PutLexiconCommand = async (output, context)
|
|
|
441
433
|
await collectBody(output.body, context);
|
|
442
434
|
return contents;
|
|
443
435
|
};
|
|
444
|
-
const
|
|
436
|
+
const de_PutLexiconCommandError = async (output, context) => {
|
|
445
437
|
const parsedOutput = {
|
|
446
438
|
...output,
|
|
447
439
|
body: await parseErrorBody(output.body, context),
|
|
@@ -450,25 +442,25 @@ const deserializeAws_restJson1PutLexiconCommandError = async (output, context) =
|
|
|
450
442
|
switch (errorCode) {
|
|
451
443
|
case "InvalidLexiconException":
|
|
452
444
|
case "com.amazonaws.polly#InvalidLexiconException":
|
|
453
|
-
throw await
|
|
445
|
+
throw await de_InvalidLexiconExceptionRes(parsedOutput, context);
|
|
454
446
|
case "LexiconSizeExceededException":
|
|
455
447
|
case "com.amazonaws.polly#LexiconSizeExceededException":
|
|
456
|
-
throw await
|
|
448
|
+
throw await de_LexiconSizeExceededExceptionRes(parsedOutput, context);
|
|
457
449
|
case "MaxLexemeLengthExceededException":
|
|
458
450
|
case "com.amazonaws.polly#MaxLexemeLengthExceededException":
|
|
459
|
-
throw await
|
|
451
|
+
throw await de_MaxLexemeLengthExceededExceptionRes(parsedOutput, context);
|
|
460
452
|
case "MaxLexiconsNumberExceededException":
|
|
461
453
|
case "com.amazonaws.polly#MaxLexiconsNumberExceededException":
|
|
462
|
-
throw await
|
|
454
|
+
throw await de_MaxLexiconsNumberExceededExceptionRes(parsedOutput, context);
|
|
463
455
|
case "ServiceFailureException":
|
|
464
456
|
case "com.amazonaws.polly#ServiceFailureException":
|
|
465
|
-
throw await
|
|
457
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
466
458
|
case "UnsupportedPlsAlphabetException":
|
|
467
459
|
case "com.amazonaws.polly#UnsupportedPlsAlphabetException":
|
|
468
|
-
throw await
|
|
460
|
+
throw await de_UnsupportedPlsAlphabetExceptionRes(parsedOutput, context);
|
|
469
461
|
case "UnsupportedPlsLanguageException":
|
|
470
462
|
case "com.amazonaws.polly#UnsupportedPlsLanguageException":
|
|
471
|
-
throw await
|
|
463
|
+
throw await de_UnsupportedPlsLanguageExceptionRes(parsedOutput, context);
|
|
472
464
|
default:
|
|
473
465
|
const parsedBody = parsedOutput.body;
|
|
474
466
|
throwDefaultError({
|
|
@@ -479,20 +471,20 @@ const deserializeAws_restJson1PutLexiconCommandError = async (output, context) =
|
|
|
479
471
|
});
|
|
480
472
|
}
|
|
481
473
|
};
|
|
482
|
-
export const
|
|
474
|
+
export const de_StartSpeechSynthesisTaskCommand = async (output, context) => {
|
|
483
475
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
484
|
-
return
|
|
476
|
+
return de_StartSpeechSynthesisTaskCommandError(output, context);
|
|
485
477
|
}
|
|
486
478
|
const contents = map({
|
|
487
479
|
$metadata: deserializeMetadata(output),
|
|
488
480
|
});
|
|
489
481
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
490
482
|
if (data.SynthesisTask != null) {
|
|
491
|
-
contents.SynthesisTask =
|
|
483
|
+
contents.SynthesisTask = de_SynthesisTask(data.SynthesisTask, context);
|
|
492
484
|
}
|
|
493
485
|
return contents;
|
|
494
486
|
};
|
|
495
|
-
const
|
|
487
|
+
const de_StartSpeechSynthesisTaskCommandError = async (output, context) => {
|
|
496
488
|
const parsedOutput = {
|
|
497
489
|
...output,
|
|
498
490
|
body: await parseErrorBody(output.body, context),
|
|
@@ -501,40 +493,40 @@ const deserializeAws_restJson1StartSpeechSynthesisTaskCommandError = async (outp
|
|
|
501
493
|
switch (errorCode) {
|
|
502
494
|
case "EngineNotSupportedException":
|
|
503
495
|
case "com.amazonaws.polly#EngineNotSupportedException":
|
|
504
|
-
throw await
|
|
496
|
+
throw await de_EngineNotSupportedExceptionRes(parsedOutput, context);
|
|
505
497
|
case "InvalidS3BucketException":
|
|
506
498
|
case "com.amazonaws.polly#InvalidS3BucketException":
|
|
507
|
-
throw await
|
|
499
|
+
throw await de_InvalidS3BucketExceptionRes(parsedOutput, context);
|
|
508
500
|
case "InvalidS3KeyException":
|
|
509
501
|
case "com.amazonaws.polly#InvalidS3KeyException":
|
|
510
|
-
throw await
|
|
502
|
+
throw await de_InvalidS3KeyExceptionRes(parsedOutput, context);
|
|
511
503
|
case "InvalidSampleRateException":
|
|
512
504
|
case "com.amazonaws.polly#InvalidSampleRateException":
|
|
513
|
-
throw await
|
|
505
|
+
throw await de_InvalidSampleRateExceptionRes(parsedOutput, context);
|
|
514
506
|
case "InvalidSnsTopicArnException":
|
|
515
507
|
case "com.amazonaws.polly#InvalidSnsTopicArnException":
|
|
516
|
-
throw await
|
|
508
|
+
throw await de_InvalidSnsTopicArnExceptionRes(parsedOutput, context);
|
|
517
509
|
case "InvalidSsmlException":
|
|
518
510
|
case "com.amazonaws.polly#InvalidSsmlException":
|
|
519
|
-
throw await
|
|
511
|
+
throw await de_InvalidSsmlExceptionRes(parsedOutput, context);
|
|
520
512
|
case "LanguageNotSupportedException":
|
|
521
513
|
case "com.amazonaws.polly#LanguageNotSupportedException":
|
|
522
|
-
throw await
|
|
514
|
+
throw await de_LanguageNotSupportedExceptionRes(parsedOutput, context);
|
|
523
515
|
case "LexiconNotFoundException":
|
|
524
516
|
case "com.amazonaws.polly#LexiconNotFoundException":
|
|
525
|
-
throw await
|
|
517
|
+
throw await de_LexiconNotFoundExceptionRes(parsedOutput, context);
|
|
526
518
|
case "MarksNotSupportedForFormatException":
|
|
527
519
|
case "com.amazonaws.polly#MarksNotSupportedForFormatException":
|
|
528
|
-
throw await
|
|
520
|
+
throw await de_MarksNotSupportedForFormatExceptionRes(parsedOutput, context);
|
|
529
521
|
case "ServiceFailureException":
|
|
530
522
|
case "com.amazonaws.polly#ServiceFailureException":
|
|
531
|
-
throw await
|
|
523
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
532
524
|
case "SsmlMarksNotSupportedForTextTypeException":
|
|
533
525
|
case "com.amazonaws.polly#SsmlMarksNotSupportedForTextTypeException":
|
|
534
|
-
throw await
|
|
526
|
+
throw await de_SsmlMarksNotSupportedForTextTypeExceptionRes(parsedOutput, context);
|
|
535
527
|
case "TextLengthExceededException":
|
|
536
528
|
case "com.amazonaws.polly#TextLengthExceededException":
|
|
537
|
-
throw await
|
|
529
|
+
throw await de_TextLengthExceededExceptionRes(parsedOutput, context);
|
|
538
530
|
default:
|
|
539
531
|
const parsedBody = parsedOutput.body;
|
|
540
532
|
throwDefaultError({
|
|
@@ -545,9 +537,9 @@ const deserializeAws_restJson1StartSpeechSynthesisTaskCommandError = async (outp
|
|
|
545
537
|
});
|
|
546
538
|
}
|
|
547
539
|
};
|
|
548
|
-
export const
|
|
540
|
+
export const de_SynthesizeSpeechCommand = async (output, context) => {
|
|
549
541
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
550
|
-
return
|
|
542
|
+
return de_SynthesizeSpeechCommandError(output, context);
|
|
551
543
|
}
|
|
552
544
|
const contents = map({
|
|
553
545
|
$metadata: deserializeMetadata(output),
|
|
@@ -562,7 +554,7 @@ export const deserializeAws_restJson1SynthesizeSpeechCommand = async (output, co
|
|
|
562
554
|
contents.AudioStream = data;
|
|
563
555
|
return contents;
|
|
564
556
|
};
|
|
565
|
-
const
|
|
557
|
+
const de_SynthesizeSpeechCommandError = async (output, context) => {
|
|
566
558
|
const parsedOutput = {
|
|
567
559
|
...output,
|
|
568
560
|
body: await parseErrorBody(output.body, context),
|
|
@@ -571,31 +563,31 @@ const deserializeAws_restJson1SynthesizeSpeechCommandError = async (output, cont
|
|
|
571
563
|
switch (errorCode) {
|
|
572
564
|
case "EngineNotSupportedException":
|
|
573
565
|
case "com.amazonaws.polly#EngineNotSupportedException":
|
|
574
|
-
throw await
|
|
566
|
+
throw await de_EngineNotSupportedExceptionRes(parsedOutput, context);
|
|
575
567
|
case "InvalidSampleRateException":
|
|
576
568
|
case "com.amazonaws.polly#InvalidSampleRateException":
|
|
577
|
-
throw await
|
|
569
|
+
throw await de_InvalidSampleRateExceptionRes(parsedOutput, context);
|
|
578
570
|
case "InvalidSsmlException":
|
|
579
571
|
case "com.amazonaws.polly#InvalidSsmlException":
|
|
580
|
-
throw await
|
|
572
|
+
throw await de_InvalidSsmlExceptionRes(parsedOutput, context);
|
|
581
573
|
case "LanguageNotSupportedException":
|
|
582
574
|
case "com.amazonaws.polly#LanguageNotSupportedException":
|
|
583
|
-
throw await
|
|
575
|
+
throw await de_LanguageNotSupportedExceptionRes(parsedOutput, context);
|
|
584
576
|
case "LexiconNotFoundException":
|
|
585
577
|
case "com.amazonaws.polly#LexiconNotFoundException":
|
|
586
|
-
throw await
|
|
578
|
+
throw await de_LexiconNotFoundExceptionRes(parsedOutput, context);
|
|
587
579
|
case "MarksNotSupportedForFormatException":
|
|
588
580
|
case "com.amazonaws.polly#MarksNotSupportedForFormatException":
|
|
589
|
-
throw await
|
|
581
|
+
throw await de_MarksNotSupportedForFormatExceptionRes(parsedOutput, context);
|
|
590
582
|
case "ServiceFailureException":
|
|
591
583
|
case "com.amazonaws.polly#ServiceFailureException":
|
|
592
|
-
throw await
|
|
584
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
593
585
|
case "SsmlMarksNotSupportedForTextTypeException":
|
|
594
586
|
case "com.amazonaws.polly#SsmlMarksNotSupportedForTextTypeException":
|
|
595
|
-
throw await
|
|
587
|
+
throw await de_SsmlMarksNotSupportedForTextTypeExceptionRes(parsedOutput, context);
|
|
596
588
|
case "TextLengthExceededException":
|
|
597
589
|
case "com.amazonaws.polly#TextLengthExceededException":
|
|
598
|
-
throw await
|
|
590
|
+
throw await de_TextLengthExceededExceptionRes(parsedOutput, context);
|
|
599
591
|
default:
|
|
600
592
|
const parsedBody = parsedOutput.body;
|
|
601
593
|
throwDefaultError({
|
|
@@ -607,7 +599,7 @@ const deserializeAws_restJson1SynthesizeSpeechCommandError = async (output, cont
|
|
|
607
599
|
}
|
|
608
600
|
};
|
|
609
601
|
const map = __map;
|
|
610
|
-
const
|
|
602
|
+
const de_EngineNotSupportedExceptionRes = async (parsedOutput, context) => {
|
|
611
603
|
const contents = map({});
|
|
612
604
|
const data = parsedOutput.body;
|
|
613
605
|
if (data.message != null) {
|
|
@@ -619,7 +611,7 @@ const deserializeAws_restJson1EngineNotSupportedExceptionResponse = async (parse
|
|
|
619
611
|
});
|
|
620
612
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
621
613
|
};
|
|
622
|
-
const
|
|
614
|
+
const de_InvalidLexiconExceptionRes = async (parsedOutput, context) => {
|
|
623
615
|
const contents = map({});
|
|
624
616
|
const data = parsedOutput.body;
|
|
625
617
|
if (data.message != null) {
|
|
@@ -631,7 +623,7 @@ const deserializeAws_restJson1InvalidLexiconExceptionResponse = async (parsedOut
|
|
|
631
623
|
});
|
|
632
624
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
633
625
|
};
|
|
634
|
-
const
|
|
626
|
+
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
635
627
|
const contents = map({});
|
|
636
628
|
const data = parsedOutput.body;
|
|
637
629
|
if (data.message != null) {
|
|
@@ -643,7 +635,7 @@ const deserializeAws_restJson1InvalidNextTokenExceptionResponse = async (parsedO
|
|
|
643
635
|
});
|
|
644
636
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
645
637
|
};
|
|
646
|
-
const
|
|
638
|
+
const de_InvalidS3BucketExceptionRes = async (parsedOutput, context) => {
|
|
647
639
|
const contents = map({});
|
|
648
640
|
const data = parsedOutput.body;
|
|
649
641
|
if (data.message != null) {
|
|
@@ -655,7 +647,7 @@ const deserializeAws_restJson1InvalidS3BucketExceptionResponse = async (parsedOu
|
|
|
655
647
|
});
|
|
656
648
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
657
649
|
};
|
|
658
|
-
const
|
|
650
|
+
const de_InvalidS3KeyExceptionRes = async (parsedOutput, context) => {
|
|
659
651
|
const contents = map({});
|
|
660
652
|
const data = parsedOutput.body;
|
|
661
653
|
if (data.message != null) {
|
|
@@ -667,7 +659,7 @@ const deserializeAws_restJson1InvalidS3KeyExceptionResponse = async (parsedOutpu
|
|
|
667
659
|
});
|
|
668
660
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
669
661
|
};
|
|
670
|
-
const
|
|
662
|
+
const de_InvalidSampleRateExceptionRes = async (parsedOutput, context) => {
|
|
671
663
|
const contents = map({});
|
|
672
664
|
const data = parsedOutput.body;
|
|
673
665
|
if (data.message != null) {
|
|
@@ -679,7 +671,7 @@ const deserializeAws_restJson1InvalidSampleRateExceptionResponse = async (parsed
|
|
|
679
671
|
});
|
|
680
672
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
681
673
|
};
|
|
682
|
-
const
|
|
674
|
+
const de_InvalidSnsTopicArnExceptionRes = async (parsedOutput, context) => {
|
|
683
675
|
const contents = map({});
|
|
684
676
|
const data = parsedOutput.body;
|
|
685
677
|
if (data.message != null) {
|
|
@@ -691,7 +683,7 @@ const deserializeAws_restJson1InvalidSnsTopicArnExceptionResponse = async (parse
|
|
|
691
683
|
});
|
|
692
684
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
693
685
|
};
|
|
694
|
-
const
|
|
686
|
+
const de_InvalidSsmlExceptionRes = async (parsedOutput, context) => {
|
|
695
687
|
const contents = map({});
|
|
696
688
|
const data = parsedOutput.body;
|
|
697
689
|
if (data.message != null) {
|
|
@@ -703,7 +695,7 @@ const deserializeAws_restJson1InvalidSsmlExceptionResponse = async (parsedOutput
|
|
|
703
695
|
});
|
|
704
696
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
705
697
|
};
|
|
706
|
-
const
|
|
698
|
+
const de_InvalidTaskIdExceptionRes = async (parsedOutput, context) => {
|
|
707
699
|
const contents = map({});
|
|
708
700
|
const data = parsedOutput.body;
|
|
709
701
|
if (data.message != null) {
|
|
@@ -715,7 +707,7 @@ const deserializeAws_restJson1InvalidTaskIdExceptionResponse = async (parsedOutp
|
|
|
715
707
|
});
|
|
716
708
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
717
709
|
};
|
|
718
|
-
const
|
|
710
|
+
const de_LanguageNotSupportedExceptionRes = async (parsedOutput, context) => {
|
|
719
711
|
const contents = map({});
|
|
720
712
|
const data = parsedOutput.body;
|
|
721
713
|
if (data.message != null) {
|
|
@@ -727,7 +719,7 @@ const deserializeAws_restJson1LanguageNotSupportedExceptionResponse = async (par
|
|
|
727
719
|
});
|
|
728
720
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
729
721
|
};
|
|
730
|
-
const
|
|
722
|
+
const de_LexiconNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
731
723
|
const contents = map({});
|
|
732
724
|
const data = parsedOutput.body;
|
|
733
725
|
if (data.message != null) {
|
|
@@ -739,7 +731,7 @@ const deserializeAws_restJson1LexiconNotFoundExceptionResponse = async (parsedOu
|
|
|
739
731
|
});
|
|
740
732
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
741
733
|
};
|
|
742
|
-
const
|
|
734
|
+
const de_LexiconSizeExceededExceptionRes = async (parsedOutput, context) => {
|
|
743
735
|
const contents = map({});
|
|
744
736
|
const data = parsedOutput.body;
|
|
745
737
|
if (data.message != null) {
|
|
@@ -751,7 +743,7 @@ const deserializeAws_restJson1LexiconSizeExceededExceptionResponse = async (pars
|
|
|
751
743
|
});
|
|
752
744
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
753
745
|
};
|
|
754
|
-
const
|
|
746
|
+
const de_MarksNotSupportedForFormatExceptionRes = async (parsedOutput, context) => {
|
|
755
747
|
const contents = map({});
|
|
756
748
|
const data = parsedOutput.body;
|
|
757
749
|
if (data.message != null) {
|
|
@@ -763,7 +755,7 @@ const deserializeAws_restJson1MarksNotSupportedForFormatExceptionResponse = asyn
|
|
|
763
755
|
});
|
|
764
756
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
765
757
|
};
|
|
766
|
-
const
|
|
758
|
+
const de_MaxLexemeLengthExceededExceptionRes = async (parsedOutput, context) => {
|
|
767
759
|
const contents = map({});
|
|
768
760
|
const data = parsedOutput.body;
|
|
769
761
|
if (data.message != null) {
|
|
@@ -775,7 +767,7 @@ const deserializeAws_restJson1MaxLexemeLengthExceededExceptionResponse = async (
|
|
|
775
767
|
});
|
|
776
768
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
777
769
|
};
|
|
778
|
-
const
|
|
770
|
+
const de_MaxLexiconsNumberExceededExceptionRes = async (parsedOutput, context) => {
|
|
779
771
|
const contents = map({});
|
|
780
772
|
const data = parsedOutput.body;
|
|
781
773
|
if (data.message != null) {
|
|
@@ -787,7 +779,7 @@ const deserializeAws_restJson1MaxLexiconsNumberExceededExceptionResponse = async
|
|
|
787
779
|
});
|
|
788
780
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
789
781
|
};
|
|
790
|
-
const
|
|
782
|
+
const de_ServiceFailureExceptionRes = async (parsedOutput, context) => {
|
|
791
783
|
const contents = map({});
|
|
792
784
|
const data = parsedOutput.body;
|
|
793
785
|
if (data.message != null) {
|
|
@@ -799,7 +791,7 @@ const deserializeAws_restJson1ServiceFailureExceptionResponse = async (parsedOut
|
|
|
799
791
|
});
|
|
800
792
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
801
793
|
};
|
|
802
|
-
const
|
|
794
|
+
const de_SsmlMarksNotSupportedForTextTypeExceptionRes = async (parsedOutput, context) => {
|
|
803
795
|
const contents = map({});
|
|
804
796
|
const data = parsedOutput.body;
|
|
805
797
|
if (data.message != null) {
|
|
@@ -811,7 +803,7 @@ const deserializeAws_restJson1SsmlMarksNotSupportedForTextTypeExceptionResponse
|
|
|
811
803
|
});
|
|
812
804
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
813
805
|
};
|
|
814
|
-
const
|
|
806
|
+
const de_SynthesisTaskNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
815
807
|
const contents = map({});
|
|
816
808
|
const data = parsedOutput.body;
|
|
817
809
|
if (data.message != null) {
|
|
@@ -823,7 +815,7 @@ const deserializeAws_restJson1SynthesisTaskNotFoundExceptionResponse = async (pa
|
|
|
823
815
|
});
|
|
824
816
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
825
817
|
};
|
|
826
|
-
const
|
|
818
|
+
const de_TextLengthExceededExceptionRes = async (parsedOutput, context) => {
|
|
827
819
|
const contents = map({});
|
|
828
820
|
const data = parsedOutput.body;
|
|
829
821
|
if (data.message != null) {
|
|
@@ -835,7 +827,7 @@ const deserializeAws_restJson1TextLengthExceededExceptionResponse = async (parse
|
|
|
835
827
|
});
|
|
836
828
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
837
829
|
};
|
|
838
|
-
const
|
|
830
|
+
const de_UnsupportedPlsAlphabetExceptionRes = async (parsedOutput, context) => {
|
|
839
831
|
const contents = map({});
|
|
840
832
|
const data = parsedOutput.body;
|
|
841
833
|
if (data.message != null) {
|
|
@@ -847,7 +839,7 @@ const deserializeAws_restJson1UnsupportedPlsAlphabetExceptionResponse = async (p
|
|
|
847
839
|
});
|
|
848
840
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
849
841
|
};
|
|
850
|
-
const
|
|
842
|
+
const de_UnsupportedPlsLanguageExceptionRes = async (parsedOutput, context) => {
|
|
851
843
|
const contents = map({});
|
|
852
844
|
const data = parsedOutput.body;
|
|
853
845
|
if (data.message != null) {
|
|
@@ -859,21 +851,21 @@ const deserializeAws_restJson1UnsupportedPlsLanguageExceptionResponse = async (p
|
|
|
859
851
|
});
|
|
860
852
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
861
853
|
};
|
|
862
|
-
const
|
|
854
|
+
const se_LexiconNameList = (input, context) => {
|
|
863
855
|
return input
|
|
864
856
|
.filter((e) => e != null)
|
|
865
857
|
.map((entry) => {
|
|
866
858
|
return entry;
|
|
867
859
|
});
|
|
868
860
|
};
|
|
869
|
-
const
|
|
861
|
+
const se_SpeechMarkTypeList = (input, context) => {
|
|
870
862
|
return input
|
|
871
863
|
.filter((e) => e != null)
|
|
872
864
|
.map((entry) => {
|
|
873
865
|
return entry;
|
|
874
866
|
});
|
|
875
867
|
};
|
|
876
|
-
const
|
|
868
|
+
const de_EngineList = (output, context) => {
|
|
877
869
|
const retVal = (output || [])
|
|
878
870
|
.filter((e) => e != null)
|
|
879
871
|
.map((entry) => {
|
|
@@ -884,7 +876,7 @@ const deserializeAws_restJson1EngineList = (output, context) => {
|
|
|
884
876
|
});
|
|
885
877
|
return retVal;
|
|
886
878
|
};
|
|
887
|
-
const
|
|
879
|
+
const de_LanguageCodeList = (output, context) => {
|
|
888
880
|
const retVal = (output || [])
|
|
889
881
|
.filter((e) => e != null)
|
|
890
882
|
.map((entry) => {
|
|
@@ -895,13 +887,13 @@ const deserializeAws_restJson1LanguageCodeList = (output, context) => {
|
|
|
895
887
|
});
|
|
896
888
|
return retVal;
|
|
897
889
|
};
|
|
898
|
-
const
|
|
890
|
+
const de_Lexicon = (output, context) => {
|
|
899
891
|
return {
|
|
900
892
|
Content: __expectString(output.Content),
|
|
901
893
|
Name: __expectString(output.Name),
|
|
902
894
|
};
|
|
903
895
|
};
|
|
904
|
-
const
|
|
896
|
+
const de_LexiconAttributes = (output, context) => {
|
|
905
897
|
return {
|
|
906
898
|
Alphabet: __expectString(output.Alphabet),
|
|
907
899
|
LanguageCode: __expectString(output.LanguageCode),
|
|
@@ -913,24 +905,24 @@ const deserializeAws_restJson1LexiconAttributes = (output, context) => {
|
|
|
913
905
|
Size: __expectInt32(output.Size),
|
|
914
906
|
};
|
|
915
907
|
};
|
|
916
|
-
const
|
|
908
|
+
const de_LexiconDescription = (output, context) => {
|
|
917
909
|
return {
|
|
918
|
-
Attributes: output.Attributes != null ?
|
|
910
|
+
Attributes: output.Attributes != null ? de_LexiconAttributes(output.Attributes, context) : undefined,
|
|
919
911
|
Name: __expectString(output.Name),
|
|
920
912
|
};
|
|
921
913
|
};
|
|
922
|
-
const
|
|
914
|
+
const de_LexiconDescriptionList = (output, context) => {
|
|
923
915
|
const retVal = (output || [])
|
|
924
916
|
.filter((e) => e != null)
|
|
925
917
|
.map((entry) => {
|
|
926
918
|
if (entry === null) {
|
|
927
919
|
return null;
|
|
928
920
|
}
|
|
929
|
-
return
|
|
921
|
+
return de_LexiconDescription(entry, context);
|
|
930
922
|
});
|
|
931
923
|
return retVal;
|
|
932
924
|
};
|
|
933
|
-
const
|
|
925
|
+
const de_LexiconNameList = (output, context) => {
|
|
934
926
|
const retVal = (output || [])
|
|
935
927
|
.filter((e) => e != null)
|
|
936
928
|
.map((entry) => {
|
|
@@ -941,7 +933,7 @@ const deserializeAws_restJson1LexiconNameList = (output, context) => {
|
|
|
941
933
|
});
|
|
942
934
|
return retVal;
|
|
943
935
|
};
|
|
944
|
-
const
|
|
936
|
+
const de_SpeechMarkTypeList = (output, context) => {
|
|
945
937
|
const retVal = (output || [])
|
|
946
938
|
.filter((e) => e != null)
|
|
947
939
|
.map((entry) => {
|
|
@@ -952,22 +944,20 @@ const deserializeAws_restJson1SpeechMarkTypeList = (output, context) => {
|
|
|
952
944
|
});
|
|
953
945
|
return retVal;
|
|
954
946
|
};
|
|
955
|
-
const
|
|
947
|
+
const de_SynthesisTask = (output, context) => {
|
|
956
948
|
return {
|
|
957
949
|
CreationTime: output.CreationTime != null
|
|
958
950
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
959
951
|
: undefined,
|
|
960
952
|
Engine: __expectString(output.Engine),
|
|
961
953
|
LanguageCode: __expectString(output.LanguageCode),
|
|
962
|
-
LexiconNames: output.LexiconNames != null ?
|
|
954
|
+
LexiconNames: output.LexiconNames != null ? de_LexiconNameList(output.LexiconNames, context) : undefined,
|
|
963
955
|
OutputFormat: __expectString(output.OutputFormat),
|
|
964
956
|
OutputUri: __expectString(output.OutputUri),
|
|
965
957
|
RequestCharacters: __expectInt32(output.RequestCharacters),
|
|
966
958
|
SampleRate: __expectString(output.SampleRate),
|
|
967
959
|
SnsTopicArn: __expectString(output.SnsTopicArn),
|
|
968
|
-
SpeechMarkTypes: output.SpeechMarkTypes != null
|
|
969
|
-
? deserializeAws_restJson1SpeechMarkTypeList(output.SpeechMarkTypes, context)
|
|
970
|
-
: undefined,
|
|
960
|
+
SpeechMarkTypes: output.SpeechMarkTypes != null ? de_SpeechMarkTypeList(output.SpeechMarkTypes, context) : undefined,
|
|
971
961
|
TaskId: __expectString(output.TaskId),
|
|
972
962
|
TaskStatus: __expectString(output.TaskStatus),
|
|
973
963
|
TaskStatusReason: __expectString(output.TaskStatusReason),
|
|
@@ -975,40 +965,36 @@ const deserializeAws_restJson1SynthesisTask = (output, context) => {
|
|
|
975
965
|
VoiceId: __expectString(output.VoiceId),
|
|
976
966
|
};
|
|
977
967
|
};
|
|
978
|
-
const
|
|
968
|
+
const de_SynthesisTasks = (output, context) => {
|
|
979
969
|
const retVal = (output || [])
|
|
980
970
|
.filter((e) => e != null)
|
|
981
971
|
.map((entry) => {
|
|
982
972
|
if (entry === null) {
|
|
983
973
|
return null;
|
|
984
974
|
}
|
|
985
|
-
return
|
|
975
|
+
return de_SynthesisTask(entry, context);
|
|
986
976
|
});
|
|
987
977
|
return retVal;
|
|
988
978
|
};
|
|
989
|
-
const
|
|
979
|
+
const de_Voice = (output, context) => {
|
|
990
980
|
return {
|
|
991
|
-
AdditionalLanguageCodes: output.AdditionalLanguageCodes != null
|
|
992
|
-
? deserializeAws_restJson1LanguageCodeList(output.AdditionalLanguageCodes, context)
|
|
993
|
-
: undefined,
|
|
981
|
+
AdditionalLanguageCodes: output.AdditionalLanguageCodes != null ? de_LanguageCodeList(output.AdditionalLanguageCodes, context) : undefined,
|
|
994
982
|
Gender: __expectString(output.Gender),
|
|
995
983
|
Id: __expectString(output.Id),
|
|
996
984
|
LanguageCode: __expectString(output.LanguageCode),
|
|
997
985
|
LanguageName: __expectString(output.LanguageName),
|
|
998
986
|
Name: __expectString(output.Name),
|
|
999
|
-
SupportedEngines: output.SupportedEngines != null
|
|
1000
|
-
? deserializeAws_restJson1EngineList(output.SupportedEngines, context)
|
|
1001
|
-
: undefined,
|
|
987
|
+
SupportedEngines: output.SupportedEngines != null ? de_EngineList(output.SupportedEngines, context) : undefined,
|
|
1002
988
|
};
|
|
1003
989
|
};
|
|
1004
|
-
const
|
|
990
|
+
const de_VoiceList = (output, context) => {
|
|
1005
991
|
const retVal = (output || [])
|
|
1006
992
|
.filter((e) => e != null)
|
|
1007
993
|
.map((entry) => {
|
|
1008
994
|
if (entry === null) {
|
|
1009
995
|
return null;
|
|
1010
996
|
}
|
|
1011
|
-
return
|
|
997
|
+
return de_Voice(entry, context);
|
|
1012
998
|
});
|
|
1013
999
|
return retVal;
|
|
1014
1000
|
};
|