@aws-sdk/client-polly 3.315.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 CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Polly = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const DeleteLexiconCommand_1 = require("./commands/DeleteLexiconCommand");
5
6
  const DescribeVoicesCommand_1 = require("./commands/DescribeVoicesCommand");
6
7
  const GetLexiconCommand_1 = require("./commands/GetLexiconCommand");
@@ -11,132 +12,18 @@ const PutLexiconCommand_1 = require("./commands/PutLexiconCommand");
11
12
  const StartSpeechSynthesisTaskCommand_1 = require("./commands/StartSpeechSynthesisTaskCommand");
12
13
  const SynthesizeSpeechCommand_1 = require("./commands/SynthesizeSpeechCommand");
13
14
  const PollyClient_1 = require("./PollyClient");
15
+ const commands = {
16
+ DeleteLexiconCommand: DeleteLexiconCommand_1.DeleteLexiconCommand,
17
+ DescribeVoicesCommand: DescribeVoicesCommand_1.DescribeVoicesCommand,
18
+ GetLexiconCommand: GetLexiconCommand_1.GetLexiconCommand,
19
+ GetSpeechSynthesisTaskCommand: GetSpeechSynthesisTaskCommand_1.GetSpeechSynthesisTaskCommand,
20
+ ListLexiconsCommand: ListLexiconsCommand_1.ListLexiconsCommand,
21
+ ListSpeechSynthesisTasksCommand: ListSpeechSynthesisTasksCommand_1.ListSpeechSynthesisTasksCommand,
22
+ PutLexiconCommand: PutLexiconCommand_1.PutLexiconCommand,
23
+ StartSpeechSynthesisTaskCommand: StartSpeechSynthesisTaskCommand_1.StartSpeechSynthesisTaskCommand,
24
+ SynthesizeSpeechCommand: SynthesizeSpeechCommand_1.SynthesizeSpeechCommand,
25
+ };
14
26
  class Polly extends PollyClient_1.PollyClient {
15
- deleteLexicon(args, optionsOrCb, cb) {
16
- const command = new DeleteLexiconCommand_1.DeleteLexiconCommand(args);
17
- if (typeof optionsOrCb === "function") {
18
- this.send(command, optionsOrCb);
19
- }
20
- else if (typeof cb === "function") {
21
- if (typeof optionsOrCb !== "object")
22
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
23
- this.send(command, optionsOrCb || {}, cb);
24
- }
25
- else {
26
- return this.send(command, optionsOrCb);
27
- }
28
- }
29
- describeVoices(args, optionsOrCb, cb) {
30
- const command = new DescribeVoicesCommand_1.DescribeVoicesCommand(args);
31
- if (typeof optionsOrCb === "function") {
32
- this.send(command, optionsOrCb);
33
- }
34
- else if (typeof cb === "function") {
35
- if (typeof optionsOrCb !== "object")
36
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
37
- this.send(command, optionsOrCb || {}, cb);
38
- }
39
- else {
40
- return this.send(command, optionsOrCb);
41
- }
42
- }
43
- getLexicon(args, optionsOrCb, cb) {
44
- const command = new GetLexiconCommand_1.GetLexiconCommand(args);
45
- if (typeof optionsOrCb === "function") {
46
- this.send(command, optionsOrCb);
47
- }
48
- else if (typeof cb === "function") {
49
- if (typeof optionsOrCb !== "object")
50
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
51
- this.send(command, optionsOrCb || {}, cb);
52
- }
53
- else {
54
- return this.send(command, optionsOrCb);
55
- }
56
- }
57
- getSpeechSynthesisTask(args, optionsOrCb, cb) {
58
- const command = new GetSpeechSynthesisTaskCommand_1.GetSpeechSynthesisTaskCommand(args);
59
- if (typeof optionsOrCb === "function") {
60
- this.send(command, optionsOrCb);
61
- }
62
- else if (typeof cb === "function") {
63
- if (typeof optionsOrCb !== "object")
64
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
65
- this.send(command, optionsOrCb || {}, cb);
66
- }
67
- else {
68
- return this.send(command, optionsOrCb);
69
- }
70
- }
71
- listLexicons(args, optionsOrCb, cb) {
72
- const command = new ListLexiconsCommand_1.ListLexiconsCommand(args);
73
- if (typeof optionsOrCb === "function") {
74
- this.send(command, optionsOrCb);
75
- }
76
- else if (typeof cb === "function") {
77
- if (typeof optionsOrCb !== "object")
78
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
79
- this.send(command, optionsOrCb || {}, cb);
80
- }
81
- else {
82
- return this.send(command, optionsOrCb);
83
- }
84
- }
85
- listSpeechSynthesisTasks(args, optionsOrCb, cb) {
86
- const command = new ListSpeechSynthesisTasksCommand_1.ListSpeechSynthesisTasksCommand(args);
87
- if (typeof optionsOrCb === "function") {
88
- this.send(command, optionsOrCb);
89
- }
90
- else if (typeof cb === "function") {
91
- if (typeof optionsOrCb !== "object")
92
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
93
- this.send(command, optionsOrCb || {}, cb);
94
- }
95
- else {
96
- return this.send(command, optionsOrCb);
97
- }
98
- }
99
- putLexicon(args, optionsOrCb, cb) {
100
- const command = new PutLexiconCommand_1.PutLexiconCommand(args);
101
- if (typeof optionsOrCb === "function") {
102
- this.send(command, optionsOrCb);
103
- }
104
- else if (typeof cb === "function") {
105
- if (typeof optionsOrCb !== "object")
106
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
107
- this.send(command, optionsOrCb || {}, cb);
108
- }
109
- else {
110
- return this.send(command, optionsOrCb);
111
- }
112
- }
113
- startSpeechSynthesisTask(args, optionsOrCb, cb) {
114
- const command = new StartSpeechSynthesisTaskCommand_1.StartSpeechSynthesisTaskCommand(args);
115
- if (typeof optionsOrCb === "function") {
116
- this.send(command, optionsOrCb);
117
- }
118
- else if (typeof cb === "function") {
119
- if (typeof optionsOrCb !== "object")
120
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
121
- this.send(command, optionsOrCb || {}, cb);
122
- }
123
- else {
124
- return this.send(command, optionsOrCb);
125
- }
126
- }
127
- synthesizeSpeech(args, optionsOrCb, cb) {
128
- const command = new SynthesizeSpeechCommand_1.SynthesizeSpeechCommand(args);
129
- if (typeof optionsOrCb === "function") {
130
- this.send(command, optionsOrCb);
131
- }
132
- else if (typeof cb === "function") {
133
- if (typeof optionsOrCb !== "object")
134
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
135
- this.send(command, optionsOrCb || {}, cb);
136
- }
137
- else {
138
- return this.send(command, optionsOrCb);
139
- }
140
- }
141
27
  }
142
28
  exports.Polly = Polly;
29
+ (0, smithy_client_1.createAggregatedClient)(commands, Polly);
package/dist-es/Polly.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { DeleteLexiconCommand, } from "./commands/DeleteLexiconCommand";
2
3
  import { DescribeVoicesCommand, } from "./commands/DescribeVoicesCommand";
3
4
  import { GetLexiconCommand } from "./commands/GetLexiconCommand";
@@ -8,131 +9,17 @@ import { PutLexiconCommand } from "./commands/PutLexiconCommand";
8
9
  import { StartSpeechSynthesisTaskCommand, } from "./commands/StartSpeechSynthesisTaskCommand";
9
10
  import { SynthesizeSpeechCommand, } from "./commands/SynthesizeSpeechCommand";
10
11
  import { PollyClient } from "./PollyClient";
12
+ const commands = {
13
+ DeleteLexiconCommand,
14
+ DescribeVoicesCommand,
15
+ GetLexiconCommand,
16
+ GetSpeechSynthesisTaskCommand,
17
+ ListLexiconsCommand,
18
+ ListSpeechSynthesisTasksCommand,
19
+ PutLexiconCommand,
20
+ StartSpeechSynthesisTaskCommand,
21
+ SynthesizeSpeechCommand,
22
+ };
11
23
  export class Polly extends PollyClient {
12
- deleteLexicon(args, optionsOrCb, cb) {
13
- const command = new DeleteLexiconCommand(args);
14
- if (typeof optionsOrCb === "function") {
15
- this.send(command, optionsOrCb);
16
- }
17
- else if (typeof cb === "function") {
18
- if (typeof optionsOrCb !== "object")
19
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
20
- this.send(command, optionsOrCb || {}, cb);
21
- }
22
- else {
23
- return this.send(command, optionsOrCb);
24
- }
25
- }
26
- describeVoices(args, optionsOrCb, cb) {
27
- const command = new DescribeVoicesCommand(args);
28
- if (typeof optionsOrCb === "function") {
29
- this.send(command, optionsOrCb);
30
- }
31
- else if (typeof cb === "function") {
32
- if (typeof optionsOrCb !== "object")
33
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
34
- this.send(command, optionsOrCb || {}, cb);
35
- }
36
- else {
37
- return this.send(command, optionsOrCb);
38
- }
39
- }
40
- getLexicon(args, optionsOrCb, cb) {
41
- const command = new GetLexiconCommand(args);
42
- if (typeof optionsOrCb === "function") {
43
- this.send(command, optionsOrCb);
44
- }
45
- else if (typeof cb === "function") {
46
- if (typeof optionsOrCb !== "object")
47
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
48
- this.send(command, optionsOrCb || {}, cb);
49
- }
50
- else {
51
- return this.send(command, optionsOrCb);
52
- }
53
- }
54
- getSpeechSynthesisTask(args, optionsOrCb, cb) {
55
- const command = new GetSpeechSynthesisTaskCommand(args);
56
- if (typeof optionsOrCb === "function") {
57
- this.send(command, optionsOrCb);
58
- }
59
- else if (typeof cb === "function") {
60
- if (typeof optionsOrCb !== "object")
61
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
62
- this.send(command, optionsOrCb || {}, cb);
63
- }
64
- else {
65
- return this.send(command, optionsOrCb);
66
- }
67
- }
68
- listLexicons(args, optionsOrCb, cb) {
69
- const command = new ListLexiconsCommand(args);
70
- if (typeof optionsOrCb === "function") {
71
- this.send(command, optionsOrCb);
72
- }
73
- else if (typeof cb === "function") {
74
- if (typeof optionsOrCb !== "object")
75
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
76
- this.send(command, optionsOrCb || {}, cb);
77
- }
78
- else {
79
- return this.send(command, optionsOrCb);
80
- }
81
- }
82
- listSpeechSynthesisTasks(args, optionsOrCb, cb) {
83
- const command = new ListSpeechSynthesisTasksCommand(args);
84
- if (typeof optionsOrCb === "function") {
85
- this.send(command, optionsOrCb);
86
- }
87
- else if (typeof cb === "function") {
88
- if (typeof optionsOrCb !== "object")
89
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
90
- this.send(command, optionsOrCb || {}, cb);
91
- }
92
- else {
93
- return this.send(command, optionsOrCb);
94
- }
95
- }
96
- putLexicon(args, optionsOrCb, cb) {
97
- const command = new PutLexiconCommand(args);
98
- if (typeof optionsOrCb === "function") {
99
- this.send(command, optionsOrCb);
100
- }
101
- else if (typeof cb === "function") {
102
- if (typeof optionsOrCb !== "object")
103
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
104
- this.send(command, optionsOrCb || {}, cb);
105
- }
106
- else {
107
- return this.send(command, optionsOrCb);
108
- }
109
- }
110
- startSpeechSynthesisTask(args, optionsOrCb, cb) {
111
- const command = new StartSpeechSynthesisTaskCommand(args);
112
- if (typeof optionsOrCb === "function") {
113
- this.send(command, optionsOrCb);
114
- }
115
- else if (typeof cb === "function") {
116
- if (typeof optionsOrCb !== "object")
117
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
118
- this.send(command, optionsOrCb || {}, cb);
119
- }
120
- else {
121
- return this.send(command, optionsOrCb);
122
- }
123
- }
124
- synthesizeSpeech(args, optionsOrCb, cb) {
125
- const command = new SynthesizeSpeechCommand(args);
126
- if (typeof optionsOrCb === "function") {
127
- this.send(command, optionsOrCb);
128
- }
129
- else if (typeof cb === "function") {
130
- if (typeof optionsOrCb !== "object")
131
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
132
- this.send(command, optionsOrCb || {}, cb);
133
- }
134
- else {
135
- return this.send(command, optionsOrCb);
136
- }
137
- }
138
24
  }
25
+ createAggregatedClient(commands, Polly);
@@ -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
- * @public
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
- * @public
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
- * @public
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
- * @public
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
- * @public
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
- * @public
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
- * @public
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
- * @public
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
- * @public
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 declare class Polly extends PollyClient {
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.315.0",
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.315.0",
24
+ "@aws-sdk/client-sts": "3.316.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
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.315.0",
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.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
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",