@aws-sdk/client-polly 3.1075.0 → 3.1076.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 +1104 -16
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -1
- package/package.json +11 -11
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -46
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/PollyServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -299
- package/dist-cjs/runtimeConfig.browser.js +0 -37
- package/dist-cjs/runtimeConfig.js +0 -52
- package/dist-cjs/runtimeConfig.native.js +0 -16
- package/dist-cjs/runtimeConfig.shared.js +0 -40
- package/dist-cjs/schemas/schemas_0.js +0 -580
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
const { AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
-
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
3
|
-
const { NoOpLogger } = require("@smithy/core/client");
|
|
4
|
-
const { parseUrl } = require("@smithy/core/protocols");
|
|
5
|
-
const { fromBase64, fromUtf8, sdkStreamMixin, toBase64, toUtf8 } = require("@smithy/core/serde");
|
|
6
|
-
const { defaultPollyHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
|
|
7
|
-
const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
|
|
8
|
-
const { errorTypeRegistries } = require("./schemas/schemas_0");
|
|
9
|
-
exports.getRuntimeConfig = (config) => {
|
|
10
|
-
return {
|
|
11
|
-
apiVersion: "2016-06-10",
|
|
12
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
13
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
14
|
-
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
15
|
-
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
16
|
-
extensions: config?.extensions ?? [],
|
|
17
|
-
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultPollyHttpAuthSchemeProvider,
|
|
18
|
-
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
19
|
-
{
|
|
20
|
-
schemeId: "aws.auth#sigv4",
|
|
21
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
22
|
-
signer: new AwsSdkSigV4Signer(),
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
-
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
27
|
-
protocolSettings: config?.protocolSettings ?? {
|
|
28
|
-
defaultNamespace: "com.amazonaws.polly",
|
|
29
|
-
errorTypeRegistries,
|
|
30
|
-
xmlNamespace: "http://polly.amazonaws.com/doc/v1",
|
|
31
|
-
version: "2016-06-10",
|
|
32
|
-
serviceTarget: "Parrot_v1",
|
|
33
|
-
},
|
|
34
|
-
sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
|
|
35
|
-
serviceId: config?.serviceId ?? "Polly",
|
|
36
|
-
urlParser: config?.urlParser ?? parseUrl,
|
|
37
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
38
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
39
|
-
};
|
|
40
|
-
};
|
|
@@ -1,580 +0,0 @@
|
|
|
1
|
-
const _A = "Alphabet";
|
|
2
|
-
const _AC = "AudioChunk";
|
|
3
|
-
const _AE = "AudioEvent";
|
|
4
|
-
const _ALC = "AdditionalLanguageCodes";
|
|
5
|
-
const _AS = "AudioStream";
|
|
6
|
-
const _ASc = "ActionStream";
|
|
7
|
-
const _At = "Attributes";
|
|
8
|
-
const _C = "Content";
|
|
9
|
-
const _CSE = "CloseStreamEvent";
|
|
10
|
-
const _CT = "CreationTime";
|
|
11
|
-
const _CT_ = "Content-Type";
|
|
12
|
-
const _CTo = "ContentType";
|
|
13
|
-
const _DL = "DeleteLexicon";
|
|
14
|
-
const _DLI = "DeleteLexiconInput";
|
|
15
|
-
const _DLO = "DeleteLexiconOutput";
|
|
16
|
-
const _DV = "DescribeVoices";
|
|
17
|
-
const _DVI = "DescribeVoicesInput";
|
|
18
|
-
const _DVO = "DescribeVoicesOutput";
|
|
19
|
-
const _E = "Engine";
|
|
20
|
-
const _ENSE = "EngineNotSupportedException";
|
|
21
|
-
const _ES = "EventStream";
|
|
22
|
-
const _F = "Force";
|
|
23
|
-
const _FSC = "FlushStreamConfiguration";
|
|
24
|
-
const _G = "Gender";
|
|
25
|
-
const _GL = "GetLexicon";
|
|
26
|
-
const _GLI = "GetLexiconInput";
|
|
27
|
-
const _GLO = "GetLexiconOutput";
|
|
28
|
-
const _GSST = "GetSpeechSynthesisTask";
|
|
29
|
-
const _GSSTI = "GetSpeechSynthesisTaskInput";
|
|
30
|
-
const _GSSTO = "GetSpeechSynthesisTaskOutput";
|
|
31
|
-
const _I = "Id";
|
|
32
|
-
const _IALC = "IncludeAdditionalLanguageCodes";
|
|
33
|
-
const _ILE = "InvalidLexiconException";
|
|
34
|
-
const _INTE = "InvalidNextTokenException";
|
|
35
|
-
const _ISBE = "InvalidS3BucketException";
|
|
36
|
-
const _ISE = "InvalidSsmlException";
|
|
37
|
-
const _ISKE = "InvalidS3KeyException";
|
|
38
|
-
const _ISRE = "InvalidSampleRateException";
|
|
39
|
-
const _ISTAE = "InvalidSnsTopicArnException";
|
|
40
|
-
const _ITIE = "InvalidTaskIdException";
|
|
41
|
-
const _L = "Lexicon";
|
|
42
|
-
const _LA = "LexiconAttributes";
|
|
43
|
-
const _LAe = "LexiconArn";
|
|
44
|
-
const _LC = "LexiconContent";
|
|
45
|
-
const _LCa = "LanguageCode";
|
|
46
|
-
const _LCe = "LexemesCount";
|
|
47
|
-
const _LD = "LexiconDescription";
|
|
48
|
-
const _LDL = "LexiconDescriptionList";
|
|
49
|
-
const _LL = "ListLexicons";
|
|
50
|
-
const _LLI = "ListLexiconsInput";
|
|
51
|
-
const _LLO = "ListLexiconsOutput";
|
|
52
|
-
const _LM = "LastModified";
|
|
53
|
-
const _LN = "LexiconNames";
|
|
54
|
-
const _LNFE = "LexiconNotFoundException";
|
|
55
|
-
const _LNSE = "LanguageNotSupportedException";
|
|
56
|
-
const _LNa = "LanguageName";
|
|
57
|
-
const _LSEE = "LexiconSizeExceededException";
|
|
58
|
-
const _LSST = "ListSpeechSynthesisTasks";
|
|
59
|
-
const _LSSTI = "ListSpeechSynthesisTasksInput";
|
|
60
|
-
const _LSSTO = "ListSpeechSynthesisTasksOutput";
|
|
61
|
-
const _Le = "Lexicons";
|
|
62
|
-
const _MLLEE = "MaxLexemeLengthExceededException";
|
|
63
|
-
const _MLNEE = "MaxLexiconsNumberExceededException";
|
|
64
|
-
const _MNSFFE = "MarksNotSupportedForFormatException";
|
|
65
|
-
const _MR = "MaxResults";
|
|
66
|
-
const _N = "Name";
|
|
67
|
-
const _NT = "NextToken";
|
|
68
|
-
const _OF = "OutputFormat";
|
|
69
|
-
const _OSBN = "OutputS3BucketName";
|
|
70
|
-
const _OSKP = "OutputS3KeyPrefix";
|
|
71
|
-
const _OU = "OutputUri";
|
|
72
|
-
const _PL = "PutLexicon";
|
|
73
|
-
const _PLI = "PutLexiconInput";
|
|
74
|
-
const _PLO = "PutLexiconOutput";
|
|
75
|
-
const _RC = "RequestCharacters";
|
|
76
|
-
const _S = "Size";
|
|
77
|
-
const _SCE = "StreamClosedEvent";
|
|
78
|
-
const _SE = "SupportedEngines";
|
|
79
|
-
const _SFE = "ServiceFailureException";
|
|
80
|
-
const _SMNSFTTE = "SsmlMarksNotSupportedForTextTypeException";
|
|
81
|
-
const _SMT = "SpeechMarkTypes";
|
|
82
|
-
const _SQEE = "ServiceQuotaExceededException";
|
|
83
|
-
const _SR = "SampleRate";
|
|
84
|
-
const _SS = "SynthesizeSpeech";
|
|
85
|
-
const _SSI = "SynthesizeSpeechInput";
|
|
86
|
-
const _SSO = "SynthesizeSpeechOutput";
|
|
87
|
-
const _SSSS = "StartSpeechSynthesisStream";
|
|
88
|
-
const _SSSSAS = "StartSpeechSynthesisStreamActionStream";
|
|
89
|
-
const _SSSSES = "StartSpeechSynthesisStreamEventStream";
|
|
90
|
-
const _SSSSI = "StartSpeechSynthesisStreamInput";
|
|
91
|
-
const _SSSSO = "StartSpeechSynthesisStreamOutput";
|
|
92
|
-
const _SSST = "StartSpeechSynthesisTask";
|
|
93
|
-
const _SSSTI = "StartSpeechSynthesisTaskInput";
|
|
94
|
-
const _SSSTO = "StartSpeechSynthesisTaskOutput";
|
|
95
|
-
const _ST = "SynthesisTask";
|
|
96
|
-
const _STA = "SnsTopicArn";
|
|
97
|
-
const _STNFE = "SynthesisTaskNotFoundException";
|
|
98
|
-
const _STy = "SynthesisTasks";
|
|
99
|
-
const _St = "Status";
|
|
100
|
-
const _T = "Text";
|
|
101
|
-
const _TE = "ThrottlingException";
|
|
102
|
-
const _TEe = "TextEvent";
|
|
103
|
-
const _TI = "TaskId";
|
|
104
|
-
const _TLEE = "TextLengthExceededException";
|
|
105
|
-
const _TR = "ThrottlingReason";
|
|
106
|
-
const _TRL = "ThrottlingReasonList";
|
|
107
|
-
const _TS = "TaskStatus";
|
|
108
|
-
const _TSR = "TaskStatusReason";
|
|
109
|
-
const _TT = "TextType";
|
|
110
|
-
const _UPAE = "UnsupportedPlsAlphabetException";
|
|
111
|
-
const _UPLE = "UnsupportedPlsLanguageException";
|
|
112
|
-
const _V = "Voices";
|
|
113
|
-
const _VE = "ValidationException";
|
|
114
|
-
const _VEF = "ValidationExceptionField";
|
|
115
|
-
const _VEFL = "ValidationExceptionFieldList";
|
|
116
|
-
const _VI = "VoiceId";
|
|
117
|
-
const _VL = "VoiceList";
|
|
118
|
-
const _Vo = "Voice";
|
|
119
|
-
const _aQE = "awsQueryError";
|
|
120
|
-
const _c = "client";
|
|
121
|
-
const _e = "error";
|
|
122
|
-
const _eP = "eventPayload";
|
|
123
|
-
const _f = "fields";
|
|
124
|
-
const _h = "http";
|
|
125
|
-
const _hE = "httpError";
|
|
126
|
-
const _hH = "httpHeader";
|
|
127
|
-
const _hQ = "httpQuery";
|
|
128
|
-
const _m = "message";
|
|
129
|
-
const _n = "name";
|
|
130
|
-
const _qC = "quotaCode";
|
|
131
|
-
const _r = "reason";
|
|
132
|
-
const _re = "resource";
|
|
133
|
-
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.polly";
|
|
134
|
-
const _sC = "serviceCode";
|
|
135
|
-
const _se = "server";
|
|
136
|
-
const _st = "streaming";
|
|
137
|
-
const _tR = "throttlingReasons";
|
|
138
|
-
const _xaE = "x-amzn-Engine";
|
|
139
|
-
const _xaL = "x-amzn-LanguageCode";
|
|
140
|
-
const _xaL_ = "x-amzn-LexiconNames";
|
|
141
|
-
const _xaO = "x-amzn-OutputFormat";
|
|
142
|
-
const _xaR = "x-amzn-RequestCharacters";
|
|
143
|
-
const _xaS = "x-amzn-SampleRate";
|
|
144
|
-
const _xaV = "x-amzn-VoiceId";
|
|
145
|
-
const n0 = "com.amazonaws.polly";
|
|
146
|
-
const { TypeRegistry } = require("@smithy/core/schema");
|
|
147
|
-
const { EngineNotSupportedException, InvalidLexiconException, InvalidNextTokenException, InvalidS3BucketException, InvalidS3KeyException, InvalidSampleRateException, InvalidSnsTopicArnException, InvalidSsmlException, InvalidTaskIdException, LanguageNotSupportedException, LexiconNotFoundException, LexiconSizeExceededException, MarksNotSupportedForFormatException, MaxLexemeLengthExceededException, MaxLexiconsNumberExceededException, ServiceFailureException, ServiceQuotaExceededException, SsmlMarksNotSupportedForTextTypeException, SynthesisTaskNotFoundException, TextLengthExceededException, ThrottlingException, UnsupportedPlsAlphabetException, UnsupportedPlsLanguageException, ValidationException } = require("../models/errors");
|
|
148
|
-
const { PollyServiceException } = require("../models/PollyServiceException");
|
|
149
|
-
const _s_registry = TypeRegistry.for(_s);
|
|
150
|
-
const PollyServiceException$ = [-3, _s, "PollyServiceException", 0, [], []];
|
|
151
|
-
exports.PollyServiceException$ = PollyServiceException$;
|
|
152
|
-
_s_registry.registerError(PollyServiceException$, PollyServiceException);
|
|
153
|
-
const n0_registry = TypeRegistry.for(n0);
|
|
154
|
-
const EngineNotSupportedException$ = [-3, n0, _ENSE,
|
|
155
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
156
|
-
[_m],
|
|
157
|
-
[0]
|
|
158
|
-
];
|
|
159
|
-
exports.EngineNotSupportedException$ = EngineNotSupportedException$;
|
|
160
|
-
n0_registry.registerError(EngineNotSupportedException$, EngineNotSupportedException);
|
|
161
|
-
const InvalidLexiconException$ = [-3, n0, _ILE,
|
|
162
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
163
|
-
[_m],
|
|
164
|
-
[0]
|
|
165
|
-
];
|
|
166
|
-
exports.InvalidLexiconException$ = InvalidLexiconException$;
|
|
167
|
-
n0_registry.registerError(InvalidLexiconException$, InvalidLexiconException);
|
|
168
|
-
const InvalidNextTokenException$ = [-3, n0, _INTE,
|
|
169
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
170
|
-
[_m],
|
|
171
|
-
[0]
|
|
172
|
-
];
|
|
173
|
-
exports.InvalidNextTokenException$ = InvalidNextTokenException$;
|
|
174
|
-
n0_registry.registerError(InvalidNextTokenException$, InvalidNextTokenException);
|
|
175
|
-
const InvalidS3BucketException$ = [-3, n0, _ISBE,
|
|
176
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
177
|
-
[_m],
|
|
178
|
-
[0]
|
|
179
|
-
];
|
|
180
|
-
exports.InvalidS3BucketException$ = InvalidS3BucketException$;
|
|
181
|
-
n0_registry.registerError(InvalidS3BucketException$, InvalidS3BucketException);
|
|
182
|
-
const InvalidS3KeyException$ = [-3, n0, _ISKE,
|
|
183
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
184
|
-
[_m],
|
|
185
|
-
[0]
|
|
186
|
-
];
|
|
187
|
-
exports.InvalidS3KeyException$ = InvalidS3KeyException$;
|
|
188
|
-
n0_registry.registerError(InvalidS3KeyException$, InvalidS3KeyException);
|
|
189
|
-
const InvalidSampleRateException$ = [-3, n0, _ISRE,
|
|
190
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
191
|
-
[_m],
|
|
192
|
-
[0]
|
|
193
|
-
];
|
|
194
|
-
exports.InvalidSampleRateException$ = InvalidSampleRateException$;
|
|
195
|
-
n0_registry.registerError(InvalidSampleRateException$, InvalidSampleRateException);
|
|
196
|
-
const InvalidSnsTopicArnException$ = [-3, n0, _ISTAE,
|
|
197
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
198
|
-
[_m],
|
|
199
|
-
[0]
|
|
200
|
-
];
|
|
201
|
-
exports.InvalidSnsTopicArnException$ = InvalidSnsTopicArnException$;
|
|
202
|
-
n0_registry.registerError(InvalidSnsTopicArnException$, InvalidSnsTopicArnException);
|
|
203
|
-
const InvalidSsmlException$ = [-3, n0, _ISE,
|
|
204
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
205
|
-
[_m],
|
|
206
|
-
[0]
|
|
207
|
-
];
|
|
208
|
-
exports.InvalidSsmlException$ = InvalidSsmlException$;
|
|
209
|
-
n0_registry.registerError(InvalidSsmlException$, InvalidSsmlException);
|
|
210
|
-
const InvalidTaskIdException$ = [-3, n0, _ITIE,
|
|
211
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
212
|
-
[_m],
|
|
213
|
-
[0]
|
|
214
|
-
];
|
|
215
|
-
exports.InvalidTaskIdException$ = InvalidTaskIdException$;
|
|
216
|
-
n0_registry.registerError(InvalidTaskIdException$, InvalidTaskIdException);
|
|
217
|
-
const LanguageNotSupportedException$ = [-3, n0, _LNSE,
|
|
218
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
219
|
-
[_m],
|
|
220
|
-
[0]
|
|
221
|
-
];
|
|
222
|
-
exports.LanguageNotSupportedException$ = LanguageNotSupportedException$;
|
|
223
|
-
n0_registry.registerError(LanguageNotSupportedException$, LanguageNotSupportedException);
|
|
224
|
-
const LexiconNotFoundException$ = [-3, n0, _LNFE,
|
|
225
|
-
{ [_e]: _c, [_hE]: 404 },
|
|
226
|
-
[_m],
|
|
227
|
-
[0]
|
|
228
|
-
];
|
|
229
|
-
exports.LexiconNotFoundException$ = LexiconNotFoundException$;
|
|
230
|
-
n0_registry.registerError(LexiconNotFoundException$, LexiconNotFoundException);
|
|
231
|
-
const LexiconSizeExceededException$ = [-3, n0, _LSEE,
|
|
232
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
233
|
-
[_m],
|
|
234
|
-
[0]
|
|
235
|
-
];
|
|
236
|
-
exports.LexiconSizeExceededException$ = LexiconSizeExceededException$;
|
|
237
|
-
n0_registry.registerError(LexiconSizeExceededException$, LexiconSizeExceededException);
|
|
238
|
-
const MarksNotSupportedForFormatException$ = [-3, n0, _MNSFFE,
|
|
239
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
240
|
-
[_m],
|
|
241
|
-
[0]
|
|
242
|
-
];
|
|
243
|
-
exports.MarksNotSupportedForFormatException$ = MarksNotSupportedForFormatException$;
|
|
244
|
-
n0_registry.registerError(MarksNotSupportedForFormatException$, MarksNotSupportedForFormatException);
|
|
245
|
-
const MaxLexemeLengthExceededException$ = [-3, n0, _MLLEE,
|
|
246
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
247
|
-
[_m],
|
|
248
|
-
[0]
|
|
249
|
-
];
|
|
250
|
-
exports.MaxLexemeLengthExceededException$ = MaxLexemeLengthExceededException$;
|
|
251
|
-
n0_registry.registerError(MaxLexemeLengthExceededException$, MaxLexemeLengthExceededException);
|
|
252
|
-
const MaxLexiconsNumberExceededException$ = [-3, n0, _MLNEE,
|
|
253
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
254
|
-
[_m],
|
|
255
|
-
[0]
|
|
256
|
-
];
|
|
257
|
-
exports.MaxLexiconsNumberExceededException$ = MaxLexiconsNumberExceededException$;
|
|
258
|
-
n0_registry.registerError(MaxLexiconsNumberExceededException$, MaxLexiconsNumberExceededException);
|
|
259
|
-
const ServiceFailureException$ = [-3, n0, _SFE,
|
|
260
|
-
{ [_e]: _se, [_hE]: 500 },
|
|
261
|
-
[_m],
|
|
262
|
-
[0]
|
|
263
|
-
];
|
|
264
|
-
exports.ServiceFailureException$ = ServiceFailureException$;
|
|
265
|
-
n0_registry.registerError(ServiceFailureException$, ServiceFailureException);
|
|
266
|
-
const ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
267
|
-
{ [_e]: _c, [_hE]: 402 },
|
|
268
|
-
[_m, _qC, _sC],
|
|
269
|
-
[0, 0, 0], 3
|
|
270
|
-
];
|
|
271
|
-
exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
|
|
272
|
-
n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
|
|
273
|
-
const SsmlMarksNotSupportedForTextTypeException$ = [-3, n0, _SMNSFTTE,
|
|
274
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
275
|
-
[_m],
|
|
276
|
-
[0]
|
|
277
|
-
];
|
|
278
|
-
exports.SsmlMarksNotSupportedForTextTypeException$ = SsmlMarksNotSupportedForTextTypeException$;
|
|
279
|
-
n0_registry.registerError(SsmlMarksNotSupportedForTextTypeException$, SsmlMarksNotSupportedForTextTypeException);
|
|
280
|
-
const SynthesisTaskNotFoundException$ = [-3, n0, _STNFE,
|
|
281
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
282
|
-
[_m],
|
|
283
|
-
[0]
|
|
284
|
-
];
|
|
285
|
-
exports.SynthesisTaskNotFoundException$ = SynthesisTaskNotFoundException$;
|
|
286
|
-
n0_registry.registerError(SynthesisTaskNotFoundException$, SynthesisTaskNotFoundException);
|
|
287
|
-
const TextLengthExceededException$ = [-3, n0, _TLEE,
|
|
288
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
289
|
-
[_m],
|
|
290
|
-
[0]
|
|
291
|
-
];
|
|
292
|
-
exports.TextLengthExceededException$ = TextLengthExceededException$;
|
|
293
|
-
n0_registry.registerError(TextLengthExceededException$, TextLengthExceededException);
|
|
294
|
-
const ThrottlingException$ = [-3, n0, _TE,
|
|
295
|
-
{ [_aQE]: [`Throttling`, 400], [_e]: _c, [_hE]: 400 },
|
|
296
|
-
[_m, _tR],
|
|
297
|
-
[0, () => ThrottlingReasonList]
|
|
298
|
-
];
|
|
299
|
-
exports.ThrottlingException$ = ThrottlingException$;
|
|
300
|
-
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
301
|
-
const UnsupportedPlsAlphabetException$ = [-3, n0, _UPAE,
|
|
302
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
303
|
-
[_m],
|
|
304
|
-
[0]
|
|
305
|
-
];
|
|
306
|
-
exports.UnsupportedPlsAlphabetException$ = UnsupportedPlsAlphabetException$;
|
|
307
|
-
n0_registry.registerError(UnsupportedPlsAlphabetException$, UnsupportedPlsAlphabetException);
|
|
308
|
-
const UnsupportedPlsLanguageException$ = [-3, n0, _UPLE,
|
|
309
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
310
|
-
[_m],
|
|
311
|
-
[0]
|
|
312
|
-
];
|
|
313
|
-
exports.UnsupportedPlsLanguageException$ = UnsupportedPlsLanguageException$;
|
|
314
|
-
n0_registry.registerError(UnsupportedPlsLanguageException$, UnsupportedPlsLanguageException);
|
|
315
|
-
const ValidationException$ = [-3, n0, _VE,
|
|
316
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
317
|
-
[_m, _r, _f],
|
|
318
|
-
[0, 0, () => ValidationExceptionFieldList], 2
|
|
319
|
-
];
|
|
320
|
-
exports.ValidationException$ = ValidationException$;
|
|
321
|
-
n0_registry.registerError(ValidationException$, ValidationException);
|
|
322
|
-
exports.errorTypeRegistries = [
|
|
323
|
-
_s_registry,
|
|
324
|
-
n0_registry,
|
|
325
|
-
];
|
|
326
|
-
var AudioStream = [0, n0, _AS, { [_st]: 1 }, 42];
|
|
327
|
-
var LexiconContent = [0, n0, _LC, 8, 0];
|
|
328
|
-
const AudioEvent$ = [3, n0, _AE,
|
|
329
|
-
0,
|
|
330
|
-
[_AC],
|
|
331
|
-
[[21, { [_eP]: 1 }]]
|
|
332
|
-
];
|
|
333
|
-
exports.AudioEvent$ = AudioEvent$;
|
|
334
|
-
const CloseStreamEvent$ = [3, n0, _CSE,
|
|
335
|
-
0,
|
|
336
|
-
[],
|
|
337
|
-
[]
|
|
338
|
-
];
|
|
339
|
-
exports.CloseStreamEvent$ = CloseStreamEvent$;
|
|
340
|
-
const DeleteLexiconInput$ = [3, n0, _DLI,
|
|
341
|
-
0,
|
|
342
|
-
[_N],
|
|
343
|
-
[[0, 1]], 1
|
|
344
|
-
];
|
|
345
|
-
exports.DeleteLexiconInput$ = DeleteLexiconInput$;
|
|
346
|
-
const DeleteLexiconOutput$ = [3, n0, _DLO,
|
|
347
|
-
0,
|
|
348
|
-
[],
|
|
349
|
-
[]
|
|
350
|
-
];
|
|
351
|
-
exports.DeleteLexiconOutput$ = DeleteLexiconOutput$;
|
|
352
|
-
const DescribeVoicesInput$ = [3, n0, _DVI,
|
|
353
|
-
0,
|
|
354
|
-
[_E, _LCa, _IALC, _NT],
|
|
355
|
-
[[0, { [_hQ]: _E }], [0, { [_hQ]: _LCa }], [2, { [_hQ]: _IALC }], [0, { [_hQ]: _NT }]]
|
|
356
|
-
];
|
|
357
|
-
exports.DescribeVoicesInput$ = DescribeVoicesInput$;
|
|
358
|
-
const DescribeVoicesOutput$ = [3, n0, _DVO,
|
|
359
|
-
0,
|
|
360
|
-
[_V, _NT],
|
|
361
|
-
[() => VoiceList, 0]
|
|
362
|
-
];
|
|
363
|
-
exports.DescribeVoicesOutput$ = DescribeVoicesOutput$;
|
|
364
|
-
const FlushStreamConfiguration$ = [3, n0, _FSC,
|
|
365
|
-
0,
|
|
366
|
-
[_F],
|
|
367
|
-
[2]
|
|
368
|
-
];
|
|
369
|
-
exports.FlushStreamConfiguration$ = FlushStreamConfiguration$;
|
|
370
|
-
const GetLexiconInput$ = [3, n0, _GLI,
|
|
371
|
-
0,
|
|
372
|
-
[_N],
|
|
373
|
-
[[0, 1]], 1
|
|
374
|
-
];
|
|
375
|
-
exports.GetLexiconInput$ = GetLexiconInput$;
|
|
376
|
-
const GetLexiconOutput$ = [3, n0, _GLO,
|
|
377
|
-
0,
|
|
378
|
-
[_L, _LA],
|
|
379
|
-
[[() => Lexicon$, 0], () => LexiconAttributes$]
|
|
380
|
-
];
|
|
381
|
-
exports.GetLexiconOutput$ = GetLexiconOutput$;
|
|
382
|
-
const GetSpeechSynthesisTaskInput$ = [3, n0, _GSSTI,
|
|
383
|
-
0,
|
|
384
|
-
[_TI],
|
|
385
|
-
[[0, 1]], 1
|
|
386
|
-
];
|
|
387
|
-
exports.GetSpeechSynthesisTaskInput$ = GetSpeechSynthesisTaskInput$;
|
|
388
|
-
const GetSpeechSynthesisTaskOutput$ = [3, n0, _GSSTO,
|
|
389
|
-
0,
|
|
390
|
-
[_ST],
|
|
391
|
-
[() => SynthesisTask$]
|
|
392
|
-
];
|
|
393
|
-
exports.GetSpeechSynthesisTaskOutput$ = GetSpeechSynthesisTaskOutput$;
|
|
394
|
-
const Lexicon$ = [3, n0, _L,
|
|
395
|
-
0,
|
|
396
|
-
[_C, _N],
|
|
397
|
-
[[() => LexiconContent, 0], 0]
|
|
398
|
-
];
|
|
399
|
-
exports.Lexicon$ = Lexicon$;
|
|
400
|
-
const LexiconAttributes$ = [3, n0, _LA,
|
|
401
|
-
0,
|
|
402
|
-
[_A, _LCa, _LM, _LAe, _LCe, _S],
|
|
403
|
-
[0, 0, 4, 0, 1, 1]
|
|
404
|
-
];
|
|
405
|
-
exports.LexiconAttributes$ = LexiconAttributes$;
|
|
406
|
-
const LexiconDescription$ = [3, n0, _LD,
|
|
407
|
-
0,
|
|
408
|
-
[_N, _At],
|
|
409
|
-
[0, () => LexiconAttributes$]
|
|
410
|
-
];
|
|
411
|
-
exports.LexiconDescription$ = LexiconDescription$;
|
|
412
|
-
const ListLexiconsInput$ = [3, n0, _LLI,
|
|
413
|
-
0,
|
|
414
|
-
[_NT],
|
|
415
|
-
[[0, { [_hQ]: _NT }]]
|
|
416
|
-
];
|
|
417
|
-
exports.ListLexiconsInput$ = ListLexiconsInput$;
|
|
418
|
-
const ListLexiconsOutput$ = [3, n0, _LLO,
|
|
419
|
-
0,
|
|
420
|
-
[_Le, _NT],
|
|
421
|
-
[() => LexiconDescriptionList, 0]
|
|
422
|
-
];
|
|
423
|
-
exports.ListLexiconsOutput$ = ListLexiconsOutput$;
|
|
424
|
-
const ListSpeechSynthesisTasksInput$ = [3, n0, _LSSTI,
|
|
425
|
-
0,
|
|
426
|
-
[_MR, _NT, _St],
|
|
427
|
-
[[1, { [_hQ]: _MR }], [0, { [_hQ]: _NT }], [0, { [_hQ]: _St }]]
|
|
428
|
-
];
|
|
429
|
-
exports.ListSpeechSynthesisTasksInput$ = ListSpeechSynthesisTasksInput$;
|
|
430
|
-
const ListSpeechSynthesisTasksOutput$ = [3, n0, _LSSTO,
|
|
431
|
-
0,
|
|
432
|
-
[_NT, _STy],
|
|
433
|
-
[0, () => SynthesisTasks]
|
|
434
|
-
];
|
|
435
|
-
exports.ListSpeechSynthesisTasksOutput$ = ListSpeechSynthesisTasksOutput$;
|
|
436
|
-
const PutLexiconInput$ = [3, n0, _PLI,
|
|
437
|
-
0,
|
|
438
|
-
[_N, _C],
|
|
439
|
-
[[0, 1], [() => LexiconContent, 0]], 2
|
|
440
|
-
];
|
|
441
|
-
exports.PutLexiconInput$ = PutLexiconInput$;
|
|
442
|
-
const PutLexiconOutput$ = [3, n0, _PLO,
|
|
443
|
-
0,
|
|
444
|
-
[],
|
|
445
|
-
[]
|
|
446
|
-
];
|
|
447
|
-
exports.PutLexiconOutput$ = PutLexiconOutput$;
|
|
448
|
-
const StartSpeechSynthesisStreamInput$ = [3, n0, _SSSSI,
|
|
449
|
-
0,
|
|
450
|
-
[_E, _OF, _VI, _LCa, _LN, _SR, _ASc],
|
|
451
|
-
[[0, { [_hH]: _xaE }], [0, { [_hH]: _xaO }], [0, { [_hH]: _xaV }], [0, { [_hH]: _xaL }], [64 | 0, { [_hH]: _xaL_ }], [0, { [_hH]: _xaS }], [() => StartSpeechSynthesisStreamActionStream$, 16]], 3
|
|
452
|
-
];
|
|
453
|
-
exports.StartSpeechSynthesisStreamInput$ = StartSpeechSynthesisStreamInput$;
|
|
454
|
-
const StartSpeechSynthesisStreamOutput$ = [3, n0, _SSSSO,
|
|
455
|
-
0,
|
|
456
|
-
[_ES],
|
|
457
|
-
[[() => StartSpeechSynthesisStreamEventStream$, 16]]
|
|
458
|
-
];
|
|
459
|
-
exports.StartSpeechSynthesisStreamOutput$ = StartSpeechSynthesisStreamOutput$;
|
|
460
|
-
const StartSpeechSynthesisTaskInput$ = [3, n0, _SSSTI,
|
|
461
|
-
0,
|
|
462
|
-
[_OF, _OSBN, _T, _VI, _E, _LCa, _LN, _OSKP, _SR, _STA, _SMT, _TT],
|
|
463
|
-
[0, 0, 0, 0, 0, 0, 64 | 0, 0, 0, 0, 64 | 0, 0], 4
|
|
464
|
-
];
|
|
465
|
-
exports.StartSpeechSynthesisTaskInput$ = StartSpeechSynthesisTaskInput$;
|
|
466
|
-
const StartSpeechSynthesisTaskOutput$ = [3, n0, _SSSTO,
|
|
467
|
-
0,
|
|
468
|
-
[_ST],
|
|
469
|
-
[() => SynthesisTask$]
|
|
470
|
-
];
|
|
471
|
-
exports.StartSpeechSynthesisTaskOutput$ = StartSpeechSynthesisTaskOutput$;
|
|
472
|
-
const StreamClosedEvent$ = [3, n0, _SCE,
|
|
473
|
-
0,
|
|
474
|
-
[_RC],
|
|
475
|
-
[1]
|
|
476
|
-
];
|
|
477
|
-
exports.StreamClosedEvent$ = StreamClosedEvent$;
|
|
478
|
-
const SynthesisTask$ = [3, n0, _ST,
|
|
479
|
-
0,
|
|
480
|
-
[_E, _TI, _TS, _TSR, _OU, _CT, _RC, _STA, _LN, _OF, _SR, _SMT, _TT, _VI, _LCa],
|
|
481
|
-
[0, 0, 0, 0, 0, 4, 1, 0, 64 | 0, 0, 0, 64 | 0, 0, 0, 0]
|
|
482
|
-
];
|
|
483
|
-
exports.SynthesisTask$ = SynthesisTask$;
|
|
484
|
-
const SynthesizeSpeechInput$ = [3, n0, _SSI,
|
|
485
|
-
0,
|
|
486
|
-
[_OF, _T, _VI, _E, _LCa, _LN, _SR, _SMT, _TT],
|
|
487
|
-
[0, 0, 0, 0, 0, 64 | 0, 0, 64 | 0, 0], 3
|
|
488
|
-
];
|
|
489
|
-
exports.SynthesizeSpeechInput$ = SynthesizeSpeechInput$;
|
|
490
|
-
const SynthesizeSpeechOutput$ = [3, n0, _SSO,
|
|
491
|
-
0,
|
|
492
|
-
[_AS, _CTo, _RC],
|
|
493
|
-
[[() => AudioStream, 16], [0, { [_hH]: _CT_ }], [1, { [_hH]: _xaR }]]
|
|
494
|
-
];
|
|
495
|
-
exports.SynthesizeSpeechOutput$ = SynthesizeSpeechOutput$;
|
|
496
|
-
const TextEvent$ = [3, n0, _TEe,
|
|
497
|
-
0,
|
|
498
|
-
[_T, _TT, _FSC],
|
|
499
|
-
[0, 0, () => FlushStreamConfiguration$], 1
|
|
500
|
-
];
|
|
501
|
-
exports.TextEvent$ = TextEvent$;
|
|
502
|
-
const ThrottlingReason$ = [3, n0, _TR,
|
|
503
|
-
0,
|
|
504
|
-
[_r, _re],
|
|
505
|
-
[0, 0]
|
|
506
|
-
];
|
|
507
|
-
exports.ThrottlingReason$ = ThrottlingReason$;
|
|
508
|
-
const ValidationExceptionField$ = [3, n0, _VEF,
|
|
509
|
-
0,
|
|
510
|
-
[_n, _m],
|
|
511
|
-
[0, 0], 2
|
|
512
|
-
];
|
|
513
|
-
exports.ValidationExceptionField$ = ValidationExceptionField$;
|
|
514
|
-
const Voice$ = [3, n0, _Vo,
|
|
515
|
-
0,
|
|
516
|
-
[_G, _I, _LCa, _LNa, _N, _ALC, _SE],
|
|
517
|
-
[0, 0, 0, 0, 0, 64 | 0, 64 | 0]
|
|
518
|
-
];
|
|
519
|
-
exports.Voice$ = Voice$;
|
|
520
|
-
var EngineList = 64 | 0;
|
|
521
|
-
var LanguageCodeList = 64 | 0;
|
|
522
|
-
var LexiconDescriptionList = [1, n0, _LDL,
|
|
523
|
-
0, () => LexiconDescription$
|
|
524
|
-
];
|
|
525
|
-
var LexiconNameList = 64 | 0;
|
|
526
|
-
var SpeechMarkTypeList = 64 | 0;
|
|
527
|
-
var SynthesisTasks = [1, n0, _STy,
|
|
528
|
-
0, () => SynthesisTask$
|
|
529
|
-
];
|
|
530
|
-
var ThrottlingReasonList = [1, n0, _TRL,
|
|
531
|
-
0, () => ThrottlingReason$
|
|
532
|
-
];
|
|
533
|
-
var ValidationExceptionFieldList = [1, n0, _VEFL,
|
|
534
|
-
0, () => ValidationExceptionField$
|
|
535
|
-
];
|
|
536
|
-
var VoiceList = [1, n0, _VL,
|
|
537
|
-
0, () => Voice$
|
|
538
|
-
];
|
|
539
|
-
const StartSpeechSynthesisStreamActionStream$ = [4, n0, _SSSSAS,
|
|
540
|
-
{ [_st]: 1 },
|
|
541
|
-
[_TEe, _CSE],
|
|
542
|
-
[() => TextEvent$, () => CloseStreamEvent$]
|
|
543
|
-
];
|
|
544
|
-
exports.StartSpeechSynthesisStreamActionStream$ = StartSpeechSynthesisStreamActionStream$;
|
|
545
|
-
const StartSpeechSynthesisStreamEventStream$ = [4, n0, _SSSSES,
|
|
546
|
-
{ [_st]: 1 },
|
|
547
|
-
[_AE, _SCE, _VE, _SQEE, _SFE, _TE],
|
|
548
|
-
[[() => AudioEvent$, 0], () => StreamClosedEvent$, [() => ValidationException$, 0], [() => ServiceQuotaExceededException$, 0], [() => ServiceFailureException$, 0], [() => ThrottlingException$, 0]]
|
|
549
|
-
];
|
|
550
|
-
exports.StartSpeechSynthesisStreamEventStream$ = StartSpeechSynthesisStreamEventStream$;
|
|
551
|
-
exports.DeleteLexicon$ = [9, n0, _DL,
|
|
552
|
-
{ [_h]: ["DELETE", "/v1/lexicons/{Name}", 200] }, () => DeleteLexiconInput$, () => DeleteLexiconOutput$
|
|
553
|
-
];
|
|
554
|
-
exports.DescribeVoices$ = [9, n0, _DV,
|
|
555
|
-
{ [_h]: ["GET", "/v1/voices", 200] }, () => DescribeVoicesInput$, () => DescribeVoicesOutput$
|
|
556
|
-
];
|
|
557
|
-
exports.GetLexicon$ = [9, n0, _GL,
|
|
558
|
-
{ [_h]: ["GET", "/v1/lexicons/{Name}", 200] }, () => GetLexiconInput$, () => GetLexiconOutput$
|
|
559
|
-
];
|
|
560
|
-
exports.GetSpeechSynthesisTask$ = [9, n0, _GSST,
|
|
561
|
-
{ [_h]: ["GET", "/v1/synthesisTasks/{TaskId}", 200] }, () => GetSpeechSynthesisTaskInput$, () => GetSpeechSynthesisTaskOutput$
|
|
562
|
-
];
|
|
563
|
-
exports.ListLexicons$ = [9, n0, _LL,
|
|
564
|
-
{ [_h]: ["GET", "/v1/lexicons", 200] }, () => ListLexiconsInput$, () => ListLexiconsOutput$
|
|
565
|
-
];
|
|
566
|
-
exports.ListSpeechSynthesisTasks$ = [9, n0, _LSST,
|
|
567
|
-
{ [_h]: ["GET", "/v1/synthesisTasks", 200] }, () => ListSpeechSynthesisTasksInput$, () => ListSpeechSynthesisTasksOutput$
|
|
568
|
-
];
|
|
569
|
-
exports.PutLexicon$ = [9, n0, _PL,
|
|
570
|
-
{ [_h]: ["PUT", "/v1/lexicons/{Name}", 200] }, () => PutLexiconInput$, () => PutLexiconOutput$
|
|
571
|
-
];
|
|
572
|
-
exports.StartSpeechSynthesisStream$ = [9, n0, _SSSS,
|
|
573
|
-
{ [_h]: ["POST", "/v1/synthesisStream", 200] }, () => StartSpeechSynthesisStreamInput$, () => StartSpeechSynthesisStreamOutput$
|
|
574
|
-
];
|
|
575
|
-
exports.StartSpeechSynthesisTask$ = [9, n0, _SSST,
|
|
576
|
-
{ [_h]: ["POST", "/v1/synthesisTasks", 200] }, () => StartSpeechSynthesisTaskInput$, () => StartSpeechSynthesisTaskOutput$
|
|
577
|
-
];
|
|
578
|
-
exports.SynthesizeSpeech$ = [9, n0, _SS,
|
|
579
|
-
{ [_h]: ["POST", "/v1/speech", 200] }, () => SynthesizeSpeechInput$, () => SynthesizeSpeechOutput$
|
|
580
|
-
];
|