@aws-sdk/client-polly 3.928.0 → 3.930.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 +722 -811
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/PollyClient.js +2 -0
- package/dist-es/commands/DeleteLexiconCommand.js +3 -9
- package/dist-es/commands/DescribeVoicesCommand.js +3 -9
- package/dist-es/commands/GetLexiconCommand.js +3 -10
- package/dist-es/commands/GetSpeechSynthesisTaskCommand.js +3 -9
- package/dist-es/commands/ListLexiconsCommand.js +3 -9
- package/dist-es/commands/ListSpeechSynthesisTasksCommand.js +3 -9
- package/dist-es/commands/PutLexiconCommand.js +3 -10
- package/dist-es/commands/StartSpeechSynthesisTaskCommand.js +3 -9
- package/dist-es/commands/SynthesizeSpeechCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -16
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +649 -0
- package/dist-types/PollyClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -16
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +65 -0
- package/dist-types/ts3.4/PollyClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -10
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +71 -0
- package/package.json +34 -34
- package/dist-es/protocols/Aws_restJson1.js +0 -672
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -83
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -116
|
@@ -0,0 +1,649 @@
|
|
|
1
|
+
const _A = "Alphabet";
|
|
2
|
+
const _ALC = "AdditionalLanguageCodes";
|
|
3
|
+
const _AS = "AudioStream";
|
|
4
|
+
const _At = "Attributes";
|
|
5
|
+
const _C = "Content";
|
|
6
|
+
const _CT = "CreationTime";
|
|
7
|
+
const _CT_ = "Content-Type";
|
|
8
|
+
const _CTo = "ContentType";
|
|
9
|
+
const _DL = "DeleteLexicon";
|
|
10
|
+
const _DLI = "DeleteLexiconInput";
|
|
11
|
+
const _DLO = "DeleteLexiconOutput";
|
|
12
|
+
const _DV = "DescribeVoices";
|
|
13
|
+
const _DVI = "DescribeVoicesInput";
|
|
14
|
+
const _DVO = "DescribeVoicesOutput";
|
|
15
|
+
const _E = "Engine";
|
|
16
|
+
const _ENSE = "EngineNotSupportedException";
|
|
17
|
+
const _G = "Gender";
|
|
18
|
+
const _GL = "GetLexicon";
|
|
19
|
+
const _GLI = "GetLexiconInput";
|
|
20
|
+
const _GLO = "GetLexiconOutput";
|
|
21
|
+
const _GSST = "GetSpeechSynthesisTask";
|
|
22
|
+
const _GSSTI = "GetSpeechSynthesisTaskInput";
|
|
23
|
+
const _GSSTO = "GetSpeechSynthesisTaskOutput";
|
|
24
|
+
const _I = "Id";
|
|
25
|
+
const _IALC = "IncludeAdditionalLanguageCodes";
|
|
26
|
+
const _ILE = "InvalidLexiconException";
|
|
27
|
+
const _INTE = "InvalidNextTokenException";
|
|
28
|
+
const _ISBE = "InvalidS3BucketException";
|
|
29
|
+
const _ISE = "InvalidSsmlException";
|
|
30
|
+
const _ISKE = "InvalidS3KeyException";
|
|
31
|
+
const _ISRE = "InvalidSampleRateException";
|
|
32
|
+
const _ISTAE = "InvalidSnsTopicArnException";
|
|
33
|
+
const _ITIE = "InvalidTaskIdException";
|
|
34
|
+
const _L = "Lexicon";
|
|
35
|
+
const _LA = "LexiconAttributes";
|
|
36
|
+
const _LAe = "LexiconArn";
|
|
37
|
+
const _LC = "LexiconContent";
|
|
38
|
+
const _LCa = "LanguageCode";
|
|
39
|
+
const _LCe = "LexemesCount";
|
|
40
|
+
const _LD = "LexiconDescription";
|
|
41
|
+
const _LDL = "LexiconDescriptionList";
|
|
42
|
+
const _LL = "ListLexicons";
|
|
43
|
+
const _LLI = "ListLexiconsInput";
|
|
44
|
+
const _LLO = "ListLexiconsOutput";
|
|
45
|
+
const _LM = "LastModified";
|
|
46
|
+
const _LN = "LexiconNames";
|
|
47
|
+
const _LNFE = "LexiconNotFoundException";
|
|
48
|
+
const _LNSE = "LanguageNotSupportedException";
|
|
49
|
+
const _LNa = "LanguageName";
|
|
50
|
+
const _LSEE = "LexiconSizeExceededException";
|
|
51
|
+
const _LSST = "ListSpeechSynthesisTasks";
|
|
52
|
+
const _LSSTI = "ListSpeechSynthesisTasksInput";
|
|
53
|
+
const _LSSTO = "ListSpeechSynthesisTasksOutput";
|
|
54
|
+
const _Le = "Lexicons";
|
|
55
|
+
const _MLLEE = "MaxLexemeLengthExceededException";
|
|
56
|
+
const _MLNEE = "MaxLexiconsNumberExceededException";
|
|
57
|
+
const _MNSFFE = "MarksNotSupportedForFormatException";
|
|
58
|
+
const _MR = "MaxResults";
|
|
59
|
+
const _N = "Name";
|
|
60
|
+
const _NT = "NextToken";
|
|
61
|
+
const _OF = "OutputFormat";
|
|
62
|
+
const _OSBN = "OutputS3BucketName";
|
|
63
|
+
const _OSKP = "OutputS3KeyPrefix";
|
|
64
|
+
const _OU = "OutputUri";
|
|
65
|
+
const _PL = "PutLexicon";
|
|
66
|
+
const _PLI = "PutLexiconInput";
|
|
67
|
+
const _PLO = "PutLexiconOutput";
|
|
68
|
+
const _RC = "RequestCharacters";
|
|
69
|
+
const _S = "Size";
|
|
70
|
+
const _SE = "SupportedEngines";
|
|
71
|
+
const _SFE = "ServiceFailureException";
|
|
72
|
+
const _SMNSFTTE = "SsmlMarksNotSupportedForTextTypeException";
|
|
73
|
+
const _SMT = "SpeechMarkTypes";
|
|
74
|
+
const _SR = "SampleRate";
|
|
75
|
+
const _SS = "SynthesizeSpeech";
|
|
76
|
+
const _SSI = "SynthesizeSpeechInput";
|
|
77
|
+
const _SSO = "SynthesizeSpeechOutput";
|
|
78
|
+
const _SSST = "StartSpeechSynthesisTask";
|
|
79
|
+
const _SSSTI = "StartSpeechSynthesisTaskInput";
|
|
80
|
+
const _SSSTO = "StartSpeechSynthesisTaskOutput";
|
|
81
|
+
const _ST = "SynthesisTask";
|
|
82
|
+
const _STA = "SnsTopicArn";
|
|
83
|
+
const _STNFE = "SynthesisTaskNotFoundException";
|
|
84
|
+
const _STy = "SynthesisTasks";
|
|
85
|
+
const _St = "Status";
|
|
86
|
+
const _T = "Text";
|
|
87
|
+
const _TI = "TaskId";
|
|
88
|
+
const _TLEE = "TextLengthExceededException";
|
|
89
|
+
const _TS = "TaskStatus";
|
|
90
|
+
const _TSR = "TaskStatusReason";
|
|
91
|
+
const _TT = "TextType";
|
|
92
|
+
const _UPAE = "UnsupportedPlsAlphabetException";
|
|
93
|
+
const _UPLE = "UnsupportedPlsLanguageException";
|
|
94
|
+
const _V = "Voices";
|
|
95
|
+
const _VI = "VoiceId";
|
|
96
|
+
const _VL = "VoiceList";
|
|
97
|
+
const _Vo = "Voice";
|
|
98
|
+
const _c = "client";
|
|
99
|
+
const _e = "error";
|
|
100
|
+
const _h = "http";
|
|
101
|
+
const _hE = "httpError";
|
|
102
|
+
const _hH = "httpHeader";
|
|
103
|
+
const _hQ = "httpQuery";
|
|
104
|
+
const _m = "message";
|
|
105
|
+
const _s = "streaming";
|
|
106
|
+
const _se = "server";
|
|
107
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.polly";
|
|
108
|
+
const _xaR = "x-amzn-RequestCharacters";
|
|
109
|
+
const n0 = "com.amazonaws.polly";
|
|
110
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
111
|
+
import { EngineNotSupportedException as __EngineNotSupportedException, InvalidLexiconException as __InvalidLexiconException, InvalidNextTokenException as __InvalidNextTokenException, InvalidS3BucketException as __InvalidS3BucketException, InvalidS3KeyException as __InvalidS3KeyException, InvalidSampleRateException as __InvalidSampleRateException, InvalidSnsTopicArnException as __InvalidSnsTopicArnException, InvalidSsmlException as __InvalidSsmlException, InvalidTaskIdException as __InvalidTaskIdException, LanguageNotSupportedException as __LanguageNotSupportedException, LexiconNotFoundException as __LexiconNotFoundException, LexiconSizeExceededException as __LexiconSizeExceededException, MarksNotSupportedForFormatException as __MarksNotSupportedForFormatException, MaxLexemeLengthExceededException as __MaxLexemeLengthExceededException, MaxLexiconsNumberExceededException as __MaxLexiconsNumberExceededException, ServiceFailureException as __ServiceFailureException, SsmlMarksNotSupportedForTextTypeException as __SsmlMarksNotSupportedForTextTypeException, SynthesisTaskNotFoundException as __SynthesisTaskNotFoundException, TextLengthExceededException as __TextLengthExceededException, UnsupportedPlsAlphabetException as __UnsupportedPlsAlphabetException, UnsupportedPlsLanguageException as __UnsupportedPlsLanguageException, } from "../models/index";
|
|
112
|
+
import { PollyServiceException as __PollyServiceException } from "../models/PollyServiceException";
|
|
113
|
+
export var AudioStream = [
|
|
114
|
+
0,
|
|
115
|
+
n0,
|
|
116
|
+
_AS,
|
|
117
|
+
{
|
|
118
|
+
[_s]: 1,
|
|
119
|
+
},
|
|
120
|
+
42,
|
|
121
|
+
];
|
|
122
|
+
export var LexiconContent = [0, n0, _LC, 8, 0];
|
|
123
|
+
export var DeleteLexiconInput = [3, n0, _DLI, 0, [_N], [[0, 1]]];
|
|
124
|
+
export var DeleteLexiconOutput = [3, n0, _DLO, 0, [], []];
|
|
125
|
+
export var DescribeVoicesInput = [
|
|
126
|
+
3,
|
|
127
|
+
n0,
|
|
128
|
+
_DVI,
|
|
129
|
+
0,
|
|
130
|
+
[_E, _LCa, _IALC, _NT],
|
|
131
|
+
[
|
|
132
|
+
[
|
|
133
|
+
0,
|
|
134
|
+
{
|
|
135
|
+
[_hQ]: _E,
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
[
|
|
139
|
+
0,
|
|
140
|
+
{
|
|
141
|
+
[_hQ]: _LCa,
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
[
|
|
145
|
+
2,
|
|
146
|
+
{
|
|
147
|
+
[_hQ]: _IALC,
|
|
148
|
+
},
|
|
149
|
+
],
|
|
150
|
+
[
|
|
151
|
+
0,
|
|
152
|
+
{
|
|
153
|
+
[_hQ]: _NT,
|
|
154
|
+
},
|
|
155
|
+
],
|
|
156
|
+
],
|
|
157
|
+
];
|
|
158
|
+
export var DescribeVoicesOutput = [3, n0, _DVO, 0, [_V, _NT], [() => VoiceList, 0]];
|
|
159
|
+
export var EngineNotSupportedException = [
|
|
160
|
+
-3,
|
|
161
|
+
n0,
|
|
162
|
+
_ENSE,
|
|
163
|
+
{
|
|
164
|
+
[_e]: _c,
|
|
165
|
+
[_hE]: 400,
|
|
166
|
+
},
|
|
167
|
+
[_m],
|
|
168
|
+
[0],
|
|
169
|
+
];
|
|
170
|
+
TypeRegistry.for(n0).registerError(EngineNotSupportedException, __EngineNotSupportedException);
|
|
171
|
+
export var GetLexiconInput = [3, n0, _GLI, 0, [_N], [[0, 1]]];
|
|
172
|
+
export var GetLexiconOutput = [
|
|
173
|
+
3,
|
|
174
|
+
n0,
|
|
175
|
+
_GLO,
|
|
176
|
+
0,
|
|
177
|
+
[_L, _LA],
|
|
178
|
+
[[() => Lexicon, 0], () => LexiconAttributes],
|
|
179
|
+
];
|
|
180
|
+
export var GetSpeechSynthesisTaskInput = [3, n0, _GSSTI, 0, [_TI], [[0, 1]]];
|
|
181
|
+
export var GetSpeechSynthesisTaskOutput = [3, n0, _GSSTO, 0, [_ST], [() => SynthesisTask]];
|
|
182
|
+
export var InvalidLexiconException = [
|
|
183
|
+
-3,
|
|
184
|
+
n0,
|
|
185
|
+
_ILE,
|
|
186
|
+
{
|
|
187
|
+
[_e]: _c,
|
|
188
|
+
[_hE]: 400,
|
|
189
|
+
},
|
|
190
|
+
[_m],
|
|
191
|
+
[0],
|
|
192
|
+
];
|
|
193
|
+
TypeRegistry.for(n0).registerError(InvalidLexiconException, __InvalidLexiconException);
|
|
194
|
+
export var InvalidNextTokenException = [
|
|
195
|
+
-3,
|
|
196
|
+
n0,
|
|
197
|
+
_INTE,
|
|
198
|
+
{
|
|
199
|
+
[_e]: _c,
|
|
200
|
+
[_hE]: 400,
|
|
201
|
+
},
|
|
202
|
+
[_m],
|
|
203
|
+
[0],
|
|
204
|
+
];
|
|
205
|
+
TypeRegistry.for(n0).registerError(InvalidNextTokenException, __InvalidNextTokenException);
|
|
206
|
+
export var InvalidS3BucketException = [
|
|
207
|
+
-3,
|
|
208
|
+
n0,
|
|
209
|
+
_ISBE,
|
|
210
|
+
{
|
|
211
|
+
[_e]: _c,
|
|
212
|
+
[_hE]: 400,
|
|
213
|
+
},
|
|
214
|
+
[_m],
|
|
215
|
+
[0],
|
|
216
|
+
];
|
|
217
|
+
TypeRegistry.for(n0).registerError(InvalidS3BucketException, __InvalidS3BucketException);
|
|
218
|
+
export var InvalidS3KeyException = [
|
|
219
|
+
-3,
|
|
220
|
+
n0,
|
|
221
|
+
_ISKE,
|
|
222
|
+
{
|
|
223
|
+
[_e]: _c,
|
|
224
|
+
[_hE]: 400,
|
|
225
|
+
},
|
|
226
|
+
[_m],
|
|
227
|
+
[0],
|
|
228
|
+
];
|
|
229
|
+
TypeRegistry.for(n0).registerError(InvalidS3KeyException, __InvalidS3KeyException);
|
|
230
|
+
export var InvalidSampleRateException = [
|
|
231
|
+
-3,
|
|
232
|
+
n0,
|
|
233
|
+
_ISRE,
|
|
234
|
+
{
|
|
235
|
+
[_e]: _c,
|
|
236
|
+
[_hE]: 400,
|
|
237
|
+
},
|
|
238
|
+
[_m],
|
|
239
|
+
[0],
|
|
240
|
+
];
|
|
241
|
+
TypeRegistry.for(n0).registerError(InvalidSampleRateException, __InvalidSampleRateException);
|
|
242
|
+
export var InvalidSnsTopicArnException = [
|
|
243
|
+
-3,
|
|
244
|
+
n0,
|
|
245
|
+
_ISTAE,
|
|
246
|
+
{
|
|
247
|
+
[_e]: _c,
|
|
248
|
+
[_hE]: 400,
|
|
249
|
+
},
|
|
250
|
+
[_m],
|
|
251
|
+
[0],
|
|
252
|
+
];
|
|
253
|
+
TypeRegistry.for(n0).registerError(InvalidSnsTopicArnException, __InvalidSnsTopicArnException);
|
|
254
|
+
export var InvalidSsmlException = [
|
|
255
|
+
-3,
|
|
256
|
+
n0,
|
|
257
|
+
_ISE,
|
|
258
|
+
{
|
|
259
|
+
[_e]: _c,
|
|
260
|
+
[_hE]: 400,
|
|
261
|
+
},
|
|
262
|
+
[_m],
|
|
263
|
+
[0],
|
|
264
|
+
];
|
|
265
|
+
TypeRegistry.for(n0).registerError(InvalidSsmlException, __InvalidSsmlException);
|
|
266
|
+
export var InvalidTaskIdException = [
|
|
267
|
+
-3,
|
|
268
|
+
n0,
|
|
269
|
+
_ITIE,
|
|
270
|
+
{
|
|
271
|
+
[_e]: _c,
|
|
272
|
+
[_hE]: 400,
|
|
273
|
+
},
|
|
274
|
+
[_m],
|
|
275
|
+
[0],
|
|
276
|
+
];
|
|
277
|
+
TypeRegistry.for(n0).registerError(InvalidTaskIdException, __InvalidTaskIdException);
|
|
278
|
+
export var LanguageNotSupportedException = [
|
|
279
|
+
-3,
|
|
280
|
+
n0,
|
|
281
|
+
_LNSE,
|
|
282
|
+
{
|
|
283
|
+
[_e]: _c,
|
|
284
|
+
[_hE]: 400,
|
|
285
|
+
},
|
|
286
|
+
[_m],
|
|
287
|
+
[0],
|
|
288
|
+
];
|
|
289
|
+
TypeRegistry.for(n0).registerError(LanguageNotSupportedException, __LanguageNotSupportedException);
|
|
290
|
+
export var Lexicon = [3, n0, _L, 0, [_C, _N], [[() => LexiconContent, 0], 0]];
|
|
291
|
+
export var LexiconAttributes = [
|
|
292
|
+
3,
|
|
293
|
+
n0,
|
|
294
|
+
_LA,
|
|
295
|
+
0,
|
|
296
|
+
[_A, _LCa, _LM, _LAe, _LCe, _S],
|
|
297
|
+
[0, 0, 4, 0, 1, 1],
|
|
298
|
+
];
|
|
299
|
+
export var LexiconDescription = [3, n0, _LD, 0, [_N, _At], [0, () => LexiconAttributes]];
|
|
300
|
+
export var LexiconNotFoundException = [
|
|
301
|
+
-3,
|
|
302
|
+
n0,
|
|
303
|
+
_LNFE,
|
|
304
|
+
{
|
|
305
|
+
[_e]: _c,
|
|
306
|
+
[_hE]: 404,
|
|
307
|
+
},
|
|
308
|
+
[_m],
|
|
309
|
+
[0],
|
|
310
|
+
];
|
|
311
|
+
TypeRegistry.for(n0).registerError(LexiconNotFoundException, __LexiconNotFoundException);
|
|
312
|
+
export var LexiconSizeExceededException = [
|
|
313
|
+
-3,
|
|
314
|
+
n0,
|
|
315
|
+
_LSEE,
|
|
316
|
+
{
|
|
317
|
+
[_e]: _c,
|
|
318
|
+
[_hE]: 400,
|
|
319
|
+
},
|
|
320
|
+
[_m],
|
|
321
|
+
[0],
|
|
322
|
+
];
|
|
323
|
+
TypeRegistry.for(n0).registerError(LexiconSizeExceededException, __LexiconSizeExceededException);
|
|
324
|
+
export var ListLexiconsInput = [
|
|
325
|
+
3,
|
|
326
|
+
n0,
|
|
327
|
+
_LLI,
|
|
328
|
+
0,
|
|
329
|
+
[_NT],
|
|
330
|
+
[
|
|
331
|
+
[
|
|
332
|
+
0,
|
|
333
|
+
{
|
|
334
|
+
[_hQ]: _NT,
|
|
335
|
+
},
|
|
336
|
+
],
|
|
337
|
+
],
|
|
338
|
+
];
|
|
339
|
+
export var ListLexiconsOutput = [3, n0, _LLO, 0, [_Le, _NT], [() => LexiconDescriptionList, 0]];
|
|
340
|
+
export var ListSpeechSynthesisTasksInput = [
|
|
341
|
+
3,
|
|
342
|
+
n0,
|
|
343
|
+
_LSSTI,
|
|
344
|
+
0,
|
|
345
|
+
[_MR, _NT, _St],
|
|
346
|
+
[
|
|
347
|
+
[
|
|
348
|
+
1,
|
|
349
|
+
{
|
|
350
|
+
[_hQ]: _MR,
|
|
351
|
+
},
|
|
352
|
+
],
|
|
353
|
+
[
|
|
354
|
+
0,
|
|
355
|
+
{
|
|
356
|
+
[_hQ]: _NT,
|
|
357
|
+
},
|
|
358
|
+
],
|
|
359
|
+
[
|
|
360
|
+
0,
|
|
361
|
+
{
|
|
362
|
+
[_hQ]: _St,
|
|
363
|
+
},
|
|
364
|
+
],
|
|
365
|
+
],
|
|
366
|
+
];
|
|
367
|
+
export var ListSpeechSynthesisTasksOutput = [
|
|
368
|
+
3,
|
|
369
|
+
n0,
|
|
370
|
+
_LSSTO,
|
|
371
|
+
0,
|
|
372
|
+
[_NT, _STy],
|
|
373
|
+
[0, () => SynthesisTasks],
|
|
374
|
+
];
|
|
375
|
+
export var MarksNotSupportedForFormatException = [
|
|
376
|
+
-3,
|
|
377
|
+
n0,
|
|
378
|
+
_MNSFFE,
|
|
379
|
+
{
|
|
380
|
+
[_e]: _c,
|
|
381
|
+
[_hE]: 400,
|
|
382
|
+
},
|
|
383
|
+
[_m],
|
|
384
|
+
[0],
|
|
385
|
+
];
|
|
386
|
+
TypeRegistry.for(n0).registerError(MarksNotSupportedForFormatException, __MarksNotSupportedForFormatException);
|
|
387
|
+
export var MaxLexemeLengthExceededException = [
|
|
388
|
+
-3,
|
|
389
|
+
n0,
|
|
390
|
+
_MLLEE,
|
|
391
|
+
{
|
|
392
|
+
[_e]: _c,
|
|
393
|
+
[_hE]: 400,
|
|
394
|
+
},
|
|
395
|
+
[_m],
|
|
396
|
+
[0],
|
|
397
|
+
];
|
|
398
|
+
TypeRegistry.for(n0).registerError(MaxLexemeLengthExceededException, __MaxLexemeLengthExceededException);
|
|
399
|
+
export var MaxLexiconsNumberExceededException = [
|
|
400
|
+
-3,
|
|
401
|
+
n0,
|
|
402
|
+
_MLNEE,
|
|
403
|
+
{
|
|
404
|
+
[_e]: _c,
|
|
405
|
+
[_hE]: 400,
|
|
406
|
+
},
|
|
407
|
+
[_m],
|
|
408
|
+
[0],
|
|
409
|
+
];
|
|
410
|
+
TypeRegistry.for(n0).registerError(MaxLexiconsNumberExceededException, __MaxLexiconsNumberExceededException);
|
|
411
|
+
export var PutLexiconInput = [
|
|
412
|
+
3,
|
|
413
|
+
n0,
|
|
414
|
+
_PLI,
|
|
415
|
+
0,
|
|
416
|
+
[_N, _C],
|
|
417
|
+
[
|
|
418
|
+
[0, 1],
|
|
419
|
+
[() => LexiconContent, 0],
|
|
420
|
+
],
|
|
421
|
+
];
|
|
422
|
+
export var PutLexiconOutput = [3, n0, _PLO, 0, [], []];
|
|
423
|
+
export var ServiceFailureException = [
|
|
424
|
+
-3,
|
|
425
|
+
n0,
|
|
426
|
+
_SFE,
|
|
427
|
+
{
|
|
428
|
+
[_e]: _se,
|
|
429
|
+
[_hE]: 500,
|
|
430
|
+
},
|
|
431
|
+
[_m],
|
|
432
|
+
[0],
|
|
433
|
+
];
|
|
434
|
+
TypeRegistry.for(n0).registerError(ServiceFailureException, __ServiceFailureException);
|
|
435
|
+
export var SsmlMarksNotSupportedForTextTypeException = [
|
|
436
|
+
-3,
|
|
437
|
+
n0,
|
|
438
|
+
_SMNSFTTE,
|
|
439
|
+
{
|
|
440
|
+
[_e]: _c,
|
|
441
|
+
[_hE]: 400,
|
|
442
|
+
},
|
|
443
|
+
[_m],
|
|
444
|
+
[0],
|
|
445
|
+
];
|
|
446
|
+
TypeRegistry.for(n0).registerError(SsmlMarksNotSupportedForTextTypeException, __SsmlMarksNotSupportedForTextTypeException);
|
|
447
|
+
export var StartSpeechSynthesisTaskInput = [
|
|
448
|
+
3,
|
|
449
|
+
n0,
|
|
450
|
+
_SSSTI,
|
|
451
|
+
0,
|
|
452
|
+
[_E, _LCa, _LN, _OF, _OSBN, _OSKP, _SR, _STA, _SMT, _T, _TT, _VI],
|
|
453
|
+
[0, 0, 64 | 0, 0, 0, 0, 0, 0, 64 | 0, 0, 0, 0],
|
|
454
|
+
];
|
|
455
|
+
export var StartSpeechSynthesisTaskOutput = [3, n0, _SSSTO, 0, [_ST], [() => SynthesisTask]];
|
|
456
|
+
export var SynthesisTask = [
|
|
457
|
+
3,
|
|
458
|
+
n0,
|
|
459
|
+
_ST,
|
|
460
|
+
0,
|
|
461
|
+
[_E, _TI, _TS, _TSR, _OU, _CT, _RC, _STA, _LN, _OF, _SR, _SMT, _TT, _VI, _LCa],
|
|
462
|
+
[0, 0, 0, 0, 0, 4, 1, 0, 64 | 0, 0, 0, 64 | 0, 0, 0, 0],
|
|
463
|
+
];
|
|
464
|
+
export var SynthesisTaskNotFoundException = [
|
|
465
|
+
-3,
|
|
466
|
+
n0,
|
|
467
|
+
_STNFE,
|
|
468
|
+
{
|
|
469
|
+
[_e]: _c,
|
|
470
|
+
[_hE]: 400,
|
|
471
|
+
},
|
|
472
|
+
[_m],
|
|
473
|
+
[0],
|
|
474
|
+
];
|
|
475
|
+
TypeRegistry.for(n0).registerError(SynthesisTaskNotFoundException, __SynthesisTaskNotFoundException);
|
|
476
|
+
export var SynthesizeSpeechInput = [
|
|
477
|
+
3,
|
|
478
|
+
n0,
|
|
479
|
+
_SSI,
|
|
480
|
+
0,
|
|
481
|
+
[_E, _LCa, _LN, _OF, _SR, _SMT, _T, _TT, _VI],
|
|
482
|
+
[0, 0, 64 | 0, 0, 0, 64 | 0, 0, 0, 0],
|
|
483
|
+
];
|
|
484
|
+
export var SynthesizeSpeechOutput = [
|
|
485
|
+
3,
|
|
486
|
+
n0,
|
|
487
|
+
_SSO,
|
|
488
|
+
0,
|
|
489
|
+
[_AS, _CTo, _RC],
|
|
490
|
+
[
|
|
491
|
+
[() => AudioStream, 16],
|
|
492
|
+
[
|
|
493
|
+
0,
|
|
494
|
+
{
|
|
495
|
+
[_hH]: _CT_,
|
|
496
|
+
},
|
|
497
|
+
],
|
|
498
|
+
[
|
|
499
|
+
1,
|
|
500
|
+
{
|
|
501
|
+
[_hH]: _xaR,
|
|
502
|
+
},
|
|
503
|
+
],
|
|
504
|
+
],
|
|
505
|
+
];
|
|
506
|
+
export var TextLengthExceededException = [
|
|
507
|
+
-3,
|
|
508
|
+
n0,
|
|
509
|
+
_TLEE,
|
|
510
|
+
{
|
|
511
|
+
[_e]: _c,
|
|
512
|
+
[_hE]: 400,
|
|
513
|
+
},
|
|
514
|
+
[_m],
|
|
515
|
+
[0],
|
|
516
|
+
];
|
|
517
|
+
TypeRegistry.for(n0).registerError(TextLengthExceededException, __TextLengthExceededException);
|
|
518
|
+
export var UnsupportedPlsAlphabetException = [
|
|
519
|
+
-3,
|
|
520
|
+
n0,
|
|
521
|
+
_UPAE,
|
|
522
|
+
{
|
|
523
|
+
[_e]: _c,
|
|
524
|
+
[_hE]: 400,
|
|
525
|
+
},
|
|
526
|
+
[_m],
|
|
527
|
+
[0],
|
|
528
|
+
];
|
|
529
|
+
TypeRegistry.for(n0).registerError(UnsupportedPlsAlphabetException, __UnsupportedPlsAlphabetException);
|
|
530
|
+
export var UnsupportedPlsLanguageException = [
|
|
531
|
+
-3,
|
|
532
|
+
n0,
|
|
533
|
+
_UPLE,
|
|
534
|
+
{
|
|
535
|
+
[_e]: _c,
|
|
536
|
+
[_hE]: 400,
|
|
537
|
+
},
|
|
538
|
+
[_m],
|
|
539
|
+
[0],
|
|
540
|
+
];
|
|
541
|
+
TypeRegistry.for(n0).registerError(UnsupportedPlsLanguageException, __UnsupportedPlsLanguageException);
|
|
542
|
+
export var Voice = [
|
|
543
|
+
3,
|
|
544
|
+
n0,
|
|
545
|
+
_Vo,
|
|
546
|
+
0,
|
|
547
|
+
[_G, _I, _LCa, _LNa, _N, _ALC, _SE],
|
|
548
|
+
[0, 0, 0, 0, 0, 64 | 0, 64 | 0],
|
|
549
|
+
];
|
|
550
|
+
export var __Unit = "unit";
|
|
551
|
+
export var PollyServiceException = [-3, _sm, "PollyServiceException", 0, [], []];
|
|
552
|
+
TypeRegistry.for(_sm).registerError(PollyServiceException, __PollyServiceException);
|
|
553
|
+
export var EngineList = 64 | 0;
|
|
554
|
+
export var LanguageCodeList = 64 | 0;
|
|
555
|
+
export var LexiconDescriptionList = [1, n0, _LDL, 0, () => LexiconDescription];
|
|
556
|
+
export var LexiconNameList = 64 | 0;
|
|
557
|
+
export var SpeechMarkTypeList = 64 | 0;
|
|
558
|
+
export var SynthesisTasks = [1, n0, _STy, 0, () => SynthesisTask];
|
|
559
|
+
export var VoiceList = [1, n0, _VL, 0, () => Voice];
|
|
560
|
+
export var DeleteLexicon = [
|
|
561
|
+
9,
|
|
562
|
+
n0,
|
|
563
|
+
_DL,
|
|
564
|
+
{
|
|
565
|
+
[_h]: ["DELETE", "/v1/lexicons/{Name}", 200],
|
|
566
|
+
},
|
|
567
|
+
() => DeleteLexiconInput,
|
|
568
|
+
() => DeleteLexiconOutput,
|
|
569
|
+
];
|
|
570
|
+
export var DescribeVoices = [
|
|
571
|
+
9,
|
|
572
|
+
n0,
|
|
573
|
+
_DV,
|
|
574
|
+
{
|
|
575
|
+
[_h]: ["GET", "/v1/voices", 200],
|
|
576
|
+
},
|
|
577
|
+
() => DescribeVoicesInput,
|
|
578
|
+
() => DescribeVoicesOutput,
|
|
579
|
+
];
|
|
580
|
+
export var GetLexicon = [
|
|
581
|
+
9,
|
|
582
|
+
n0,
|
|
583
|
+
_GL,
|
|
584
|
+
{
|
|
585
|
+
[_h]: ["GET", "/v1/lexicons/{Name}", 200],
|
|
586
|
+
},
|
|
587
|
+
() => GetLexiconInput,
|
|
588
|
+
() => GetLexiconOutput,
|
|
589
|
+
];
|
|
590
|
+
export var GetSpeechSynthesisTask = [
|
|
591
|
+
9,
|
|
592
|
+
n0,
|
|
593
|
+
_GSST,
|
|
594
|
+
{
|
|
595
|
+
[_h]: ["GET", "/v1/synthesisTasks/{TaskId}", 200],
|
|
596
|
+
},
|
|
597
|
+
() => GetSpeechSynthesisTaskInput,
|
|
598
|
+
() => GetSpeechSynthesisTaskOutput,
|
|
599
|
+
];
|
|
600
|
+
export var ListLexicons = [
|
|
601
|
+
9,
|
|
602
|
+
n0,
|
|
603
|
+
_LL,
|
|
604
|
+
{
|
|
605
|
+
[_h]: ["GET", "/v1/lexicons", 200],
|
|
606
|
+
},
|
|
607
|
+
() => ListLexiconsInput,
|
|
608
|
+
() => ListLexiconsOutput,
|
|
609
|
+
];
|
|
610
|
+
export var ListSpeechSynthesisTasks = [
|
|
611
|
+
9,
|
|
612
|
+
n0,
|
|
613
|
+
_LSST,
|
|
614
|
+
{
|
|
615
|
+
[_h]: ["GET", "/v1/synthesisTasks", 200],
|
|
616
|
+
},
|
|
617
|
+
() => ListSpeechSynthesisTasksInput,
|
|
618
|
+
() => ListSpeechSynthesisTasksOutput,
|
|
619
|
+
];
|
|
620
|
+
export var PutLexicon = [
|
|
621
|
+
9,
|
|
622
|
+
n0,
|
|
623
|
+
_PL,
|
|
624
|
+
{
|
|
625
|
+
[_h]: ["PUT", "/v1/lexicons/{Name}", 200],
|
|
626
|
+
},
|
|
627
|
+
() => PutLexiconInput,
|
|
628
|
+
() => PutLexiconOutput,
|
|
629
|
+
];
|
|
630
|
+
export var StartSpeechSynthesisTask = [
|
|
631
|
+
9,
|
|
632
|
+
n0,
|
|
633
|
+
_SSST,
|
|
634
|
+
{
|
|
635
|
+
[_h]: ["POST", "/v1/synthesisTasks", 200],
|
|
636
|
+
},
|
|
637
|
+
() => StartSpeechSynthesisTaskInput,
|
|
638
|
+
() => StartSpeechSynthesisTaskOutput,
|
|
639
|
+
];
|
|
640
|
+
export var SynthesizeSpeech = [
|
|
641
|
+
9,
|
|
642
|
+
n0,
|
|
643
|
+
_SS,
|
|
644
|
+
{
|
|
645
|
+
[_h]: ["POST", "/v1/speech", 200],
|
|
646
|
+
},
|
|
647
|
+
() => SynthesizeSpeechInput,
|
|
648
|
+
() => SynthesizeSpeechOutput,
|
|
649
|
+
];
|
|
@@ -5,7 +5,7 @@ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-
|
|
|
5
5
|
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
6
6
|
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
8
|
-
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, SdkStreamMixinInjector as __SdkStreamMixinInjector, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
8
|
+
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, HttpRequest, HttpResponse, Logger as __Logger, Provider as __Provider, Provider, SdkStreamMixinInjector as __SdkStreamMixinInjector, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
9
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
10
|
import { DeleteLexiconCommandInput, DeleteLexiconCommandOutput } from "./commands/DeleteLexiconCommand";
|
|
11
11
|
import { DescribeVoicesCommandInput, DescribeVoicesCommandOutput } from "./commands/DescribeVoicesCommand";
|
|
@@ -150,6 +150,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
150
150
|
* Optional extensions
|
|
151
151
|
*/
|
|
152
152
|
extensions?: RuntimeExtension[];
|
|
153
|
+
/**
|
|
154
|
+
* The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
|
|
155
|
+
* may be overridden. A default will always be set by the client.
|
|
156
|
+
* Available options depend on the service's supported protocols and will not be validated by
|
|
157
|
+
* the client.
|
|
158
|
+
* @alpha
|
|
159
|
+
*
|
|
160
|
+
*/
|
|
161
|
+
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
153
162
|
/**
|
|
154
163
|
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
155
164
|
*/
|
|
@@ -1192,19 +1192,3 @@ export interface SynthesizeSpeechOutput {
|
|
|
1192
1192
|
*/
|
|
1193
1193
|
RequestCharacters?: number | undefined;
|
|
1194
1194
|
}
|
|
1195
|
-
/**
|
|
1196
|
-
* @internal
|
|
1197
|
-
*/
|
|
1198
|
-
export declare const LexiconFilterSensitiveLog: (obj: Lexicon) => any;
|
|
1199
|
-
/**
|
|
1200
|
-
* @internal
|
|
1201
|
-
*/
|
|
1202
|
-
export declare const GetLexiconOutputFilterSensitiveLog: (obj: GetLexiconOutput) => any;
|
|
1203
|
-
/**
|
|
1204
|
-
* @internal
|
|
1205
|
-
*/
|
|
1206
|
-
export declare const PutLexiconInputFilterSensitiveLog: (obj: PutLexiconInput) => any;
|
|
1207
|
-
/**
|
|
1208
|
-
* @internal
|
|
1209
|
-
*/
|
|
1210
|
-
export declare const SynthesizeSpeechOutputFilterSensitiveLog: (obj: SynthesizeSpeechOutput) => any;
|
|
@@ -29,6 +29,7 @@ export declare const getRuntimeConfig: (config: PollyClientConfig) => {
|
|
|
29
29
|
profile?: string;
|
|
30
30
|
logger: import("@smithy/types").Logger;
|
|
31
31
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
32
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
32
33
|
sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
|
|
33
34
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
34
35
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: PollyClientConfig) => {
|
|
|
31
31
|
profile?: string;
|
|
32
32
|
logger: import("@smithy/types").Logger;
|
|
33
33
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
34
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
34
35
|
sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
|
|
35
36
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
36
37
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|