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