@aws-sdk/client-polly 3.1172.0 → 3.1173.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 (47) hide show
  1. package/README.md +21 -0
  2. package/dist-cjs/index.js +384 -137
  3. package/dist-es/Polly.js +11 -1
  4. package/dist-es/commands/CreateVoiceCommand.js +4 -0
  5. package/dist-es/commands/DeleteVoiceCommand.js +4 -0
  6. package/dist-es/commands/GetVoiceCommand.js +4 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/index.js +1 -0
  9. package/dist-es/models/enums.js +49 -21
  10. package/dist-es/models/errors.js +129 -97
  11. package/dist-es/schemas/schemas_0.js +125 -17
  12. package/dist-es/waiters/index.js +1 -0
  13. package/dist-es/waiters/waitForVoiceActive.js +40 -0
  14. package/dist-types/Polly.d.ts +29 -1
  15. package/dist-types/PollyClient.d.ts +5 -2
  16. package/dist-types/commands/CreateVoiceCommand.d.ts +174 -0
  17. package/dist-types/commands/DeleteVoiceCommand.d.ts +99 -0
  18. package/dist-types/commands/DescribeVoicesCommand.d.ts +45 -9
  19. package/dist-types/commands/GetVoiceCommand.d.ts +129 -0
  20. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -2
  21. package/dist-types/commands/StartSpeechSynthesisStreamCommand.d.ts +26 -2
  22. package/dist-types/commands/StartSpeechSynthesisTaskCommand.d.ts +31 -10
  23. package/dist-types/commands/SynthesizeSpeechCommand.d.ts +24 -0
  24. package/dist-types/commands/TagResourceCommand.d.ts +2 -2
  25. package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
  26. package/dist-types/commands/index.d.ts +3 -0
  27. package/dist-types/index.d.ts +1 -0
  28. package/dist-types/models/enums.d.ts +101 -41
  29. package/dist-types/models/errors.d.ts +183 -126
  30. package/dist-types/models/models_0.d.ts +369 -77
  31. package/dist-types/schemas/schemas_0.d.ts +15 -0
  32. package/dist-types/ts3.4/Polly.d.ts +47 -0
  33. package/dist-types/ts3.4/PollyClient.d.ts +9 -0
  34. package/dist-types/ts3.4/commands/CreateVoiceCommand.d.ts +38 -0
  35. package/dist-types/ts3.4/commands/DeleteVoiceCommand.d.ts +38 -0
  36. package/dist-types/ts3.4/commands/GetVoiceCommand.d.ts +38 -0
  37. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  38. package/dist-types/ts3.4/index.d.ts +1 -0
  39. package/dist-types/ts3.4/models/enums.d.ts +60 -27
  40. package/dist-types/ts3.4/models/errors.d.ts +61 -46
  41. package/dist-types/ts3.4/models/models_0.d.ts +64 -16
  42. package/dist-types/ts3.4/schemas/schemas_0.d.ts +15 -0
  43. package/dist-types/ts3.4/waiters/index.d.ts +1 -0
  44. package/dist-types/ts3.4/waiters/waitForVoiceActive.d.ts +12 -0
  45. package/dist-types/waiters/index.d.ts +1 -0
  46. package/dist-types/waiters/waitForVoiceActive.d.ts +15 -0
  47. package/package.json +1 -1
@@ -0,0 +1,99 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { DeleteVoiceInput, DeleteVoiceOutput } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link DeleteVoiceCommand}.
11
+ */
12
+ export interface DeleteVoiceCommandInput extends DeleteVoiceInput {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link DeleteVoiceCommand}.
18
+ */
19
+ export interface DeleteVoiceCommandOutput extends DeleteVoiceOutput, __MetadataBearer {
20
+ }
21
+ declare const DeleteVoiceCommand_base: {
22
+ new (input: DeleteVoiceCommandInput): import("@smithy/core/client").CommandImpl<DeleteVoiceCommandInput, DeleteVoiceCommandOutput, import("..").PollyClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteVoiceCommandInput): import("@smithy/core/client").CommandImpl<DeleteVoiceCommandInput, DeleteVoiceCommandOutput, import("..").PollyClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Deletes a custom voice. <code>DescribeVoices</code> and
28
+ * <code>GetVoice</code> stop returning the voice immediately. You can't
29
+ * restore a deleted voice.</p>
30
+ * <p>You can delete a voice in <code>active</code> or <code>failed</code>
31
+ * status. If the voice is in <code>pending</code> status, the request fails
32
+ * with <code>ConflictException</code>. If no custom voice with the specified
33
+ * ID exists in your account and Region, the request fails with
34
+ * <code>ResourceNotFoundException</code>. You can delete the voice even if
35
+ * you disabled its Amazon Web Services KMS key or scheduled it for deletion.</p>
36
+ * <p>This operation requires permissions to perform the
37
+ * <code>polly:DeleteVoice</code> action.</p>
38
+ * @example
39
+ * Use a bare-bones client and the command you need to make an API call.
40
+ * ```javascript
41
+ * import { PollyClient, DeleteVoiceCommand } from "@aws-sdk/client-polly"; // ES Modules import
42
+ * // const { PollyClient, DeleteVoiceCommand } = require("@aws-sdk/client-polly"); // CommonJS import
43
+ * // import type { PollyClientConfig } from "@aws-sdk/client-polly";
44
+ * const config = {}; // type is PollyClientConfig
45
+ * const client = new PollyClient(config);
46
+ * const input = { // DeleteVoiceInput
47
+ * VoiceId: "STRING_VALUE", // required
48
+ * };
49
+ * const command = new DeleteVoiceCommand(input);
50
+ * const response = await client.send(command);
51
+ * // {};
52
+ *
53
+ * ```
54
+ *
55
+ * @param DeleteVoiceCommandInput - {@link DeleteVoiceCommandInput}
56
+ * @returns {@link DeleteVoiceCommandOutput}
57
+ * @see {@link DeleteVoiceCommandInput} for command's `input` shape.
58
+ * @see {@link DeleteVoiceCommandOutput} for command's `response` shape.
59
+ * @see {@link PollyClientResolvedConfig | config} for PollyClient's `config` shape.
60
+ *
61
+ * @throws {@link ConflictException} (client fault)
62
+ * <p>The request conflicts with the current state of the resource. For
63
+ * a custom voice, the voice isn't in the status that the operation
64
+ * requires. Check the status with <code>GetVoice</code>, and then try
65
+ * again.</p>
66
+ *
67
+ * @throws {@link ResourceNotFoundException} (client fault)
68
+ * <p>Amazon Polly can't find the specified resource. Verify that the resource
69
+ * exists in the Amazon Web Services account and Region of the request and that its ARN or
70
+ * ID is spelled correctly, and then try again.</p>
71
+ *
72
+ * @throws {@link ServiceFailureException} (server fault)
73
+ * <p>An unknown condition has caused a service failure.</p>
74
+ *
75
+ * @throws {@link ThrottlingException} (client fault)
76
+ * <p>The request was denied because of request throttling.</p>
77
+ *
78
+ * @throws {@link ValidationException} (client fault)
79
+ * <p>The input fails to satisfy the constraints specified by the service.</p>
80
+ *
81
+ * @throws {@link PollyServiceException}
82
+ * <p>Base exception class for all service exceptions from Polly service.</p>
83
+ *
84
+ *
85
+ * @public
86
+ */
87
+ export declare class DeleteVoiceCommand extends DeleteVoiceCommand_base {
88
+ /** @internal type navigation helper, not in runtime. */
89
+ protected static __types: {
90
+ api: {
91
+ input: DeleteVoiceInput;
92
+ output: {};
93
+ };
94
+ sdk: {
95
+ input: DeleteVoiceCommandInput;
96
+ output: DeleteVoiceCommandOutput;
97
+ };
98
+ };
99
+ }
@@ -24,20 +24,34 @@ declare const DescribeVoicesCommand_base: {
24
24
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
25
  };
26
26
  /**
27
- * <p>Returns the list of voices that are available for use when
28
- * requesting speech synthesis. Each voice speaks a specified language, is
29
- * either male or female, and is identified by an ID, which is the ASCII
30
- * version of the voice name. </p>
31
- * <p>When synthesizing speech ( <code>SynthesizeSpeech</code> ), you
27
+ * <p>Returns the list of voices: the voices that Amazon Polly provides and
28
+ * the custom voices in your account. Each voice speaks a specified language
29
+ * and is identified by an ID. A voice that Amazon Polly provides is either male or
30
+ * female, and its ID is the ASCII version of the voice name.</p>
31
+ * <p>When synthesizing speech (<code>SynthesizeSpeech</code>), you
32
32
  * provide the voice ID for the voice you want from the list of voices
33
33
  * returned by <code>DescribeVoices</code>.</p>
34
- * <p>For example, you want your news reader application to read news in
35
- * a specific language, but giving a user the option to choose the voice.
36
- * Using the <code>DescribeVoices</code> operation you can provide the user
37
- * with a list of available voices to select from.</p>
34
+ * <p>For example, your news reader application reads news in a specific
35
+ * language, and you want to give users the option to choose the voice. With
36
+ * the <code>DescribeVoices</code> operation, you can provide a list of
37
+ * available voices for users to choose from.</p>
38
38
  * <p> You can optionally specify a language code to filter the available
39
39
  * voices. For example, if you specify <code>en-US</code>, the operation
40
40
  * returns a list of all available US English voices. </p>
41
+ * <p>The list includes custom voices in every status. For each voice, <code>Origin</code> indicates whether Amazon Polly
42
+ * provides the voice or you created it. You can use a custom voice for
43
+ * synthesis only when its status is <code>active</code>. A voice in
44
+ * <code>failed</code> status stays in the list until you delete it.</p>
45
+ * <p>For a custom voice, <code>DescribeVoices</code> returns
46
+ * <code>Origin</code>, <code>Id</code>, <code>Name</code>,
47
+ * <code>Status</code>, <code>LanguageCode</code>, <code>LanguageName</code>,
48
+ * <code>SupportedEngines</code>, and <code>CreationTime</code>. To get
49
+ * <code>Arn</code>, <code>StatusReason</code>,
50
+ * <code>VoiceCreationData</code>, and
51
+ * <code>CustomerManagedEncryption</code>, use <code>GetVoice</code>.</p>
52
+ * <p>The <code>LanguageCode</code> and <code>Engine</code> filters apply
53
+ * to custom voices in the same way as to voices that Amazon Polly
54
+ * provides.</p>
41
55
  * <p>This operation requires permissions to perform the
42
56
  * <code>polly:DescribeVoices</code> action.</p>
43
57
  * @example
@@ -59,17 +73,39 @@ declare const DescribeVoicesCommand_base: {
59
73
  * // { // DescribeVoicesOutput
60
74
  * // Voices: [ // VoiceList
61
75
  * // { // Voice
76
+ * // Arn: "STRING_VALUE",
62
77
  * // Gender: "Female" || "Male",
63
78
  * // Id: "Aditi" || "Amy" || "Astrid" || "Bianca" || "Brian" || "Camila" || "Carla" || "Carmen" || "Celine" || "Chantal" || "Conchita" || "Cristiano" || "Dora" || "Emma" || "Enrique" || "Ewa" || "Filiz" || "Gabrielle" || "Geraint" || "Giorgio" || "Gwyneth" || "Hans" || "Ines" || "Ivy" || "Jacek" || "Jan" || "Joanna" || "Joey" || "Justin" || "Karl" || "Kendra" || "Kevin" || "Kimberly" || "Lea" || "Liv" || "Lotte" || "Lucia" || "Lupe" || "Mads" || "Maja" || "Marlene" || "Mathieu" || "Matthew" || "Maxim" || "Mia" || "Miguel" || "Mizuki" || "Naja" || "Nicole" || "Olivia" || "Penelope" || "Raveena" || "Ricardo" || "Ruben" || "Russell" || "Salli" || "Seoyeon" || "Takumi" || "Tatyana" || "Vicki" || "Vitoria" || "Zeina" || "Zhiyu" || "Aria" || "Ayanda" || "Arlet" || "Hannah" || "Arthur" || "Daniel" || "Liam" || "Pedro" || "Kajal" || "Hiujin" || "Laura" || "Elin" || "Ida" || "Suvi" || "Ola" || "Hala" || "Andres" || "Sergio" || "Remi" || "Adriano" || "Thiago" || "Ruth" || "Stephen" || "Kazuha" || "Tomoko" || "Niamh" || "Sofie" || "Lisa" || "Isabelle" || "Zayd" || "Danielle" || "Gregory" || "Burcu" || "Jitka" || "Sabrina" || "Jasmine" || "Jihye" || "Ambre" || "Beatrice" || "Florian" || "Lennart" || "Lorenzo" || "Tiffany" || "Arjun" || "Carlos" || "Carolina" || "Curtis" || "Hyunduk" || "Kenneth" || "Kiara" || "Leo" || "Nate" || "Tina",
64
79
  * // LanguageCode: "arb" || "cmn-CN" || "cy-GB" || "da-DK" || "de-DE" || "en-AU" || "en-GB" || "en-GB-WLS" || "en-IN" || "en-US" || "es-ES" || "es-MX" || "es-US" || "fr-CA" || "fr-FR" || "is-IS" || "it-IT" || "ja-JP" || "hi-IN" || "ko-KR" || "nb-NO" || "nl-NL" || "pl-PL" || "pt-BR" || "pt-PT" || "ro-RO" || "ru-RU" || "sv-SE" || "tr-TR" || "en-NZ" || "en-ZA" || "ca-ES" || "de-AT" || "yue-CN" || "ar-AE" || "fi-FI" || "en-IE" || "nl-BE" || "fr-BE" || "cs-CZ" || "de-CH" || "en-SG",
65
80
  * // LanguageName: "STRING_VALUE",
66
81
  * // Name: "STRING_VALUE",
82
+ * // Origin: "aws" || "customer",
83
+ * // Status: "pending" || "active" || "failed",
84
+ * // StatusReason: "STRING_VALUE",
67
85
  * // AdditionalLanguageCodes: [ // LanguageCodeList
68
86
  * // "arb" || "cmn-CN" || "cy-GB" || "da-DK" || "de-DE" || "en-AU" || "en-GB" || "en-GB-WLS" || "en-IN" || "en-US" || "es-ES" || "es-MX" || "es-US" || "fr-CA" || "fr-FR" || "is-IS" || "it-IT" || "ja-JP" || "hi-IN" || "ko-KR" || "nb-NO" || "nl-NL" || "pl-PL" || "pt-BR" || "pt-PT" || "ro-RO" || "ru-RU" || "sv-SE" || "tr-TR" || "en-NZ" || "en-ZA" || "ca-ES" || "de-AT" || "yue-CN" || "ar-AE" || "fi-FI" || "en-IE" || "nl-BE" || "fr-BE" || "cs-CZ" || "de-CH" || "en-SG",
69
87
  * // ],
70
88
  * // SupportedEngines: [ // EngineList
71
89
  * // "standard" || "neural" || "long-form" || "generative",
72
90
  * // ],
91
+ * // VoiceCreationData: { // VoiceCreationData
92
+ * // Recordings: [ // RecordingList // required
93
+ * // { // Recording
94
+ * // Format: "wav" || "flac" || "ogg_vorbis" || "mp3", // required
95
+ * // Data: { // RecordingData
96
+ * // S3Url: "STRING_VALUE",
97
+ * // Bytes: new Uint8Array(),
98
+ * // },
99
+ * // },
100
+ * // ],
101
+ * // },
102
+ * // CustomerManagedEncryption: { // CustomerManagedEncryption
103
+ * // KmsKeyArn: "STRING_VALUE", // required
104
+ * // EncryptionContext: { // EncryptionContext
105
+ * // "<keys>": "STRING_VALUE",
106
+ * // },
107
+ * // },
108
+ * // CreationTime: new Date("TIMESTAMP"),
73
109
  * // },
74
110
  * // ],
75
111
  * // NextToken: "STRING_VALUE",
@@ -0,0 +1,129 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { GetVoiceInput, GetVoiceOutput } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link GetVoiceCommand}.
11
+ */
12
+ export interface GetVoiceCommandInput extends GetVoiceInput {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link GetVoiceCommand}.
18
+ */
19
+ export interface GetVoiceCommandOutput extends GetVoiceOutput, __MetadataBearer {
20
+ }
21
+ declare const GetVoiceCommand_base: {
22
+ new (input: GetVoiceCommandInput): import("@smithy/core/client").CommandImpl<GetVoiceCommandInput, GetVoiceCommandOutput, import("..").PollyClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: GetVoiceCommandInput): import("@smithy/core/client").CommandImpl<GetVoiceCommandInput, GetVoiceCommandOutput, import("..").PollyClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Returns the status and properties of a custom voice. Use this
28
+ * operation after <code>CreateVoice</code> to check whether the status of
29
+ * the voice is <code>active</code> or <code>failed</code>. Unlike
30
+ * <code>DescribeVoices</code>, <code>GetVoice</code> also returns
31
+ * <code>Arn</code>, <code>VoiceCreationData</code>,
32
+ * <code>CustomerManagedEncryption</code>, and
33
+ * <code>StatusReason</code>. If no custom voice with the specified ID exists
34
+ * in your account and Region, the request fails with
35
+ * <code>ResourceNotFoundException</code>.</p>
36
+ * <p>This operation requires permissions to perform the
37
+ * <code>polly:GetVoice</code> action.</p>
38
+ * @example
39
+ * Use a bare-bones client and the command you need to make an API call.
40
+ * ```javascript
41
+ * import { PollyClient, GetVoiceCommand } from "@aws-sdk/client-polly"; // ES Modules import
42
+ * // const { PollyClient, GetVoiceCommand } = require("@aws-sdk/client-polly"); // CommonJS import
43
+ * // import type { PollyClientConfig } from "@aws-sdk/client-polly";
44
+ * const config = {}; // type is PollyClientConfig
45
+ * const client = new PollyClient(config);
46
+ * const input = { // GetVoiceInput
47
+ * VoiceId: "STRING_VALUE", // required
48
+ * };
49
+ * const command = new GetVoiceCommand(input);
50
+ * const response = await client.send(command);
51
+ * // { // GetVoiceOutput
52
+ * // Voice: { // Voice
53
+ * // Arn: "STRING_VALUE",
54
+ * // Gender: "Female" || "Male",
55
+ * // Id: "Aditi" || "Amy" || "Astrid" || "Bianca" || "Brian" || "Camila" || "Carla" || "Carmen" || "Celine" || "Chantal" || "Conchita" || "Cristiano" || "Dora" || "Emma" || "Enrique" || "Ewa" || "Filiz" || "Gabrielle" || "Geraint" || "Giorgio" || "Gwyneth" || "Hans" || "Ines" || "Ivy" || "Jacek" || "Jan" || "Joanna" || "Joey" || "Justin" || "Karl" || "Kendra" || "Kevin" || "Kimberly" || "Lea" || "Liv" || "Lotte" || "Lucia" || "Lupe" || "Mads" || "Maja" || "Marlene" || "Mathieu" || "Matthew" || "Maxim" || "Mia" || "Miguel" || "Mizuki" || "Naja" || "Nicole" || "Olivia" || "Penelope" || "Raveena" || "Ricardo" || "Ruben" || "Russell" || "Salli" || "Seoyeon" || "Takumi" || "Tatyana" || "Vicki" || "Vitoria" || "Zeina" || "Zhiyu" || "Aria" || "Ayanda" || "Arlet" || "Hannah" || "Arthur" || "Daniel" || "Liam" || "Pedro" || "Kajal" || "Hiujin" || "Laura" || "Elin" || "Ida" || "Suvi" || "Ola" || "Hala" || "Andres" || "Sergio" || "Remi" || "Adriano" || "Thiago" || "Ruth" || "Stephen" || "Kazuha" || "Tomoko" || "Niamh" || "Sofie" || "Lisa" || "Isabelle" || "Zayd" || "Danielle" || "Gregory" || "Burcu" || "Jitka" || "Sabrina" || "Jasmine" || "Jihye" || "Ambre" || "Beatrice" || "Florian" || "Lennart" || "Lorenzo" || "Tiffany" || "Arjun" || "Carlos" || "Carolina" || "Curtis" || "Hyunduk" || "Kenneth" || "Kiara" || "Leo" || "Nate" || "Tina",
56
+ * // LanguageCode: "arb" || "cmn-CN" || "cy-GB" || "da-DK" || "de-DE" || "en-AU" || "en-GB" || "en-GB-WLS" || "en-IN" || "en-US" || "es-ES" || "es-MX" || "es-US" || "fr-CA" || "fr-FR" || "is-IS" || "it-IT" || "ja-JP" || "hi-IN" || "ko-KR" || "nb-NO" || "nl-NL" || "pl-PL" || "pt-BR" || "pt-PT" || "ro-RO" || "ru-RU" || "sv-SE" || "tr-TR" || "en-NZ" || "en-ZA" || "ca-ES" || "de-AT" || "yue-CN" || "ar-AE" || "fi-FI" || "en-IE" || "nl-BE" || "fr-BE" || "cs-CZ" || "de-CH" || "en-SG",
57
+ * // LanguageName: "STRING_VALUE",
58
+ * // Name: "STRING_VALUE",
59
+ * // Origin: "aws" || "customer",
60
+ * // Status: "pending" || "active" || "failed",
61
+ * // StatusReason: "STRING_VALUE",
62
+ * // AdditionalLanguageCodes: [ // LanguageCodeList
63
+ * // "arb" || "cmn-CN" || "cy-GB" || "da-DK" || "de-DE" || "en-AU" || "en-GB" || "en-GB-WLS" || "en-IN" || "en-US" || "es-ES" || "es-MX" || "es-US" || "fr-CA" || "fr-FR" || "is-IS" || "it-IT" || "ja-JP" || "hi-IN" || "ko-KR" || "nb-NO" || "nl-NL" || "pl-PL" || "pt-BR" || "pt-PT" || "ro-RO" || "ru-RU" || "sv-SE" || "tr-TR" || "en-NZ" || "en-ZA" || "ca-ES" || "de-AT" || "yue-CN" || "ar-AE" || "fi-FI" || "en-IE" || "nl-BE" || "fr-BE" || "cs-CZ" || "de-CH" || "en-SG",
64
+ * // ],
65
+ * // SupportedEngines: [ // EngineList
66
+ * // "standard" || "neural" || "long-form" || "generative",
67
+ * // ],
68
+ * // VoiceCreationData: { // VoiceCreationData
69
+ * // Recordings: [ // RecordingList // required
70
+ * // { // Recording
71
+ * // Format: "wav" || "flac" || "ogg_vorbis" || "mp3", // required
72
+ * // Data: { // RecordingData
73
+ * // S3Url: "STRING_VALUE",
74
+ * // Bytes: new Uint8Array(),
75
+ * // },
76
+ * // },
77
+ * // ],
78
+ * // },
79
+ * // CustomerManagedEncryption: { // CustomerManagedEncryption
80
+ * // KmsKeyArn: "STRING_VALUE", // required
81
+ * // EncryptionContext: { // EncryptionContext
82
+ * // "<keys>": "STRING_VALUE",
83
+ * // },
84
+ * // },
85
+ * // CreationTime: new Date("TIMESTAMP"),
86
+ * // },
87
+ * // };
88
+ *
89
+ * ```
90
+ *
91
+ * @param GetVoiceCommandInput - {@link GetVoiceCommandInput}
92
+ * @returns {@link GetVoiceCommandOutput}
93
+ * @see {@link GetVoiceCommandInput} for command's `input` shape.
94
+ * @see {@link GetVoiceCommandOutput} for command's `response` shape.
95
+ * @see {@link PollyClientResolvedConfig | config} for PollyClient's `config` shape.
96
+ *
97
+ * @throws {@link ResourceNotFoundException} (client fault)
98
+ * <p>Amazon Polly can't find the specified resource. Verify that the resource
99
+ * exists in the Amazon Web Services account and Region of the request and that its ARN or
100
+ * ID is spelled correctly, and then try again.</p>
101
+ *
102
+ * @throws {@link ServiceFailureException} (server fault)
103
+ * <p>An unknown condition has caused a service failure.</p>
104
+ *
105
+ * @throws {@link ThrottlingException} (client fault)
106
+ * <p>The request was denied because of request throttling.</p>
107
+ *
108
+ * @throws {@link ValidationException} (client fault)
109
+ * <p>The input fails to satisfy the constraints specified by the service.</p>
110
+ *
111
+ * @throws {@link PollyServiceException}
112
+ * <p>Base exception class for all service exceptions from Polly service.</p>
113
+ *
114
+ *
115
+ * @public
116
+ */
117
+ export declare class GetVoiceCommand extends GetVoiceCommand_base {
118
+ /** @internal type navigation helper, not in runtime. */
119
+ protected static __types: {
120
+ api: {
121
+ input: GetVoiceInput;
122
+ output: GetVoiceOutput;
123
+ };
124
+ sdk: {
125
+ input: GetVoiceCommandInput;
126
+ output: GetVoiceCommandOutput;
127
+ };
128
+ };
129
+ }
@@ -61,8 +61,8 @@ declare const ListTagsForResourceCommand_base: {
61
61
  *
62
62
  * @throws {@link ResourceNotFoundException} (client fault)
63
63
  * <p>Amazon Polly can't find the specified resource. Verify that the resource
64
- * exists in the Amazon Web Services account and Region of the request and that its ARN is
65
- * spelled correctly, and then try again.</p>
64
+ * exists in the Amazon Web Services account and Region of the request and that its ARN or
65
+ * ID is spelled correctly, and then try again.</p>
66
66
  *
67
67
  * @throws {@link ServiceFailureException} (server fault)
68
68
  * <p>An unknown condition has caused a service failure.</p>
@@ -35,6 +35,19 @@ declare const StartSpeechSynthesisStreamCommand_base: {
35
35
  * </p>
36
36
  * </li>
37
37
  * </ul>
38
+ * <p>To use a custom voice, specify its ID in <code>VoiceId</code>. The
39
+ * voice must be in <code>active</code> status. If the voice is in
40
+ * <code>pending</code> or <code>failed</code> status, the request fails with
41
+ * <code>ConflictException</code>. If no custom voice with the specified ID
42
+ * exists in your account and Region, the request fails with
43
+ * <code>ResourceNotFoundException</code>. If the custom voice uses a
44
+ * customer managed key, you need <code>kms:Decrypt</code> permission on the
45
+ * key. If you disabled the key or scheduled it for deletion, the request
46
+ * fails with <code>ValidationException</code>. If you don't have permission
47
+ * to use the key, the request fails with
48
+ * <code>AccessDeniedException</code>. If Amazon Web Services KMS throttles Amazon Polly's
49
+ * request to use the key, the request fails with
50
+ * <code>ThrottlingException</code>.</p>
38
51
  * @example
39
52
  * Use a bare-bones client and the command you need to make an API call.
40
53
  * ```javascript
@@ -75,7 +88,7 @@ declare const StartSpeechSynthesisStreamCommand_base: {
75
88
  * // },
76
89
  * // ValidationException: { // ValidationException
77
90
  * // message: "STRING_VALUE", // required
78
- * // reason: "unsupportedOperation" || "fieldValidationFailed" || "other" || "invalidInboundEvent", // required
91
+ * // reason: "unsupportedOperation" || "fieldValidationFailed" || "other" || "invalidInboundEvent" || "kmsKeyNotFound" || "kmsKeyUnusable", // required
79
92
  * // fields: [ // ValidationExceptionFieldList
80
93
  * // { // ValidationExceptionField
81
94
  * // name: "STRING_VALUE", // required
@@ -85,7 +98,7 @@ declare const StartSpeechSynthesisStreamCommand_base: {
85
98
  * // },
86
99
  * // ServiceQuotaExceededException: { // ServiceQuotaExceededException
87
100
  * // message: "STRING_VALUE", // required
88
- * // quotaCode: "input-stream-inbound-event-timeout" || "input-stream-timeout", // required
101
+ * // quotaCode: "input-stream-inbound-event-timeout" || "input-stream-timeout" || "custom-voice-max-count", // required
89
102
  * // serviceCode: "polly", // required
90
103
  * // },
91
104
  * // ServiceFailureException: { // ServiceFailureException
@@ -111,6 +124,17 @@ declare const StartSpeechSynthesisStreamCommand_base: {
111
124
  * @see {@link StartSpeechSynthesisStreamCommandOutput} for command's `response` shape.
112
125
  * @see {@link PollyClientResolvedConfig | config} for PollyClient's `config` shape.
113
126
  *
127
+ * @throws {@link ConflictException} (client fault)
128
+ * <p>The request conflicts with the current state of the resource. For
129
+ * a custom voice, the voice isn't in the status that the operation
130
+ * requires. Check the status with <code>GetVoice</code>, and then try
131
+ * again.</p>
132
+ *
133
+ * @throws {@link ResourceNotFoundException} (client fault)
134
+ * <p>Amazon Polly can't find the specified resource. Verify that the resource
135
+ * exists in the Amazon Web Services account and Region of the request and that its ARN or
136
+ * ID is spelled correctly, and then try again.</p>
137
+ *
114
138
  * @throws {@link ServiceFailureException} (server fault)
115
139
  * <p>An unknown condition has caused a service failure.</p>
116
140
  *
@@ -24,16 +24,26 @@ declare const StartSpeechSynthesisTaskCommand_base: {
24
24
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
25
  };
26
26
  /**
27
- * <p>Allows the creation of an asynchronous synthesis task, by starting a
28
- * new <code>SpeechSynthesisTask</code>. This operation requires all the
29
- * standard information needed for speech synthesis, plus the name of an
30
- * Amazon S3 bucket for the service to store the output of the synthesis task
31
- * and two optional parameters (<code>OutputS3KeyPrefix</code> and
32
- * <code>SnsTopicArn</code>). Once the synthesis task is created, this
33
- * operation will return a <code>SpeechSynthesisTask</code> object, which
34
- * will include an identifier of this task as well as the current status. The
35
- * <code>SpeechSynthesisTask</code> object is available for 72 hours after
36
- * starting the asynchronous synthesis task.</p>
27
+ * <p>Starts an asynchronous synthesis task by creating a new
28
+ * <code>SpeechSynthesisTask</code>. This operation requires all the standard
29
+ * information needed for speech synthesis, plus the name of an Amazon S3
30
+ * bucket for the service to store the output of the synthesis task and two
31
+ * optional parameters (<code>OutputS3KeyPrefix</code> and
32
+ * <code>SnsTopicArn</code>). After Amazon Polly creates the synthesis task, the
33
+ * operation returns a <code>SpeechSynthesisTask</code> object that includes
34
+ * an identifier for the task and its current status. The
35
+ * <code>SpeechSynthesisTask</code> object is available for 72 hours after
36
+ * you start the asynchronous synthesis task.</p>
37
+ * <p>To use a custom voice, specify its ID in <code>VoiceId</code>. The
38
+ * voice must be in <code>active</code> status. If the voice is in
39
+ * <code>pending</code> or <code>failed</code> status, the request fails with
40
+ * <code>ConflictException</code>. If no custom voice with the specified ID
41
+ * exists in your account and Region, the request fails with
42
+ * <code>ResourceNotFoundException</code>. If the custom voice uses a
43
+ * customer managed key, you need <code>kms:Decrypt</code> permission on the
44
+ * key. If you disable the key or schedule it for deletion before the task
45
+ * runs, the task fails and <code>TaskStatusReason</code> describes the
46
+ * cause.</p>
37
47
  * @example
38
48
  * Use a bare-bones client and the command you need to make an API call.
39
49
  * ```javascript
@@ -94,6 +104,12 @@ declare const StartSpeechSynthesisTaskCommand_base: {
94
104
  * @see {@link StartSpeechSynthesisTaskCommandOutput} for command's `response` shape.
95
105
  * @see {@link PollyClientResolvedConfig | config} for PollyClient's `config` shape.
96
106
  *
107
+ * @throws {@link ConflictException} (client fault)
108
+ * <p>The request conflicts with the current state of the resource. For
109
+ * a custom voice, the voice isn't in the status that the operation
110
+ * requires. Check the status with <code>GetVoice</code>, and then try
111
+ * again.</p>
112
+ *
97
113
  * @throws {@link EngineNotSupportedException} (client fault)
98
114
  * <p>This engine is not compatible with the voice that you have designated.
99
115
  * Choose a new voice that is compatible with the engine or change the engine
@@ -134,6 +150,11 @@ declare const StartSpeechSynthesisTaskCommand_base: {
134
150
  * selected. Speech marks are only available for content in <code>json</code>
135
151
  * format.</p>
136
152
  *
153
+ * @throws {@link ResourceNotFoundException} (client fault)
154
+ * <p>Amazon Polly can't find the specified resource. Verify that the resource
155
+ * exists in the Amazon Web Services account and Region of the request and that its ARN or
156
+ * ID is spelled correctly, and then try again.</p>
157
+ *
137
158
  * @throws {@link ServiceFailureException} (server fault)
138
159
  * <p>An unknown condition has caused a service failure.</p>
139
160
  *
@@ -30,6 +30,19 @@ declare const SynthesizeSpeechCommand_base: {
30
30
  * available with all the voices (for example, Cyrillic might not be read at
31
31
  * all by English voices) unless phoneme mapping is used. For more
32
32
  * information, see <a href="https://docs.aws.amazon.com/polly/latest/dg/how-text-to-speech-works.html">How it Works</a>.</p>
33
+ * <p>To use a custom voice, specify its ID in <code>VoiceId</code>. The
34
+ * voice must be in <code>active</code> status. If the voice is in
35
+ * <code>pending</code> or <code>failed</code> status, the request fails with
36
+ * <code>ConflictException</code>. If no custom voice with the specified ID
37
+ * exists in your account and Region, the request fails with
38
+ * <code>ResourceNotFoundException</code>.</p>
39
+ * <p>If the custom voice uses a customer managed key, you need
40
+ * <code>kms:Decrypt</code> permission on the key. If you disabled the key or
41
+ * scheduled it for deletion, the request fails with
42
+ * <code>ValidationException</code>. If you don't have permission to use the
43
+ * key, the request fails with <code>AccessDeniedException</code>. If Amazon Web Services
44
+ * KMS throttles Amazon Polly's request to use the key, the request fails with
45
+ * <code>ThrottlingException</code>.</p>
33
46
  * @example
34
47
  * Use a bare-bones client and the command you need to make an API call.
35
48
  * ```javascript
@@ -74,6 +87,12 @@ declare const SynthesizeSpeechCommand_base: {
74
87
  * @see {@link SynthesizeSpeechCommandOutput} for command's `response` shape.
75
88
  * @see {@link PollyClientResolvedConfig | config} for PollyClient's `config` shape.
76
89
  *
90
+ * @throws {@link ConflictException} (client fault)
91
+ * <p>The request conflicts with the current state of the resource. For
92
+ * a custom voice, the voice isn't in the status that the operation
93
+ * requires. Check the status with <code>GetVoice</code>, and then try
94
+ * again.</p>
95
+ *
77
96
  * @throws {@link EngineNotSupportedException} (client fault)
78
97
  * <p>This engine is not compatible with the voice that you have designated.
79
98
  * Choose a new voice that is compatible with the engine or change the engine
@@ -102,6 +121,11 @@ declare const SynthesizeSpeechCommand_base: {
102
121
  * selected. Speech marks are only available for content in <code>json</code>
103
122
  * format.</p>
104
123
  *
124
+ * @throws {@link ResourceNotFoundException} (client fault)
125
+ * <p>Amazon Polly can't find the specified resource. Verify that the resource
126
+ * exists in the Amazon Web Services account and Region of the request and that its ARN or
127
+ * ID is spelled correctly, and then try again.</p>
128
+ *
105
129
  * @throws {@link ServiceFailureException} (server fault)
106
130
  * <p>An unknown condition has caused a service failure.</p>
107
131
  *
@@ -63,8 +63,8 @@ declare const TagResourceCommand_base: {
63
63
  *
64
64
  * @throws {@link ResourceNotFoundException} (client fault)
65
65
  * <p>Amazon Polly can't find the specified resource. Verify that the resource
66
- * exists in the Amazon Web Services account and Region of the request and that its ARN is
67
- * spelled correctly, and then try again.</p>
66
+ * exists in the Amazon Web Services account and Region of the request and that its ARN or
67
+ * ID is spelled correctly, and then try again.</p>
68
68
  *
69
69
  * @throws {@link ServiceFailureException} (server fault)
70
70
  * <p>An unknown condition has caused a service failure.</p>
@@ -60,8 +60,8 @@ declare const UntagResourceCommand_base: {
60
60
  *
61
61
  * @throws {@link ResourceNotFoundException} (client fault)
62
62
  * <p>Amazon Polly can't find the specified resource. Verify that the resource
63
- * exists in the Amazon Web Services account and Region of the request and that its ARN is
64
- * spelled correctly, and then try again.</p>
63
+ * exists in the Amazon Web Services account and Region of the request and that its ARN or
64
+ * ID is spelled correctly, and then try again.</p>
65
65
  *
66
66
  * @throws {@link ServiceFailureException} (server fault)
67
67
  * <p>An unknown condition has caused a service failure.</p>
@@ -1,7 +1,10 @@
1
+ export * from "./CreateVoiceCommand";
1
2
  export * from "./DeleteLexiconCommand";
3
+ export * from "./DeleteVoiceCommand";
2
4
  export * from "./DescribeVoicesCommand";
3
5
  export * from "./GetLexiconCommand";
4
6
  export * from "./GetSpeechSynthesisTaskCommand";
7
+ export * from "./GetVoiceCommand";
5
8
  export * from "./ListLexiconsCommand";
6
9
  export * from "./ListSpeechSynthesisTasksCommand";
7
10
  export * from "./ListTagsForResourceCommand";
@@ -17,6 +17,7 @@ export type { PollyExtensionConfiguration } from "./extensionConfiguration";
17
17
  export * from "./commands";
18
18
  export { Command as $Command } from "@smithy/core/client";
19
19
  export * from "./pagination";
20
+ export * from "./waiters";
20
21
  export * from "./schemas/schemas_0";
21
22
  export * from "./models/enums";
22
23
  export * from "./models/errors";