@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.
Files changed (142) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/Polly.js +0 -9
  3. package/dist-cjs/PollyClient.js +0 -14
  4. package/dist-cjs/commands/DeleteLexiconCommand.js +0 -28
  5. package/dist-cjs/commands/DescribeVoicesCommand.js +0 -43
  6. package/dist-cjs/commands/GetLexiconCommand.js +0 -26
  7. package/dist-cjs/commands/GetSpeechSynthesisTaskCommand.js +0 -28
  8. package/dist-cjs/commands/ListLexiconsCommand.js +0 -25
  9. package/dist-cjs/commands/ListSpeechSynthesisTasksCommand.js +0 -27
  10. package/dist-cjs/commands/PutLexiconCommand.js +0 -30
  11. package/dist-cjs/commands/StartSpeechSynthesisTaskCommand.js +0 -34
  12. package/dist-cjs/commands/SynthesizeSpeechCommand.js +0 -29
  13. package/dist-cjs/commands/index.js +12 -0
  14. package/dist-cjs/endpoints.js +1 -2
  15. package/dist-cjs/index.js +4 -14
  16. package/dist-cjs/models/index.js +0 -1
  17. package/dist-cjs/models/models_0.js +0 -133
  18. package/dist-cjs/pagination/Interfaces.js +0 -1
  19. package/dist-cjs/pagination/ListSpeechSynthesisTasksPaginator.js +0 -11
  20. package/dist-cjs/pagination/index.js +5 -0
  21. package/dist-cjs/protocols/Aws_restJson1.js +0 -6
  22. package/dist-cjs/runtimeConfig.browser.js +1 -6
  23. package/dist-cjs/runtimeConfig.js +2 -7
  24. package/dist-cjs/runtimeConfig.native.js +0 -4
  25. package/dist-cjs/runtimeConfig.shared.js +0 -4
  26. package/dist-es/Polly.js +0 -1
  27. package/dist-es/PollyClient.js +0 -1
  28. package/dist-es/commands/DeleteLexiconCommand.js +0 -1
  29. package/dist-es/commands/DescribeVoicesCommand.js +0 -1
  30. package/dist-es/commands/GetLexiconCommand.js +0 -1
  31. package/dist-es/commands/GetSpeechSynthesisTaskCommand.js +0 -1
  32. package/dist-es/commands/ListLexiconsCommand.js +0 -1
  33. package/dist-es/commands/ListSpeechSynthesisTasksCommand.js +0 -1
  34. package/dist-es/commands/PutLexiconCommand.js +0 -1
  35. package/dist-es/commands/StartSpeechSynthesisTaskCommand.js +0 -1
  36. package/dist-es/commands/SynthesizeSpeechCommand.js +0 -1
  37. package/dist-es/commands/index.js +9 -0
  38. package/dist-es/endpoints.js +1 -2
  39. package/dist-es/index.js +4 -14
  40. package/dist-es/models/index.js +0 -1
  41. package/dist-es/models/models_0.js +0 -1
  42. package/dist-es/pagination/Interfaces.js +0 -1
  43. package/dist-es/pagination/ListSpeechSynthesisTasksPaginator.js +0 -1
  44. package/dist-es/pagination/index.js +2 -0
  45. package/dist-es/protocols/Aws_restJson1.js +0 -1
  46. package/dist-es/runtimeConfig.browser.js +1 -2
  47. package/dist-es/runtimeConfig.js +2 -3
  48. package/dist-es/runtimeConfig.native.js +0 -1
  49. package/dist-es/runtimeConfig.shared.js +0 -1
  50. package/dist-types/commands/index.d.ts +9 -0
  51. package/dist-types/index.d.ts +4 -13
  52. package/dist-types/pagination/index.d.ts +2 -0
  53. package/dist-types/ts3.4/Polly.d.ts +10 -80
  54. package/dist-types/ts3.4/PollyClient.d.ts +24 -94
  55. package/dist-types/ts3.4/commands/DeleteLexiconCommand.d.ts +2 -23
  56. package/dist-types/ts3.4/commands/DescribeVoicesCommand.d.ts +2 -38
  57. package/dist-types/ts3.4/commands/GetLexiconCommand.d.ts +2 -21
  58. package/dist-types/ts3.4/commands/GetSpeechSynthesisTaskCommand.d.ts +2 -23
  59. package/dist-types/ts3.4/commands/ListLexiconsCommand.d.ts +2 -20
  60. package/dist-types/ts3.4/commands/ListSpeechSynthesisTasksCommand.d.ts +2 -22
  61. package/dist-types/ts3.4/commands/PutLexiconCommand.d.ts +2 -25
  62. package/dist-types/ts3.4/commands/StartSpeechSynthesisTaskCommand.d.ts +2 -29
  63. package/dist-types/ts3.4/commands/SynthesizeSpeechCommand.d.ts +2 -24
  64. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  65. package/dist-types/ts3.4/index.d.ts +4 -13
  66. package/dist-types/ts3.4/models/models_0.d.ts +150 -642
  67. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  68. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  69. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  70. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  71. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  72. package/package.json +33 -30
  73. package/dist-cjs/Polly.js.map +0 -1
  74. package/dist-cjs/PollyClient.js.map +0 -1
  75. package/dist-cjs/commands/DeleteLexiconCommand.js.map +0 -1
  76. package/dist-cjs/commands/DescribeVoicesCommand.js.map +0 -1
  77. package/dist-cjs/commands/GetLexiconCommand.js.map +0 -1
  78. package/dist-cjs/commands/GetSpeechSynthesisTaskCommand.js.map +0 -1
  79. package/dist-cjs/commands/ListLexiconsCommand.js.map +0 -1
  80. package/dist-cjs/commands/ListSpeechSynthesisTasksCommand.js.map +0 -1
  81. package/dist-cjs/commands/PutLexiconCommand.js.map +0 -1
  82. package/dist-cjs/commands/StartSpeechSynthesisTaskCommand.js.map +0 -1
  83. package/dist-cjs/commands/SynthesizeSpeechCommand.js.map +0 -1
  84. package/dist-cjs/endpoints.js.map +0 -1
  85. package/dist-cjs/index.js.map +0 -1
  86. package/dist-cjs/models/index.js.map +0 -1
  87. package/dist-cjs/models/models_0.js.map +0 -1
  88. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  89. package/dist-cjs/pagination/ListSpeechSynthesisTasksPaginator.js.map +0 -1
  90. package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
  91. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  92. package/dist-cjs/runtimeConfig.js.map +0 -1
  93. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  94. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  95. package/dist-es/Polly.js.map +0 -1
  96. package/dist-es/PollyClient.js.map +0 -1
  97. package/dist-es/commands/DeleteLexiconCommand.js.map +0 -1
  98. package/dist-es/commands/DescribeVoicesCommand.js.map +0 -1
  99. package/dist-es/commands/GetLexiconCommand.js.map +0 -1
  100. package/dist-es/commands/GetSpeechSynthesisTaskCommand.js.map +0 -1
  101. package/dist-es/commands/ListLexiconsCommand.js.map +0 -1
  102. package/dist-es/commands/ListSpeechSynthesisTasksCommand.js.map +0 -1
  103. package/dist-es/commands/PutLexiconCommand.js.map +0 -1
  104. package/dist-es/commands/StartSpeechSynthesisTaskCommand.js.map +0 -1
  105. package/dist-es/commands/SynthesizeSpeechCommand.js.map +0 -1
  106. package/dist-es/endpoints.js.map +0 -1
  107. package/dist-es/index.js.map +0 -1
  108. package/dist-es/models/index.js.map +0 -1
  109. package/dist-es/models/models_0.js.map +0 -1
  110. package/dist-es/pagination/Interfaces.js.map +0 -1
  111. package/dist-es/pagination/ListSpeechSynthesisTasksPaginator.js.map +0 -1
  112. package/dist-es/protocols/Aws_restJson1.js.map +0 -1
  113. package/dist-es/runtimeConfig.browser.js.map +0 -1
  114. package/dist-es/runtimeConfig.js.map +0 -1
  115. package/dist-es/runtimeConfig.native.js.map +0 -1
  116. package/dist-es/runtimeConfig.shared.js.map +0 -1
  117. package/jest.config.js +0 -4
  118. package/src/Polly.ts +0 -368
  119. package/src/PollyClient.ts +0 -277
  120. package/src/commands/DeleteLexiconCommand.ts +0 -98
  121. package/src/commands/DescribeVoicesCommand.ts +0 -113
  122. package/src/commands/GetLexiconCommand.ts +0 -96
  123. package/src/commands/GetSpeechSynthesisTaskCommand.ts +0 -98
  124. package/src/commands/ListLexiconsCommand.ts +0 -95
  125. package/src/commands/ListSpeechSynthesisTasksCommand.ts +0 -97
  126. package/src/commands/PutLexiconCommand.ts +0 -100
  127. package/src/commands/StartSpeechSynthesisTaskCommand.ts +0 -104
  128. package/src/commands/SynthesizeSpeechCommand.ts +0 -99
  129. package/src/endpoints.ts +0 -82
  130. package/src/index.ts +0 -14
  131. package/src/models/index.ts +0 -1
  132. package/src/models/models_0.ts +0 -1374
  133. package/src/pagination/Interfaces.ts +0 -8
  134. package/src/pagination/ListSpeechSynthesisTasksPaginator.ts +0 -59
  135. package/src/protocols/Aws_restJson1.ts +0 -1712
  136. package/src/runtimeConfig.browser.ts +0 -41
  137. package/src/runtimeConfig.native.ts +0 -17
  138. package/src/runtimeConfig.shared.ts +0 -17
  139. package/src/runtimeConfig.ts +0 -46
  140. package/tsconfig.es.json +0 -10
  141. package/tsconfig.json +0 -33
  142. package/tsconfig.types.json +0 -9
@@ -6,31 +6,11 @@ export interface ListSpeechSynthesisTasksCommandInput extends ListSpeechSynthesi
6
6
  }
7
7
  export interface ListSpeechSynthesisTasksCommandOutput extends ListSpeechSynthesisTasksOutput, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Returns a list of SpeechSynthesisTask objects ordered by their
11
- * creation date. This operation can filter the tasks by their status, for
12
- * example, allowing users to list only tasks that are completed.</p>
13
- * @example
14
- * Use a bare-bones client and the command you need to make an API call.
15
- * ```javascript
16
- * import { PollyClient, ListSpeechSynthesisTasksCommand } from "@aws-sdk/client-polly"; // ES Modules import
17
- * // const { PollyClient, ListSpeechSynthesisTasksCommand } = require("@aws-sdk/client-polly"); // CommonJS import
18
- * const client = new PollyClient(config);
19
- * const command = new ListSpeechSynthesisTasksCommand(input);
20
- * const response = await client.send(command);
21
- * ```
22
- *
23
- * @see {@link ListSpeechSynthesisTasksCommandInput} for command's `input` shape.
24
- * @see {@link ListSpeechSynthesisTasksCommandOutput} for command's `response` shape.
25
- * @see {@link PollyClientResolvedConfig | config} for command's `input` shape.
26
- *
27
- */
9
+
28
10
  export declare class ListSpeechSynthesisTasksCommand extends $Command<ListSpeechSynthesisTasksCommandInput, ListSpeechSynthesisTasksCommandOutput, PollyClientResolvedConfig> {
29
11
  readonly input: ListSpeechSynthesisTasksCommandInput;
30
12
  constructor(input: ListSpeechSynthesisTasksCommandInput);
31
- /**
32
- * @internal
33
- */
13
+
34
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PollyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListSpeechSynthesisTasksCommandInput, ListSpeechSynthesisTasksCommandOutput>;
35
15
  private serialize;
36
16
  private deserialize;
@@ -6,34 +6,11 @@ export interface PutLexiconCommandInput extends PutLexiconInput {
6
6
  }
7
7
  export interface PutLexiconCommandOutput extends PutLexiconOutput, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Stores a pronunciation lexicon in an Amazon Web Services Region. If
11
- * a lexicon with the same name already exists in the region, it is
12
- * overwritten by the new lexicon. Lexicon operations have eventual
13
- * consistency, therefore, it might take some time before the lexicon is
14
- * available to the SynthesizeSpeech operation.</p>
15
- * <p>For more information, see <a href="https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html">Managing Lexicons</a>.</p>
16
- * @example
17
- * Use a bare-bones client and the command you need to make an API call.
18
- * ```javascript
19
- * import { PollyClient, PutLexiconCommand } from "@aws-sdk/client-polly"; // ES Modules import
20
- * // const { PollyClient, PutLexiconCommand } = require("@aws-sdk/client-polly"); // CommonJS import
21
- * const client = new PollyClient(config);
22
- * const command = new PutLexiconCommand(input);
23
- * const response = await client.send(command);
24
- * ```
25
- *
26
- * @see {@link PutLexiconCommandInput} for command's `input` shape.
27
- * @see {@link PutLexiconCommandOutput} for command's `response` shape.
28
- * @see {@link PollyClientResolvedConfig | config} for command's `input` shape.
29
- *
30
- */
9
+
31
10
  export declare class PutLexiconCommand extends $Command<PutLexiconCommandInput, PutLexiconCommandOutput, PollyClientResolvedConfig> {
32
11
  readonly input: PutLexiconCommandInput;
33
12
  constructor(input: PutLexiconCommandInput);
34
- /**
35
- * @internal
36
- */
13
+
37
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PollyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutLexiconCommandInput, PutLexiconCommandOutput>;
38
15
  private serialize;
39
16
  private deserialize;
@@ -6,38 +6,11 @@ export interface StartSpeechSynthesisTaskCommandInput extends StartSpeechSynthes
6
6
  }
7
7
  export interface StartSpeechSynthesisTaskCommandOutput extends StartSpeechSynthesisTaskOutput, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Allows the creation of an asynchronous synthesis task, by starting a
11
- * new <code>SpeechSynthesisTask</code>. This operation requires all the
12
- * standard information needed for speech synthesis, plus the name of an
13
- * Amazon S3 bucket for the service to store the output of the synthesis task
14
- * and two optional parameters (<code>OutputS3KeyPrefix</code> and
15
- * <code>SnsTopicArn</code>). Once the synthesis task is created, this
16
- * operation will return a <code>SpeechSynthesisTask</code> object, which
17
- * will include an identifier of this task as well as the current status. The
18
- * <code>SpeechSynthesisTask</code> object is available for 72 hours after
19
- * starting the asynchronous synthesis task.</p>
20
- * @example
21
- * Use a bare-bones client and the command you need to make an API call.
22
- * ```javascript
23
- * import { PollyClient, StartSpeechSynthesisTaskCommand } from "@aws-sdk/client-polly"; // ES Modules import
24
- * // const { PollyClient, StartSpeechSynthesisTaskCommand } = require("@aws-sdk/client-polly"); // CommonJS import
25
- * const client = new PollyClient(config);
26
- * const command = new StartSpeechSynthesisTaskCommand(input);
27
- * const response = await client.send(command);
28
- * ```
29
- *
30
- * @see {@link StartSpeechSynthesisTaskCommandInput} for command's `input` shape.
31
- * @see {@link StartSpeechSynthesisTaskCommandOutput} for command's `response` shape.
32
- * @see {@link PollyClientResolvedConfig | config} for command's `input` shape.
33
- *
34
- */
9
+
35
10
  export declare class StartSpeechSynthesisTaskCommand extends $Command<StartSpeechSynthesisTaskCommandInput, StartSpeechSynthesisTaskCommandOutput, PollyClientResolvedConfig> {
36
11
  readonly input: StartSpeechSynthesisTaskCommandInput;
37
12
  constructor(input: StartSpeechSynthesisTaskCommandInput);
38
- /**
39
- * @internal
40
- */
13
+
41
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PollyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartSpeechSynthesisTaskCommandInput, StartSpeechSynthesisTaskCommandOutput>;
42
15
  private serialize;
43
16
  private deserialize;
@@ -6,33 +6,11 @@ export interface SynthesizeSpeechCommandInput extends SynthesizeSpeechInput {
6
6
  }
7
7
  export interface SynthesizeSpeechCommandOutput extends SynthesizeSpeechOutput, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Synthesizes UTF-8 input, plain text or SSML, to a stream of bytes.
11
- * SSML input must be valid, well-formed SSML. Some alphabets might not be
12
- * available with all the voices (for example, Cyrillic might not be read at
13
- * all by English voices) unless phoneme mapping is used. For more
14
- * information, see <a href="https://docs.aws.amazon.com/polly/latest/dg/how-text-to-speech-works.html">How it Works</a>.</p>
15
- * @example
16
- * Use a bare-bones client and the command you need to make an API call.
17
- * ```javascript
18
- * import { PollyClient, SynthesizeSpeechCommand } from "@aws-sdk/client-polly"; // ES Modules import
19
- * // const { PollyClient, SynthesizeSpeechCommand } = require("@aws-sdk/client-polly"); // CommonJS import
20
- * const client = new PollyClient(config);
21
- * const command = new SynthesizeSpeechCommand(input);
22
- * const response = await client.send(command);
23
- * ```
24
- *
25
- * @see {@link SynthesizeSpeechCommandInput} for command's `input` shape.
26
- * @see {@link SynthesizeSpeechCommandOutput} for command's `response` shape.
27
- * @see {@link PollyClientResolvedConfig | config} for command's `input` shape.
28
- *
29
- */
9
+
30
10
  export declare class SynthesizeSpeechCommand extends $Command<SynthesizeSpeechCommandInput, SynthesizeSpeechCommandOutput, PollyClientResolvedConfig> {
31
11
  readonly input: SynthesizeSpeechCommandInput;
32
12
  constructor(input: SynthesizeSpeechCommandInput);
33
- /**
34
- * @internal
35
- */
13
+
36
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PollyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<SynthesizeSpeechCommandInput, SynthesizeSpeechCommandOutput>;
37
15
  private serialize;
38
16
  private deserialize;
@@ -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";
@@ -1,14 +1,5 @@
1
- export * from "./PollyClient";
2
1
  export * from "./Polly";
3
- export * from "./commands/DeleteLexiconCommand";
4
- export * from "./commands/DescribeVoicesCommand";
5
- export * from "./commands/GetLexiconCommand";
6
- export * from "./commands/GetSpeechSynthesisTaskCommand";
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";