@aws-sdk/client-polly 3.312.0 → 3.316.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/Polly.js +13 -126
- package/dist-cjs/protocols/Aws_restJson1.js +212 -298
- package/dist-es/Polly.js +13 -126
- package/dist-es/protocols/Aws_restJson1.js +180 -266
- package/dist-types/Polly.d.ts +21 -70
- package/dist-types/ts3.4/Polly.d.ts +2 -1
- package/package.json +6 -6
package/dist-types/Polly.d.ts
CHANGED
|
@@ -9,119 +9,70 @@ 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
|
-
* @public
|
|
14
|
-
* <p>Amazon Polly is a web service that makes it easy to synthesize speech from
|
|
15
|
-
* text.</p>
|
|
16
|
-
* <p>The Amazon Polly service provides API operations for synthesizing
|
|
17
|
-
* high-quality speech from plain text and Speech Synthesis Markup Language
|
|
18
|
-
* (SSML), along with managing pronunciations lexicons that enable you to get
|
|
19
|
-
* the best results for your application domain.</p>
|
|
20
|
-
*/
|
|
21
|
-
export declare class Polly extends PollyClient {
|
|
12
|
+
export interface Polly {
|
|
22
13
|
/**
|
|
23
|
-
* @
|
|
24
|
-
* <p>Deletes the specified pronunciation lexicon stored in an Amazon Web Services Region. A lexicon which has been deleted is not available for
|
|
25
|
-
* speech synthesis, nor is it possible to retrieve it using either the
|
|
26
|
-
* <code>GetLexicon</code> or <code>ListLexicon</code> APIs.</p>
|
|
27
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html">Managing Lexicons</a>.</p>
|
|
14
|
+
* @see {@link DeleteLexiconCommand}
|
|
28
15
|
*/
|
|
29
16
|
deleteLexicon(args: DeleteLexiconCommandInput, options?: __HttpHandlerOptions): Promise<DeleteLexiconCommandOutput>;
|
|
30
17
|
deleteLexicon(args: DeleteLexiconCommandInput, cb: (err: any, data?: DeleteLexiconCommandOutput) => void): void;
|
|
31
18
|
deleteLexicon(args: DeleteLexiconCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteLexiconCommandOutput) => void): void;
|
|
32
19
|
/**
|
|
33
|
-
* @
|
|
34
|
-
* <p>Returns the list of voices that are available for use when
|
|
35
|
-
* requesting speech synthesis. Each voice speaks a specified language, is
|
|
36
|
-
* either male or female, and is identified by an ID, which is the ASCII
|
|
37
|
-
* version of the voice name. </p>
|
|
38
|
-
* <p>When synthesizing speech ( <code>SynthesizeSpeech</code> ), you
|
|
39
|
-
* provide the voice ID for the voice you want from the list of voices
|
|
40
|
-
* returned by <code>DescribeVoices</code>.</p>
|
|
41
|
-
* <p>For example, you want your news reader application to read news in
|
|
42
|
-
* a specific language, but giving a user the option to choose the voice.
|
|
43
|
-
* Using the <code>DescribeVoices</code> operation you can provide the user
|
|
44
|
-
* with a list of available voices to select from.</p>
|
|
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>
|
|
20
|
+
* @see {@link DescribeVoicesCommand}
|
|
50
21
|
*/
|
|
51
22
|
describeVoices(args: DescribeVoicesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeVoicesCommandOutput>;
|
|
52
23
|
describeVoices(args: DescribeVoicesCommandInput, cb: (err: any, data?: DescribeVoicesCommandOutput) => void): void;
|
|
53
24
|
describeVoices(args: DescribeVoicesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeVoicesCommandOutput) => void): void;
|
|
54
25
|
/**
|
|
55
|
-
* @
|
|
56
|
-
* <p>Returns the content of the specified pronunciation lexicon stored
|
|
57
|
-
* 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>
|
|
26
|
+
* @see {@link GetLexiconCommand}
|
|
58
27
|
*/
|
|
59
28
|
getLexicon(args: GetLexiconCommandInput, options?: __HttpHandlerOptions): Promise<GetLexiconCommandOutput>;
|
|
60
29
|
getLexicon(args: GetLexiconCommandInput, cb: (err: any, data?: GetLexiconCommandOutput) => void): void;
|
|
61
30
|
getLexicon(args: GetLexiconCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLexiconCommandOutput) => void): void;
|
|
62
31
|
/**
|
|
63
|
-
* @
|
|
64
|
-
* <p>Retrieves a specific SpeechSynthesisTask object based on its TaskID.
|
|
65
|
-
* This object contains information about the given speech synthesis task,
|
|
66
|
-
* including the status of the task, and a link to the S3 bucket containing
|
|
67
|
-
* the output of the task.</p>
|
|
32
|
+
* @see {@link GetSpeechSynthesisTaskCommand}
|
|
68
33
|
*/
|
|
69
34
|
getSpeechSynthesisTask(args: GetSpeechSynthesisTaskCommandInput, options?: __HttpHandlerOptions): Promise<GetSpeechSynthesisTaskCommandOutput>;
|
|
70
35
|
getSpeechSynthesisTask(args: GetSpeechSynthesisTaskCommandInput, cb: (err: any, data?: GetSpeechSynthesisTaskCommandOutput) => void): void;
|
|
71
36
|
getSpeechSynthesisTask(args: GetSpeechSynthesisTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSpeechSynthesisTaskCommandOutput) => void): void;
|
|
72
37
|
/**
|
|
73
|
-
* @
|
|
74
|
-
* <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>
|
|
38
|
+
* @see {@link ListLexiconsCommand}
|
|
75
39
|
*/
|
|
76
40
|
listLexicons(args: ListLexiconsCommandInput, options?: __HttpHandlerOptions): Promise<ListLexiconsCommandOutput>;
|
|
77
41
|
listLexicons(args: ListLexiconsCommandInput, cb: (err: any, data?: ListLexiconsCommandOutput) => void): void;
|
|
78
42
|
listLexicons(args: ListLexiconsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListLexiconsCommandOutput) => void): void;
|
|
79
43
|
/**
|
|
80
|
-
* @
|
|
81
|
-
* <p>Returns a list of SpeechSynthesisTask objects ordered by their
|
|
82
|
-
* creation date. This operation can filter the tasks by their status, for
|
|
83
|
-
* example, allowing users to list only tasks that are completed.</p>
|
|
44
|
+
* @see {@link ListSpeechSynthesisTasksCommand}
|
|
84
45
|
*/
|
|
85
46
|
listSpeechSynthesisTasks(args: ListSpeechSynthesisTasksCommandInput, options?: __HttpHandlerOptions): Promise<ListSpeechSynthesisTasksCommandOutput>;
|
|
86
47
|
listSpeechSynthesisTasks(args: ListSpeechSynthesisTasksCommandInput, cb: (err: any, data?: ListSpeechSynthesisTasksCommandOutput) => void): void;
|
|
87
48
|
listSpeechSynthesisTasks(args: ListSpeechSynthesisTasksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSpeechSynthesisTasksCommandOutput) => void): void;
|
|
88
49
|
/**
|
|
89
|
-
* @
|
|
90
|
-
* <p>Stores a pronunciation lexicon in an Amazon Web Services Region. If
|
|
91
|
-
* a lexicon with the same name already exists in the region, it is
|
|
92
|
-
* overwritten by the new lexicon. Lexicon operations have eventual
|
|
93
|
-
* consistency, therefore, it might take some time before the lexicon is
|
|
94
|
-
* available to the SynthesizeSpeech operation.</p>
|
|
95
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html">Managing Lexicons</a>.</p>
|
|
50
|
+
* @see {@link PutLexiconCommand}
|
|
96
51
|
*/
|
|
97
52
|
putLexicon(args: PutLexiconCommandInput, options?: __HttpHandlerOptions): Promise<PutLexiconCommandOutput>;
|
|
98
53
|
putLexicon(args: PutLexiconCommandInput, cb: (err: any, data?: PutLexiconCommandOutput) => void): void;
|
|
99
54
|
putLexicon(args: PutLexiconCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutLexiconCommandOutput) => void): void;
|
|
100
55
|
/**
|
|
101
|
-
* @
|
|
102
|
-
* <p>Allows the creation of an asynchronous synthesis task, by starting a
|
|
103
|
-
* new <code>SpeechSynthesisTask</code>. This operation requires all the
|
|
104
|
-
* standard information needed for speech synthesis, plus the name of an
|
|
105
|
-
* Amazon S3 bucket for the service to store the output of the synthesis task
|
|
106
|
-
* and two optional parameters (<code>OutputS3KeyPrefix</code> and
|
|
107
|
-
* <code>SnsTopicArn</code>). Once the synthesis task is created, this
|
|
108
|
-
* operation will return a <code>SpeechSynthesisTask</code> object, which
|
|
109
|
-
* will include an identifier of this task as well as the current status. The
|
|
110
|
-
* <code>SpeechSynthesisTask</code> object is available for 72 hours after
|
|
111
|
-
* starting the asynchronous synthesis task.</p>
|
|
56
|
+
* @see {@link StartSpeechSynthesisTaskCommand}
|
|
112
57
|
*/
|
|
113
58
|
startSpeechSynthesisTask(args: StartSpeechSynthesisTaskCommandInput, options?: __HttpHandlerOptions): Promise<StartSpeechSynthesisTaskCommandOutput>;
|
|
114
59
|
startSpeechSynthesisTask(args: StartSpeechSynthesisTaskCommandInput, cb: (err: any, data?: StartSpeechSynthesisTaskCommandOutput) => void): void;
|
|
115
60
|
startSpeechSynthesisTask(args: StartSpeechSynthesisTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartSpeechSynthesisTaskCommandOutput) => void): void;
|
|
116
61
|
/**
|
|
117
|
-
* @
|
|
118
|
-
* <p>Synthesizes UTF-8 input, plain text or SSML, to a stream of bytes.
|
|
119
|
-
* SSML input must be valid, well-formed SSML. Some alphabets might not be
|
|
120
|
-
* available with all the voices (for example, Cyrillic might not be read at
|
|
121
|
-
* all by English voices) unless phoneme mapping is used. For more
|
|
122
|
-
* information, see <a href="https://docs.aws.amazon.com/polly/latest/dg/how-text-to-speech-works.html">How it Works</a>.</p>
|
|
62
|
+
* @see {@link SynthesizeSpeechCommand}
|
|
123
63
|
*/
|
|
124
64
|
synthesizeSpeech(args: SynthesizeSpeechCommandInput, options?: __HttpHandlerOptions): Promise<SynthesizeSpeechCommandOutput>;
|
|
125
65
|
synthesizeSpeech(args: SynthesizeSpeechCommandInput, cb: (err: any, data?: SynthesizeSpeechCommandOutput) => void): void;
|
|
126
66
|
synthesizeSpeech(args: SynthesizeSpeechCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SynthesizeSpeechCommandOutput) => void): void;
|
|
127
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* @public
|
|
70
|
+
* <p>Amazon Polly is a web service that makes it easy to synthesize speech from
|
|
71
|
+
* text.</p>
|
|
72
|
+
* <p>The Amazon Polly service provides API operations for synthesizing
|
|
73
|
+
* high-quality speech from plain text and Speech Synthesis Markup Language
|
|
74
|
+
* (SSML), along with managing pronunciations lexicons that enable you to get
|
|
75
|
+
* the best results for your application domain.</p>
|
|
76
|
+
*/
|
|
77
|
+
export declare class Polly extends PollyClient implements Polly {
|
|
78
|
+
}
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
SynthesizeSpeechCommandOutput,
|
|
37
37
|
} from "./commands/SynthesizeSpeechCommand";
|
|
38
38
|
import { PollyClient } from "./PollyClient";
|
|
39
|
-
export
|
|
39
|
+
export interface Polly {
|
|
40
40
|
deleteLexicon(
|
|
41
41
|
args: DeleteLexiconCommandInput,
|
|
42
42
|
options?: __HttpHandlerOptions
|
|
@@ -155,3 +155,4 @@ export declare class Polly extends PollyClient {
|
|
|
155
155
|
cb: (err: any, data?: SynthesizeSpeechCommandOutput) => void
|
|
156
156
|
): void;
|
|
157
157
|
}
|
|
158
|
+
export declare class Polly extends PollyClient implements Polly {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-polly",
|
|
3
3
|
"description": "AWS SDK for JavaScript Polly Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.316.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.316.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.316.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-stream-browser": "3.310.0",
|