@aws-sdk/client-polly 3.529.1 → 3.535.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-types/Polly.d.ts +4 -1
- package/dist-types/PollyClient.d.ts +1 -1
- package/dist-types/commands/DeleteLexiconCommand.d.ts +2 -1
- package/dist-types/commands/DescribeVoicesCommand.d.ts +2 -1
- package/dist-types/commands/GetLexiconCommand.d.ts +2 -1
- package/dist-types/commands/GetSpeechSynthesisTaskCommand.d.ts +2 -1
- package/dist-types/commands/ListLexiconsCommand.d.ts +2 -1
- package/dist-types/commands/ListSpeechSynthesisTasksCommand.d.ts +2 -1
- package/dist-types/commands/PutLexiconCommand.d.ts +2 -1
- package/dist-types/commands/StartSpeechSynthesisTaskCommand.d.ts +2 -1
- package/dist-types/commands/SynthesizeSpeechCommand.d.ts +3 -2
- package/dist-types/models/models_0.d.ts +105 -105
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/dist-types/ts3.4/Polly.d.ts +3 -0
- package/dist-types/ts3.4/commands/DeleteLexiconCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DescribeVoicesCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetLexiconCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetSpeechSynthesisTaskCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListLexiconsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListSpeechSynthesisTasksCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutLexiconCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/StartSpeechSynthesisTaskCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/SynthesizeSpeechCommand.d.ts +9 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -2
- package/package.json +41 -41
package/dist-types/Polly.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export interface Polly {
|
|
|
19
19
|
/**
|
|
20
20
|
* @see {@link DescribeVoicesCommand}
|
|
21
21
|
*/
|
|
22
|
+
describeVoices(): Promise<DescribeVoicesCommandOutput>;
|
|
22
23
|
describeVoices(args: DescribeVoicesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeVoicesCommandOutput>;
|
|
23
24
|
describeVoices(args: DescribeVoicesCommandInput, cb: (err: any, data?: DescribeVoicesCommandOutput) => void): void;
|
|
24
25
|
describeVoices(args: DescribeVoicesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeVoicesCommandOutput) => void): void;
|
|
@@ -37,12 +38,14 @@ export interface Polly {
|
|
|
37
38
|
/**
|
|
38
39
|
* @see {@link ListLexiconsCommand}
|
|
39
40
|
*/
|
|
41
|
+
listLexicons(): Promise<ListLexiconsCommandOutput>;
|
|
40
42
|
listLexicons(args: ListLexiconsCommandInput, options?: __HttpHandlerOptions): Promise<ListLexiconsCommandOutput>;
|
|
41
43
|
listLexicons(args: ListLexiconsCommandInput, cb: (err: any, data?: ListLexiconsCommandOutput) => void): void;
|
|
42
44
|
listLexicons(args: ListLexiconsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListLexiconsCommandOutput) => void): void;
|
|
43
45
|
/**
|
|
44
46
|
* @see {@link ListSpeechSynthesisTasksCommand}
|
|
45
47
|
*/
|
|
48
|
+
listSpeechSynthesisTasks(): Promise<ListSpeechSynthesisTasksCommandOutput>;
|
|
46
49
|
listSpeechSynthesisTasks(args: ListSpeechSynthesisTasksCommandInput, options?: __HttpHandlerOptions): Promise<ListSpeechSynthesisTasksCommandOutput>;
|
|
47
50
|
listSpeechSynthesisTasks(args: ListSpeechSynthesisTasksCommandInput, cb: (err: any, data?: ListSpeechSynthesisTasksCommandOutput) => void): void;
|
|
48
51
|
listSpeechSynthesisTasks(args: ListSpeechSynthesisTasksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSpeechSynthesisTasksCommandOutput) => void): void;
|
|
@@ -66,13 +69,13 @@ export interface Polly {
|
|
|
66
69
|
synthesizeSpeech(args: SynthesizeSpeechCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SynthesizeSpeechCommandOutput) => void): void;
|
|
67
70
|
}
|
|
68
71
|
/**
|
|
69
|
-
* @public
|
|
70
72
|
* <p>Amazon Polly is a web service that makes it easy to synthesize speech from
|
|
71
73
|
* text.</p>
|
|
72
74
|
* <p>The Amazon Polly service provides API operations for synthesizing
|
|
73
75
|
* high-quality speech from plain text and Speech Synthesis Markup Language
|
|
74
76
|
* (SSML), along with managing pronunciations lexicons that enable you to get
|
|
75
77
|
* the best results for your application domain.</p>
|
|
78
|
+
* @public
|
|
76
79
|
*/
|
|
77
80
|
export declare class Polly extends PollyClient implements Polly {
|
|
78
81
|
}
|
|
@@ -165,13 +165,13 @@ export type PollyClientResolvedConfigType = __SmithyResolvedConfiguration<__Http
|
|
|
165
165
|
export interface PollyClientResolvedConfig extends PollyClientResolvedConfigType {
|
|
166
166
|
}
|
|
167
167
|
/**
|
|
168
|
-
* @public
|
|
169
168
|
* <p>Amazon Polly is a web service that makes it easy to synthesize speech from
|
|
170
169
|
* text.</p>
|
|
171
170
|
* <p>The Amazon Polly service provides API operations for synthesizing
|
|
172
171
|
* high-quality speech from plain text and Speech Synthesis Markup Language
|
|
173
172
|
* (SSML), along with managing pronunciations lexicons that enable you to get
|
|
174
173
|
* the best results for your application domain.</p>
|
|
174
|
+
* @public
|
|
175
175
|
*/
|
|
176
176
|
export declare class PollyClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, PollyClientResolvedConfig> {
|
|
177
177
|
/**
|
|
@@ -22,10 +22,10 @@ export interface DeleteLexiconCommandOutput extends DeleteLexiconOutput, __Metad
|
|
|
22
22
|
}
|
|
23
23
|
declare const DeleteLexiconCommand_base: {
|
|
24
24
|
new (input: DeleteLexiconCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteLexiconCommandInput, DeleteLexiconCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: DeleteLexiconCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteLexiconCommandInput, DeleteLexiconCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Deletes the specified pronunciation lexicon stored in an Amazon Web Services Region. A lexicon which has been deleted is not available for
|
|
30
30
|
* speech synthesis, nor is it possible to retrieve it using either the
|
|
31
31
|
* <code>GetLexicon</code> or <code>ListLexicon</code> APIs.</p>
|
|
@@ -64,6 +64,7 @@ declare const DeleteLexiconCommand_base: {
|
|
|
64
64
|
* @throws {@link PollyServiceException}
|
|
65
65
|
* <p>Base exception class for all service exceptions from Polly service.</p>
|
|
66
66
|
*
|
|
67
|
+
* @public
|
|
67
68
|
* @example To delete a lexicon
|
|
68
69
|
* ```javascript
|
|
69
70
|
* // Deletes a specified pronunciation lexicon stored in an AWS Region.
|
|
@@ -22,10 +22,10 @@ export interface DescribeVoicesCommandOutput extends DescribeVoicesOutput, __Met
|
|
|
22
22
|
}
|
|
23
23
|
declare const DescribeVoicesCommand_base: {
|
|
24
24
|
new (input: DescribeVoicesCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeVoicesCommandInput, DescribeVoicesCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (...[input]: [] | [DescribeVoicesCommandInput]): import("@smithy/smithy-client").CommandImpl<DescribeVoicesCommandInput, DescribeVoicesCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Returns the list of voices that are available for use when
|
|
30
30
|
* requesting speech synthesis. Each voice speaks a specified language, is
|
|
31
31
|
* either male or female, and is identified by an ID, which is the ASCII
|
|
@@ -93,6 +93,7 @@ declare const DescribeVoicesCommand_base: {
|
|
|
93
93
|
* @throws {@link PollyServiceException}
|
|
94
94
|
* <p>Base exception class for all service exceptions from Polly service.</p>
|
|
95
95
|
*
|
|
96
|
+
* @public
|
|
96
97
|
* @example To describe available voices
|
|
97
98
|
* ```javascript
|
|
98
99
|
* // Returns the list of voices that are available for use when requesting speech synthesis. Displayed languages are those within the specified language code. If no language code is specified, voices for all available languages are displayed.
|
|
@@ -22,10 +22,10 @@ export interface GetLexiconCommandOutput extends GetLexiconOutput, __MetadataBea
|
|
|
22
22
|
}
|
|
23
23
|
declare const GetLexiconCommand_base: {
|
|
24
24
|
new (input: GetLexiconCommandInput): import("@smithy/smithy-client").CommandImpl<GetLexiconCommandInput, GetLexiconCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: GetLexiconCommandInput): import("@smithy/smithy-client").CommandImpl<GetLexiconCommandInput, GetLexiconCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Returns the content of the specified pronunciation lexicon stored
|
|
30
30
|
* 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>
|
|
31
31
|
* @example
|
|
@@ -75,6 +75,7 @@ declare const GetLexiconCommand_base: {
|
|
|
75
75
|
* @throws {@link PollyServiceException}
|
|
76
76
|
* <p>Base exception class for all service exceptions from Polly service.</p>
|
|
77
77
|
*
|
|
78
|
+
* @public
|
|
78
79
|
* @example To retrieve a lexicon
|
|
79
80
|
* ```javascript
|
|
80
81
|
* // Returns the content of the specified pronunciation lexicon stored in an AWS Region.
|
|
@@ -22,10 +22,10 @@ export interface GetSpeechSynthesisTaskCommandOutput extends GetSpeechSynthesisT
|
|
|
22
22
|
}
|
|
23
23
|
declare const GetSpeechSynthesisTaskCommand_base: {
|
|
24
24
|
new (input: GetSpeechSynthesisTaskCommandInput): import("@smithy/smithy-client").CommandImpl<GetSpeechSynthesisTaskCommandInput, GetSpeechSynthesisTaskCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: GetSpeechSynthesisTaskCommandInput): import("@smithy/smithy-client").CommandImpl<GetSpeechSynthesisTaskCommandInput, GetSpeechSynthesisTaskCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Retrieves a specific SpeechSynthesisTask object based on its TaskID.
|
|
30
30
|
* This object contains information about the given speech synthesis task,
|
|
31
31
|
* including the status of the task, and a link to the S3 bucket containing
|
|
@@ -87,6 +87,7 @@ declare const GetSpeechSynthesisTaskCommand_base: {
|
|
|
87
87
|
* @throws {@link PollyServiceException}
|
|
88
88
|
* <p>Base exception class for all service exceptions from Polly service.</p>
|
|
89
89
|
*
|
|
90
|
+
* @public
|
|
90
91
|
*/
|
|
91
92
|
export declare class GetSpeechSynthesisTaskCommand extends GetSpeechSynthesisTaskCommand_base {
|
|
92
93
|
}
|
|
@@ -22,10 +22,10 @@ export interface ListLexiconsCommandOutput extends ListLexiconsOutput, __Metadat
|
|
|
22
22
|
}
|
|
23
23
|
declare const ListLexiconsCommand_base: {
|
|
24
24
|
new (input: ListLexiconsCommandInput): import("@smithy/smithy-client").CommandImpl<ListLexiconsCommandInput, ListLexiconsCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (...[input]: [] | [ListLexiconsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListLexiconsCommandInput, ListLexiconsCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <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>
|
|
30
30
|
* @example
|
|
31
31
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -73,6 +73,7 @@ declare const ListLexiconsCommand_base: {
|
|
|
73
73
|
* @throws {@link PollyServiceException}
|
|
74
74
|
* <p>Base exception class for all service exceptions from Polly service.</p>
|
|
75
75
|
*
|
|
76
|
+
* @public
|
|
76
77
|
* @example To list all lexicons in a region
|
|
77
78
|
* ```javascript
|
|
78
79
|
* // Returns a list of pronunciation lexicons stored in an AWS Region.
|
|
@@ -22,10 +22,10 @@ export interface ListSpeechSynthesisTasksCommandOutput extends ListSpeechSynthes
|
|
|
22
22
|
}
|
|
23
23
|
declare const ListSpeechSynthesisTasksCommand_base: {
|
|
24
24
|
new (input: ListSpeechSynthesisTasksCommandInput): import("@smithy/smithy-client").CommandImpl<ListSpeechSynthesisTasksCommandInput, ListSpeechSynthesisTasksCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (...[input]: [] | [ListSpeechSynthesisTasksCommandInput]): import("@smithy/smithy-client").CommandImpl<ListSpeechSynthesisTasksCommandInput, ListSpeechSynthesisTasksCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Returns a list of SpeechSynthesisTask objects ordered by their
|
|
30
30
|
* creation date. This operation can filter the tasks by their status, for
|
|
31
31
|
* example, allowing users to list only tasks that are completed.</p>
|
|
@@ -87,6 +87,7 @@ declare const ListSpeechSynthesisTasksCommand_base: {
|
|
|
87
87
|
* @throws {@link PollyServiceException}
|
|
88
88
|
* <p>Base exception class for all service exceptions from Polly service.</p>
|
|
89
89
|
*
|
|
90
|
+
* @public
|
|
90
91
|
*/
|
|
91
92
|
export declare class ListSpeechSynthesisTasksCommand extends ListSpeechSynthesisTasksCommand_base {
|
|
92
93
|
}
|
|
@@ -22,10 +22,10 @@ export interface PutLexiconCommandOutput extends PutLexiconOutput, __MetadataBea
|
|
|
22
22
|
}
|
|
23
23
|
declare const PutLexiconCommand_base: {
|
|
24
24
|
new (input: PutLexiconCommandInput): import("@smithy/smithy-client").CommandImpl<PutLexiconCommandInput, PutLexiconCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: PutLexiconCommandInput): import("@smithy/smithy-client").CommandImpl<PutLexiconCommandInput, PutLexiconCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Stores a pronunciation lexicon in an Amazon Web Services Region. If
|
|
30
30
|
* a lexicon with the same name already exists in the region, it is
|
|
31
31
|
* overwritten by the new lexicon. Lexicon operations have eventual
|
|
@@ -84,6 +84,7 @@ declare const PutLexiconCommand_base: {
|
|
|
84
84
|
* @throws {@link PollyServiceException}
|
|
85
85
|
* <p>Base exception class for all service exceptions from Polly service.</p>
|
|
86
86
|
*
|
|
87
|
+
* @public
|
|
87
88
|
* @example To save a lexicon
|
|
88
89
|
* ```javascript
|
|
89
90
|
* // Stores a pronunciation lexicon in an AWS Region.
|
|
@@ -22,10 +22,10 @@ export interface StartSpeechSynthesisTaskCommandOutput extends StartSpeechSynthe
|
|
|
22
22
|
}
|
|
23
23
|
declare const StartSpeechSynthesisTaskCommand_base: {
|
|
24
24
|
new (input: StartSpeechSynthesisTaskCommandInput): import("@smithy/smithy-client").CommandImpl<StartSpeechSynthesisTaskCommandInput, StartSpeechSynthesisTaskCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: StartSpeechSynthesisTaskCommandInput): import("@smithy/smithy-client").CommandImpl<StartSpeechSynthesisTaskCommandInput, StartSpeechSynthesisTaskCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Allows the creation of an asynchronous synthesis task, by starting a
|
|
30
30
|
* new <code>SpeechSynthesisTask</code>. This operation requires all the
|
|
31
31
|
* standard information needed for speech synthesis, plus the name of an
|
|
@@ -153,6 +153,7 @@ declare const StartSpeechSynthesisTaskCommand_base: {
|
|
|
153
153
|
* @throws {@link PollyServiceException}
|
|
154
154
|
* <p>Base exception class for all service exceptions from Polly service.</p>
|
|
155
155
|
*
|
|
156
|
+
* @public
|
|
156
157
|
*/
|
|
157
158
|
export declare class StartSpeechSynthesisTaskCommand extends StartSpeechSynthesisTaskCommand_base {
|
|
158
159
|
}
|
|
@@ -23,10 +23,10 @@ export interface SynthesizeSpeechCommandOutput extends Omit<SynthesizeSpeechOutp
|
|
|
23
23
|
}
|
|
24
24
|
declare const SynthesizeSpeechCommand_base: {
|
|
25
25
|
new (input: SynthesizeSpeechCommandInput): import("@smithy/smithy-client").CommandImpl<SynthesizeSpeechCommandInput, SynthesizeSpeechCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: SynthesizeSpeechCommandInput): import("@smithy/smithy-client").CommandImpl<SynthesizeSpeechCommandInput, SynthesizeSpeechCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
28
|
};
|
|
28
29
|
/**
|
|
29
|
-
* @public
|
|
30
30
|
* <p>Synthesizes UTF-8 input, plain text or SSML, to a stream of bytes.
|
|
31
31
|
* SSML input must be valid, well-formed SSML. Some alphabets might not be
|
|
32
32
|
* available with all the voices (for example, Cyrillic might not be read at
|
|
@@ -56,7 +56,7 @@ declare const SynthesizeSpeechCommand_base: {
|
|
|
56
56
|
* const command = new SynthesizeSpeechCommand(input);
|
|
57
57
|
* const response = await client.send(command);
|
|
58
58
|
* // { // SynthesizeSpeechOutput
|
|
59
|
-
* // AudioStream: "
|
|
59
|
+
* // AudioStream: "<SdkStream>", // see \@smithy/types -> StreamingBlobPayloadOutputTypes
|
|
60
60
|
* // ContentType: "STRING_VALUE",
|
|
61
61
|
* // RequestCharacters: Number("int"),
|
|
62
62
|
* // };
|
|
@@ -116,6 +116,7 @@ declare const SynthesizeSpeechCommand_base: {
|
|
|
116
116
|
* @throws {@link PollyServiceException}
|
|
117
117
|
* <p>Base exception class for all service exceptions from Polly service.</p>
|
|
118
118
|
*
|
|
119
|
+
* @public
|
|
119
120
|
* @example To synthesize speech
|
|
120
121
|
* ```javascript
|
|
121
122
|
* // Synthesizes plain text or SSML into a file of human-like speech.
|