@aws-sdk/client-polly 3.35.0 → 3.38.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/CHANGELOG.md +47 -0
- package/dist-cjs/Polly.js +0 -9
- package/dist-cjs/PollyClient.js +0 -14
- package/dist-cjs/commands/DeleteLexiconCommand.js +0 -28
- package/dist-cjs/commands/DescribeVoicesCommand.js +0 -43
- package/dist-cjs/commands/GetLexiconCommand.js +0 -26
- package/dist-cjs/commands/GetSpeechSynthesisTaskCommand.js +0 -28
- package/dist-cjs/commands/ListLexiconsCommand.js +0 -25
- package/dist-cjs/commands/ListSpeechSynthesisTasksCommand.js +0 -27
- package/dist-cjs/commands/PutLexiconCommand.js +0 -30
- package/dist-cjs/commands/StartSpeechSynthesisTaskCommand.js +0 -34
- package/dist-cjs/commands/SynthesizeSpeechCommand.js +0 -29
- package/dist-cjs/commands/index.js +12 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -14
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -133
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListSpeechSynthesisTasksPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +5 -0
- package/dist-cjs/protocols/Aws_restJson1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/Polly.js +0 -1
- package/dist-es/PollyClient.js +0 -1
- package/dist-es/commands/DeleteLexiconCommand.js +0 -1
- package/dist-es/commands/DescribeVoicesCommand.js +0 -1
- package/dist-es/commands/GetLexiconCommand.js +0 -1
- package/dist-es/commands/GetSpeechSynthesisTaskCommand.js +0 -1
- package/dist-es/commands/ListLexiconsCommand.js +0 -1
- package/dist-es/commands/ListSpeechSynthesisTasksCommand.js +0 -1
- package/dist-es/commands/PutLexiconCommand.js +0 -1
- package/dist-es/commands/StartSpeechSynthesisTaskCommand.js +0 -1
- package/dist-es/commands/SynthesizeSpeechCommand.js +0 -1
- package/dist-es/commands/index.js +9 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -14
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListSpeechSynthesisTasksPaginator.js +0 -1
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/index.d.ts +4 -13
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/Polly.d.ts +10 -80
- package/dist-types/ts3.4/PollyClient.d.ts +24 -94
- package/dist-types/ts3.4/commands/DeleteLexiconCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DescribeVoicesCommand.d.ts +2 -38
- package/dist-types/ts3.4/commands/GetLexiconCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetSpeechSynthesisTaskCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/ListLexiconsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListSpeechSynthesisTasksCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/PutLexiconCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/StartSpeechSynthesisTaskCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/SynthesizeSpeechCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/index.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +4 -13
- package/dist-types/ts3.4/models/models_0.d.ts +150 -642
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/Polly.js.map +0 -1
- package/dist-cjs/PollyClient.js.map +0 -1
- package/dist-cjs/commands/DeleteLexiconCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeVoicesCommand.js.map +0 -1
- package/dist-cjs/commands/GetLexiconCommand.js.map +0 -1
- package/dist-cjs/commands/GetSpeechSynthesisTaskCommand.js.map +0 -1
- package/dist-cjs/commands/ListLexiconsCommand.js.map +0 -1
- package/dist-cjs/commands/ListSpeechSynthesisTasksCommand.js.map +0 -1
- package/dist-cjs/commands/PutLexiconCommand.js.map +0 -1
- package/dist-cjs/commands/StartSpeechSynthesisTaskCommand.js.map +0 -1
- package/dist-cjs/commands/SynthesizeSpeechCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListSpeechSynthesisTasksPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/Polly.js.map +0 -1
- package/dist-es/PollyClient.js.map +0 -1
- package/dist-es/commands/DeleteLexiconCommand.js.map +0 -1
- package/dist-es/commands/DescribeVoicesCommand.js.map +0 -1
- package/dist-es/commands/GetLexiconCommand.js.map +0 -1
- package/dist-es/commands/GetSpeechSynthesisTaskCommand.js.map +0 -1
- package/dist-es/commands/ListLexiconsCommand.js.map +0 -1
- package/dist-es/commands/ListSpeechSynthesisTasksCommand.js.map +0 -1
- package/dist-es/commands/PutLexiconCommand.js.map +0 -1
- package/dist-es/commands/StartSpeechSynthesisTaskCommand.js.map +0 -1
- package/dist-es/commands/SynthesizeSpeechCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListSpeechSynthesisTasksPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_restJson1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/Polly.ts +0 -368
- package/src/PollyClient.ts +0 -277
- package/src/commands/DeleteLexiconCommand.ts +0 -98
- package/src/commands/DescribeVoicesCommand.ts +0 -113
- package/src/commands/GetLexiconCommand.ts +0 -96
- package/src/commands/GetSpeechSynthesisTaskCommand.ts +0 -98
- package/src/commands/ListLexiconsCommand.ts +0 -95
- package/src/commands/ListSpeechSynthesisTasksCommand.ts +0 -97
- package/src/commands/PutLexiconCommand.ts +0 -100
- package/src/commands/StartSpeechSynthesisTaskCommand.ts +0 -104
- package/src/commands/SynthesizeSpeechCommand.ts +0 -99
- package/src/endpoints.ts +0 -82
- package/src/index.ts +0 -14
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -1374
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListSpeechSynthesisTasksPaginator.ts +0 -59
- package/src/protocols/Aws_restJson1.ts +0 -1712
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
package/dist-es/index.js
CHANGED
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
export * from "./PollyClient";
|
|
2
1
|
export * from "./Polly";
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./commands
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./commands/ListLexiconsCommand";
|
|
8
|
-
export * from "./commands/ListSpeechSynthesisTasksCommand";
|
|
9
|
-
export * from "./pagination/ListSpeechSynthesisTasksPaginator";
|
|
10
|
-
export * from "./commands/PutLexiconCommand";
|
|
11
|
-
export * from "./commands/StartSpeechSynthesisTaskCommand";
|
|
12
|
-
export * from "./commands/SynthesizeSpeechCommand";
|
|
13
|
-
export * from "./pagination/Interfaces";
|
|
14
|
-
export * from "./models/index";
|
|
15
|
-
//# sourceMappingURL=index.js.map
|
|
2
|
+
export * from "./PollyClient";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./models";
|
|
5
|
+
export * from "./pagination";
|
package/dist-es/models/index.js
CHANGED
|
@@ -207,4 +207,3 @@ export var SynthesizeSpeechOutput;
|
|
|
207
207
|
(function (SynthesizeSpeechOutput) {
|
|
208
208
|
SynthesizeSpeechOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
209
209
|
})(SynthesizeSpeechOutput || (SynthesizeSpeechOutput = {}));
|
|
210
|
-
//# sourceMappingURL=models_0.js.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
|
+
import packageInfo from "../package.json";
|
|
2
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
4
|
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
4
5
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
@@ -7,11 +8,9 @@ import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
|
7
8
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
8
9
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
9
10
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
10
|
-
import packageInfo from "../package.json";
|
|
11
11
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
12
12
|
export var getRuntimeConfig = function (config) {
|
|
13
13
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
14
14
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
15
15
|
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=runtimeConfig.browser.js.map
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
|
+
import packageInfo from "../package.json";
|
|
2
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
3
4
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
|
|
4
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
@@ -6,17 +7,15 @@ import { Hash } from "@aws-sdk/hash-node";
|
|
|
6
7
|
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
8
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
8
9
|
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
-
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
10
10
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
11
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
|
-
import packageInfo from "../package.json";
|
|
15
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
+
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
16
16
|
export var getRuntimeConfig = function (config) {
|
|
17
17
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
18
18
|
emitWarningIfUnsupportedVersion(process.version);
|
|
19
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
20
|
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=runtimeConfig.js.map
|
|
@@ -6,4 +6,3 @@ export var getRuntimeConfig = function (config) {
|
|
|
6
6
|
var browserDefaults = getBrowserRuntimeConfig(config);
|
|
7
7
|
return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256 });
|
|
8
8
|
};
|
|
9
|
-
//# sourceMappingURL=runtimeConfig.native.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./DeleteLexiconCommand";
|
|
2
|
+
export * from "./DescribeVoicesCommand";
|
|
3
|
+
export * from "./GetLexiconCommand";
|
|
4
|
+
export * from "./GetSpeechSynthesisTaskCommand";
|
|
5
|
+
export * from "./ListLexiconsCommand";
|
|
6
|
+
export * from "./ListSpeechSynthesisTasksCommand";
|
|
7
|
+
export * from "./PutLexiconCommand";
|
|
8
|
+
export * from "./StartSpeechSynthesisTaskCommand";
|
|
9
|
+
export * from "./SynthesizeSpeechCommand";
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
export * from "./PollyClient";
|
|
2
1
|
export * from "./Polly";
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./commands
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./commands/ListLexiconsCommand";
|
|
8
|
-
export * from "./commands/ListSpeechSynthesisTasksCommand";
|
|
9
|
-
export * from "./pagination/ListSpeechSynthesisTasksPaginator";
|
|
10
|
-
export * from "./commands/PutLexiconCommand";
|
|
11
|
-
export * from "./commands/StartSpeechSynthesisTaskCommand";
|
|
12
|
-
export * from "./commands/SynthesizeSpeechCommand";
|
|
13
|
-
export * from "./pagination/Interfaces";
|
|
14
|
-
export * from "./models/index";
|
|
2
|
+
export * from "./PollyClient";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./models";
|
|
5
|
+
export * from "./pagination";
|
|
@@ -9,111 +9,41 @@ import { PutLexiconCommandInput, PutLexiconCommandOutput } from "./commands/PutL
|
|
|
9
9
|
import { StartSpeechSynthesisTaskCommandInput, StartSpeechSynthesisTaskCommandOutput } from "./commands/StartSpeechSynthesisTaskCommand";
|
|
10
10
|
import { SynthesizeSpeechCommandInput, SynthesizeSpeechCommandOutput } from "./commands/SynthesizeSpeechCommand";
|
|
11
11
|
import { PollyClient } from "./PollyClient";
|
|
12
|
-
|
|
13
|
-
* <p>Amazon Polly is a web service that makes it easy to synthesize speech from
|
|
14
|
-
* text.</p>
|
|
15
|
-
* <p>The Amazon Polly service provides API operations for synthesizing
|
|
16
|
-
* high-quality speech from plain text and Speech Synthesis Markup Language
|
|
17
|
-
* (SSML), along with managing pronunciations lexicons that enable you to get
|
|
18
|
-
* the best results for your application domain.</p>
|
|
19
|
-
*/
|
|
12
|
+
|
|
20
13
|
export declare class Polly extends PollyClient {
|
|
21
|
-
|
|
22
|
-
* <p>Deletes the specified pronunciation lexicon stored in an Amazon Web Services Region. A lexicon which has been deleted is not available for
|
|
23
|
-
* speech synthesis, nor is it possible to retrieve it using either the
|
|
24
|
-
* <code>GetLexicon</code> or <code>ListLexicon</code> APIs.</p>
|
|
25
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html">Managing Lexicons</a>.</p>
|
|
26
|
-
*/
|
|
14
|
+
|
|
27
15
|
deleteLexicon(args: DeleteLexiconCommandInput, options?: __HttpHandlerOptions): Promise<DeleteLexiconCommandOutput>;
|
|
28
16
|
deleteLexicon(args: DeleteLexiconCommandInput, cb: (err: any, data?: DeleteLexiconCommandOutput) => void): void;
|
|
29
17
|
deleteLexicon(args: DeleteLexiconCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteLexiconCommandOutput) => void): void;
|
|
30
|
-
|
|
31
|
-
* <p>Returns the list of voices that are available for use when
|
|
32
|
-
* requesting speech synthesis. Each voice speaks a specified language, is
|
|
33
|
-
* either male or female, and is identified by an ID, which is the ASCII
|
|
34
|
-
* version of the voice name. </p>
|
|
35
|
-
*
|
|
36
|
-
* <p>When synthesizing speech ( <code>SynthesizeSpeech</code> ), you
|
|
37
|
-
* provide the voice ID for the voice you want from the list of voices
|
|
38
|
-
* returned by <code>DescribeVoices</code>.</p>
|
|
39
|
-
*
|
|
40
|
-
* <p>For example, you want your news reader application to read news in
|
|
41
|
-
* a specific language, but giving a user the option to choose the voice.
|
|
42
|
-
* Using the <code>DescribeVoices</code> operation you can provide the user
|
|
43
|
-
* with a list of available voices to select from.</p>
|
|
44
|
-
*
|
|
45
|
-
* <p> You can optionally specify a language code to filter the available
|
|
46
|
-
* voices. For example, if you specify <code>en-US</code>, the operation
|
|
47
|
-
* returns a list of all available US English voices. </p>
|
|
48
|
-
* <p>This operation requires permissions to perform the
|
|
49
|
-
* <code>polly:DescribeVoices</code> action.</p>
|
|
50
|
-
*/
|
|
18
|
+
|
|
51
19
|
describeVoices(args: DescribeVoicesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeVoicesCommandOutput>;
|
|
52
20
|
describeVoices(args: DescribeVoicesCommandInput, cb: (err: any, data?: DescribeVoicesCommandOutput) => void): void;
|
|
53
21
|
describeVoices(args: DescribeVoicesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeVoicesCommandOutput) => void): void;
|
|
54
|
-
|
|
55
|
-
* <p>Returns the content of the specified pronunciation lexicon stored
|
|
56
|
-
* in an Amazon Web Services Region. For more information, see <a href="https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html">Managing Lexicons</a>.</p>
|
|
57
|
-
*/
|
|
22
|
+
|
|
58
23
|
getLexicon(args: GetLexiconCommandInput, options?: __HttpHandlerOptions): Promise<GetLexiconCommandOutput>;
|
|
59
24
|
getLexicon(args: GetLexiconCommandInput, cb: (err: any, data?: GetLexiconCommandOutput) => void): void;
|
|
60
25
|
getLexicon(args: GetLexiconCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLexiconCommandOutput) => void): void;
|
|
61
|
-
|
|
62
|
-
* <p>Retrieves a specific SpeechSynthesisTask object based on its TaskID.
|
|
63
|
-
* This object contains information about the given speech synthesis task,
|
|
64
|
-
* including the status of the task, and a link to the S3 bucket containing
|
|
65
|
-
* the output of the task.</p>
|
|
66
|
-
*/
|
|
26
|
+
|
|
67
27
|
getSpeechSynthesisTask(args: GetSpeechSynthesisTaskCommandInput, options?: __HttpHandlerOptions): Promise<GetSpeechSynthesisTaskCommandOutput>;
|
|
68
28
|
getSpeechSynthesisTask(args: GetSpeechSynthesisTaskCommandInput, cb: (err: any, data?: GetSpeechSynthesisTaskCommandOutput) => void): void;
|
|
69
29
|
getSpeechSynthesisTask(args: GetSpeechSynthesisTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSpeechSynthesisTaskCommandOutput) => void): void;
|
|
70
|
-
|
|
71
|
-
* <p>Returns a list of pronunciation lexicons stored in an Amazon Web Services Region. For more information, see <a href="https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html">Managing Lexicons</a>.</p>
|
|
72
|
-
*/
|
|
30
|
+
|
|
73
31
|
listLexicons(args: ListLexiconsCommandInput, options?: __HttpHandlerOptions): Promise<ListLexiconsCommandOutput>;
|
|
74
32
|
listLexicons(args: ListLexiconsCommandInput, cb: (err: any, data?: ListLexiconsCommandOutput) => void): void;
|
|
75
33
|
listLexicons(args: ListLexiconsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListLexiconsCommandOutput) => void): void;
|
|
76
|
-
|
|
77
|
-
* <p>Returns a list of SpeechSynthesisTask objects ordered by their
|
|
78
|
-
* creation date. This operation can filter the tasks by their status, for
|
|
79
|
-
* example, allowing users to list only tasks that are completed.</p>
|
|
80
|
-
*/
|
|
34
|
+
|
|
81
35
|
listSpeechSynthesisTasks(args: ListSpeechSynthesisTasksCommandInput, options?: __HttpHandlerOptions): Promise<ListSpeechSynthesisTasksCommandOutput>;
|
|
82
36
|
listSpeechSynthesisTasks(args: ListSpeechSynthesisTasksCommandInput, cb: (err: any, data?: ListSpeechSynthesisTasksCommandOutput) => void): void;
|
|
83
37
|
listSpeechSynthesisTasks(args: ListSpeechSynthesisTasksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSpeechSynthesisTasksCommandOutput) => void): void;
|
|
84
|
-
|
|
85
|
-
* <p>Stores a pronunciation lexicon in an Amazon Web Services Region. If
|
|
86
|
-
* a lexicon with the same name already exists in the region, it is
|
|
87
|
-
* overwritten by the new lexicon. Lexicon operations have eventual
|
|
88
|
-
* consistency, therefore, it might take some time before the lexicon is
|
|
89
|
-
* available to the SynthesizeSpeech operation.</p>
|
|
90
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html">Managing Lexicons</a>.</p>
|
|
91
|
-
*/
|
|
38
|
+
|
|
92
39
|
putLexicon(args: PutLexiconCommandInput, options?: __HttpHandlerOptions): Promise<PutLexiconCommandOutput>;
|
|
93
40
|
putLexicon(args: PutLexiconCommandInput, cb: (err: any, data?: PutLexiconCommandOutput) => void): void;
|
|
94
41
|
putLexicon(args: PutLexiconCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutLexiconCommandOutput) => void): void;
|
|
95
|
-
|
|
96
|
-
* <p>Allows the creation of an asynchronous synthesis task, by starting a
|
|
97
|
-
* new <code>SpeechSynthesisTask</code>. This operation requires all the
|
|
98
|
-
* standard information needed for speech synthesis, plus the name of an
|
|
99
|
-
* Amazon S3 bucket for the service to store the output of the synthesis task
|
|
100
|
-
* and two optional parameters (<code>OutputS3KeyPrefix</code> and
|
|
101
|
-
* <code>SnsTopicArn</code>). Once the synthesis task is created, this
|
|
102
|
-
* operation will return a <code>SpeechSynthesisTask</code> object, which
|
|
103
|
-
* will include an identifier of this task as well as the current status. The
|
|
104
|
-
* <code>SpeechSynthesisTask</code> object is available for 72 hours after
|
|
105
|
-
* starting the asynchronous synthesis task.</p>
|
|
106
|
-
*/
|
|
42
|
+
|
|
107
43
|
startSpeechSynthesisTask(args: StartSpeechSynthesisTaskCommandInput, options?: __HttpHandlerOptions): Promise<StartSpeechSynthesisTaskCommandOutput>;
|
|
108
44
|
startSpeechSynthesisTask(args: StartSpeechSynthesisTaskCommandInput, cb: (err: any, data?: StartSpeechSynthesisTaskCommandOutput) => void): void;
|
|
109
45
|
startSpeechSynthesisTask(args: StartSpeechSynthesisTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartSpeechSynthesisTaskCommandOutput) => void): void;
|
|
110
|
-
|
|
111
|
-
* <p>Synthesizes UTF-8 input, plain text or SSML, to a stream of bytes.
|
|
112
|
-
* SSML input must be valid, well-formed SSML. Some alphabets might not be
|
|
113
|
-
* available with all the voices (for example, Cyrillic might not be read at
|
|
114
|
-
* all by English voices) unless phoneme mapping is used. For more
|
|
115
|
-
* information, see <a href="https://docs.aws.amazon.com/polly/latest/dg/how-text-to-speech-works.html">How it Works</a>.</p>
|
|
116
|
-
*/
|
|
46
|
+
|
|
117
47
|
synthesizeSpeech(args: SynthesizeSpeechCommandInput, options?: __HttpHandlerOptions): Promise<SynthesizeSpeechCommandOutput>;
|
|
118
48
|
synthesizeSpeech(args: SynthesizeSpeechCommandInput, cb: (err: any, data?: SynthesizeSpeechCommandOutput) => void): void;
|
|
119
49
|
synthesizeSpeech(args: SynthesizeSpeechCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SynthesizeSpeechCommandOutput) => void): void;
|
|
@@ -18,129 +18,59 @@ import { SynthesizeSpeechCommandInput, SynthesizeSpeechCommandOutput } from "./c
|
|
|
18
18
|
export declare type ServiceInputTypes = DeleteLexiconCommandInput | DescribeVoicesCommandInput | GetLexiconCommandInput | GetSpeechSynthesisTaskCommandInput | ListLexiconsCommandInput | ListSpeechSynthesisTasksCommandInput | PutLexiconCommandInput | StartSpeechSynthesisTaskCommandInput | SynthesizeSpeechCommandInput;
|
|
19
19
|
export declare type ServiceOutputTypes = DeleteLexiconCommandOutput | DescribeVoicesCommandOutput | GetLexiconCommandOutput | GetSpeechSynthesisTaskCommandOutput | ListLexiconsCommandOutput | ListSpeechSynthesisTasksCommandOutput | PutLexiconCommandOutput | StartSpeechSynthesisTaskCommandOutput | SynthesizeSpeechCommandOutput;
|
|
20
20
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
21
|
-
|
|
22
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
23
|
-
*/
|
|
21
|
+
|
|
24
22
|
requestHandler?: __HttpHandler;
|
|
25
|
-
|
|
26
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
27
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
28
|
-
* @internal
|
|
29
|
-
*/
|
|
23
|
+
|
|
30
24
|
sha256?: __HashConstructor;
|
|
31
|
-
|
|
32
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
33
|
-
* @internal
|
|
34
|
-
*/
|
|
25
|
+
|
|
35
26
|
urlParser?: __UrlParser;
|
|
36
|
-
|
|
37
|
-
* A function that can calculate the length of a request body.
|
|
38
|
-
* @internal
|
|
39
|
-
*/
|
|
27
|
+
|
|
40
28
|
bodyLengthChecker?: (body: any) => number | undefined;
|
|
41
|
-
|
|
42
|
-
* A function that converts a stream into an array of bytes.
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
29
|
+
|
|
45
30
|
streamCollector?: __StreamCollector;
|
|
46
|
-
|
|
47
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
48
|
-
* @internal
|
|
49
|
-
*/
|
|
31
|
+
|
|
50
32
|
base64Decoder?: __Decoder;
|
|
51
|
-
|
|
52
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
53
|
-
* @internal
|
|
54
|
-
*/
|
|
33
|
+
|
|
55
34
|
base64Encoder?: __Encoder;
|
|
56
|
-
|
|
57
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
35
|
+
|
|
60
36
|
utf8Decoder?: __Decoder;
|
|
61
|
-
|
|
62
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
63
|
-
* @internal
|
|
64
|
-
*/
|
|
37
|
+
|
|
65
38
|
utf8Encoder?: __Encoder;
|
|
66
|
-
|
|
67
|
-
* The runtime environment.
|
|
68
|
-
* @internal
|
|
69
|
-
*/
|
|
39
|
+
|
|
70
40
|
runtime?: string;
|
|
71
|
-
|
|
72
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
73
|
-
* trait of an operation.
|
|
74
|
-
*/
|
|
41
|
+
|
|
75
42
|
disableHostPrefix?: boolean;
|
|
76
|
-
|
|
77
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
78
|
-
*/
|
|
43
|
+
|
|
79
44
|
maxAttempts?: number | __Provider<number>;
|
|
80
|
-
|
|
81
|
-
* Specifies which retry algorithm to use.
|
|
82
|
-
*/
|
|
45
|
+
|
|
83
46
|
retryMode?: string | __Provider<string>;
|
|
84
|
-
|
|
85
|
-
* Optional logger for logging debug/info/warn/error.
|
|
86
|
-
*/
|
|
47
|
+
|
|
87
48
|
logger?: __Logger;
|
|
88
|
-
|
|
89
|
-
* Unique service identifier.
|
|
90
|
-
* @internal
|
|
91
|
-
*/
|
|
49
|
+
|
|
92
50
|
serviceId?: string;
|
|
93
|
-
|
|
94
|
-
* The AWS region to which this client will send requests
|
|
95
|
-
*/
|
|
51
|
+
|
|
96
52
|
region?: string | __Provider<string>;
|
|
97
|
-
|
|
98
|
-
* Default credentials provider; Not available in browser runtime.
|
|
99
|
-
* @internal
|
|
100
|
-
*/
|
|
53
|
+
|
|
101
54
|
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
102
|
-
|
|
103
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
104
|
-
* @internal
|
|
105
|
-
*/
|
|
55
|
+
|
|
106
56
|
regionInfoProvider?: RegionInfoProvider;
|
|
107
|
-
|
|
108
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
109
|
-
* @internal
|
|
110
|
-
*/
|
|
57
|
+
|
|
111
58
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
112
59
|
}
|
|
113
60
|
declare type PollyClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
114
|
-
|
|
115
|
-
* The configuration interface of PollyClient class constructor that set the region, credentials and other options.
|
|
116
|
-
*/
|
|
61
|
+
|
|
117
62
|
export interface PollyClientConfig extends PollyClientConfigType {
|
|
118
63
|
}
|
|
119
64
|
declare type PollyClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
|
|
120
|
-
|
|
121
|
-
* The resolved configuration interface of PollyClient class. This is resolved and normalized from the {@link PollyClientConfig | constructor configuration interface}.
|
|
122
|
-
*/
|
|
65
|
+
|
|
123
66
|
export interface PollyClientResolvedConfig extends PollyClientResolvedConfigType {
|
|
124
67
|
}
|
|
125
|
-
|
|
126
|
-
* <p>Amazon Polly is a web service that makes it easy to synthesize speech from
|
|
127
|
-
* text.</p>
|
|
128
|
-
* <p>The Amazon Polly service provides API operations for synthesizing
|
|
129
|
-
* high-quality speech from plain text and Speech Synthesis Markup Language
|
|
130
|
-
* (SSML), along with managing pronunciations lexicons that enable you to get
|
|
131
|
-
* the best results for your application domain.</p>
|
|
132
|
-
*/
|
|
68
|
+
|
|
133
69
|
export declare class PollyClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, PollyClientResolvedConfig> {
|
|
134
|
-
|
|
135
|
-
* The resolved configuration of PollyClient class. This is resolved and normalized from the {@link PollyClientConfig | constructor configuration interface}.
|
|
136
|
-
*/
|
|
70
|
+
|
|
137
71
|
readonly config: PollyClientResolvedConfig;
|
|
138
72
|
constructor(configuration: PollyClientConfig);
|
|
139
|
-
|
|
140
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
141
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
142
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
143
|
-
*/
|
|
73
|
+
|
|
144
74
|
destroy(): void;
|
|
145
75
|
}
|
|
146
76
|
export {};
|
|
@@ -6,32 +6,11 @@ export interface DeleteLexiconCommandInput extends DeleteLexiconInput {
|
|
|
6
6
|
}
|
|
7
7
|
export interface DeleteLexiconCommandOutput extends DeleteLexiconOutput, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Deletes the specified pronunciation lexicon stored in an Amazon Web Services Region. A lexicon which has been deleted is not available for
|
|
11
|
-
* speech synthesis, nor is it possible to retrieve it using either the
|
|
12
|
-
* <code>GetLexicon</code> or <code>ListLexicon</code> APIs.</p>
|
|
13
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html">Managing Lexicons</a>.</p>
|
|
14
|
-
* @example
|
|
15
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
16
|
-
* ```javascript
|
|
17
|
-
* import { PollyClient, DeleteLexiconCommand } from "@aws-sdk/client-polly"; // ES Modules import
|
|
18
|
-
* // const { PollyClient, DeleteLexiconCommand } = require("@aws-sdk/client-polly"); // CommonJS import
|
|
19
|
-
* const client = new PollyClient(config);
|
|
20
|
-
* const command = new DeleteLexiconCommand(input);
|
|
21
|
-
* const response = await client.send(command);
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @see {@link DeleteLexiconCommandInput} for command's `input` shape.
|
|
25
|
-
* @see {@link DeleteLexiconCommandOutput} for command's `response` shape.
|
|
26
|
-
* @see {@link PollyClientResolvedConfig | config} for command's `input` shape.
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
9
|
+
|
|
29
10
|
export declare class DeleteLexiconCommand extends $Command<DeleteLexiconCommandInput, DeleteLexiconCommandOutput, PollyClientResolvedConfig> {
|
|
30
11
|
readonly input: DeleteLexiconCommandInput;
|
|
31
12
|
constructor(input: DeleteLexiconCommandInput);
|
|
32
|
-
|
|
33
|
-
* @internal
|
|
34
|
-
*/
|
|
13
|
+
|
|
35
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PollyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteLexiconCommandInput, DeleteLexiconCommandOutput>;
|
|
36
15
|
private serialize;
|
|
37
16
|
private deserialize;
|
|
@@ -6,47 +6,11 @@ export interface DescribeVoicesCommandInput extends DescribeVoicesInput {
|
|
|
6
6
|
}
|
|
7
7
|
export interface DescribeVoicesCommandOutput extends DescribeVoicesOutput, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Returns the list of voices that are available for use when
|
|
11
|
-
* requesting speech synthesis. Each voice speaks a specified language, is
|
|
12
|
-
* either male or female, and is identified by an ID, which is the ASCII
|
|
13
|
-
* version of the voice name. </p>
|
|
14
|
-
*
|
|
15
|
-
* <p>When synthesizing speech ( <code>SynthesizeSpeech</code> ), you
|
|
16
|
-
* provide the voice ID for the voice you want from the list of voices
|
|
17
|
-
* returned by <code>DescribeVoices</code>.</p>
|
|
18
|
-
*
|
|
19
|
-
* <p>For example, you want your news reader application to read news in
|
|
20
|
-
* a specific language, but giving a user the option to choose the voice.
|
|
21
|
-
* Using the <code>DescribeVoices</code> operation you can provide the user
|
|
22
|
-
* with a list of available voices to select from.</p>
|
|
23
|
-
*
|
|
24
|
-
* <p> You can optionally specify a language code to filter the available
|
|
25
|
-
* voices. For example, if you specify <code>en-US</code>, the operation
|
|
26
|
-
* returns a list of all available US English voices. </p>
|
|
27
|
-
* <p>This operation requires permissions to perform the
|
|
28
|
-
* <code>polly:DescribeVoices</code> action.</p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { PollyClient, DescribeVoicesCommand } from "@aws-sdk/client-polly"; // ES Modules import
|
|
33
|
-
* // const { PollyClient, DescribeVoicesCommand } = require("@aws-sdk/client-polly"); // CommonJS import
|
|
34
|
-
* const client = new PollyClient(config);
|
|
35
|
-
* const command = new DescribeVoicesCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link DescribeVoicesCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link DescribeVoicesCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link PollyClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
9
|
+
|
|
44
10
|
export declare class DescribeVoicesCommand extends $Command<DescribeVoicesCommandInput, DescribeVoicesCommandOutput, PollyClientResolvedConfig> {
|
|
45
11
|
readonly input: DescribeVoicesCommandInput;
|
|
46
12
|
constructor(input: DescribeVoicesCommandInput);
|
|
47
|
-
|
|
48
|
-
* @internal
|
|
49
|
-
*/
|
|
13
|
+
|
|
50
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PollyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeVoicesCommandInput, DescribeVoicesCommandOutput>;
|
|
51
15
|
private serialize;
|
|
52
16
|
private deserialize;
|
|
@@ -6,30 +6,11 @@ export interface GetLexiconCommandInput extends GetLexiconInput {
|
|
|
6
6
|
}
|
|
7
7
|
export interface GetLexiconCommandOutput extends GetLexiconOutput, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Returns the content of the specified pronunciation lexicon stored
|
|
11
|
-
* in an Amazon Web Services Region. For more information, see <a href="https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html">Managing Lexicons</a>.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { PollyClient, GetLexiconCommand } from "@aws-sdk/client-polly"; // ES Modules import
|
|
16
|
-
* // const { PollyClient, GetLexiconCommand } = require("@aws-sdk/client-polly"); // CommonJS import
|
|
17
|
-
* const client = new PollyClient(config);
|
|
18
|
-
* const command = new GetLexiconCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link GetLexiconCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link GetLexiconCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link PollyClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
9
|
+
|
|
27
10
|
export declare class GetLexiconCommand extends $Command<GetLexiconCommandInput, GetLexiconCommandOutput, PollyClientResolvedConfig> {
|
|
28
11
|
readonly input: GetLexiconCommandInput;
|
|
29
12
|
constructor(input: GetLexiconCommandInput);
|
|
30
|
-
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
13
|
+
|
|
33
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PollyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetLexiconCommandInput, GetLexiconCommandOutput>;
|
|
34
15
|
private serialize;
|
|
35
16
|
private deserialize;
|
|
@@ -6,32 +6,11 @@ export interface GetSpeechSynthesisTaskCommandInput extends GetSpeechSynthesisTa
|
|
|
6
6
|
}
|
|
7
7
|
export interface GetSpeechSynthesisTaskCommandOutput extends GetSpeechSynthesisTaskOutput, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Retrieves a specific SpeechSynthesisTask object based on its TaskID.
|
|
11
|
-
* This object contains information about the given speech synthesis task,
|
|
12
|
-
* including the status of the task, and a link to the S3 bucket containing
|
|
13
|
-
* the output of the task.</p>
|
|
14
|
-
* @example
|
|
15
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
16
|
-
* ```javascript
|
|
17
|
-
* import { PollyClient, GetSpeechSynthesisTaskCommand } from "@aws-sdk/client-polly"; // ES Modules import
|
|
18
|
-
* // const { PollyClient, GetSpeechSynthesisTaskCommand } = require("@aws-sdk/client-polly"); // CommonJS import
|
|
19
|
-
* const client = new PollyClient(config);
|
|
20
|
-
* const command = new GetSpeechSynthesisTaskCommand(input);
|
|
21
|
-
* const response = await client.send(command);
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @see {@link GetSpeechSynthesisTaskCommandInput} for command's `input` shape.
|
|
25
|
-
* @see {@link GetSpeechSynthesisTaskCommandOutput} for command's `response` shape.
|
|
26
|
-
* @see {@link PollyClientResolvedConfig | config} for command's `input` shape.
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
9
|
+
|
|
29
10
|
export declare class GetSpeechSynthesisTaskCommand extends $Command<GetSpeechSynthesisTaskCommandInput, GetSpeechSynthesisTaskCommandOutput, PollyClientResolvedConfig> {
|
|
30
11
|
readonly input: GetSpeechSynthesisTaskCommandInput;
|
|
31
12
|
constructor(input: GetSpeechSynthesisTaskCommandInput);
|
|
32
|
-
|
|
33
|
-
* @internal
|
|
34
|
-
*/
|
|
13
|
+
|
|
35
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PollyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetSpeechSynthesisTaskCommandInput, GetSpeechSynthesisTaskCommandOutput>;
|
|
36
15
|
private serialize;
|
|
37
16
|
private deserialize;
|
|
@@ -6,29 +6,11 @@ export interface ListLexiconsCommandInput extends ListLexiconsInput {
|
|
|
6
6
|
}
|
|
7
7
|
export interface ListLexiconsCommandOutput extends ListLexiconsOutput, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Returns a list of pronunciation lexicons stored in an Amazon Web Services Region. For more information, see <a href="https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html">Managing Lexicons</a>.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { PollyClient, ListLexiconsCommand } from "@aws-sdk/client-polly"; // ES Modules import
|
|
15
|
-
* // const { PollyClient, ListLexiconsCommand } = require("@aws-sdk/client-polly"); // CommonJS import
|
|
16
|
-
* const client = new PollyClient(config);
|
|
17
|
-
* const command = new ListLexiconsCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link ListLexiconsCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link ListLexiconsCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link PollyClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
9
|
+
|
|
26
10
|
export declare class ListLexiconsCommand extends $Command<ListLexiconsCommandInput, ListLexiconsCommandOutput, PollyClientResolvedConfig> {
|
|
27
11
|
readonly input: ListLexiconsCommandInput;
|
|
28
12
|
constructor(input: ListLexiconsCommandInput);
|
|
29
|
-
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
13
|
+
|
|
32
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PollyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListLexiconsCommandInput, ListLexiconsCommandOutput>;
|
|
33
15
|
private serialize;
|
|
34
16
|
private deserialize;
|