@aws-sdk/client-polly 3.1172.0 → 3.1174.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
@@ -1,5 +1,5 @@
1
1
  import type { StreamingBlobTypes } from "@smithy/types";
2
- import type { Engine, Gender, LanguageCode, OutputFormat, SpeechMarkType, TaskStatus, TextType, VoiceId } from "./enums";
2
+ import type { AudioFormat, CustomVoiceLanguageCode, Engine, Gender, LanguageCode, OutputFormat, SpeechMarkType, TaskStatus, TextType, VoiceId, VoiceOrigin, VoiceStatus } from "./enums";
3
3
  import type { ServiceFailureException, ServiceQuotaExceededException, ThrottlingException, ValidationException } from "./errors";
4
4
  /**
5
5
  * <p>Contains a chunk of synthesized audio data.</p>
@@ -21,71 +21,190 @@ export interface AudioEvent {
21
21
  export interface CloseStreamEvent {
22
22
  }
23
23
  /**
24
+ * <p>The customer managed key that encrypts your custom voice. If you
25
+ * don't specify a key, Amazon Polly encrypts the voice with an Amazon Web Services owned
26
+ * key.</p>
24
27
  * @public
25
28
  */
26
- export interface DeleteLexiconInput {
29
+ export interface CustomerManagedEncryption {
27
30
  /**
28
- * <p>The name of the lexicon to delete. Must be an existing lexicon in
29
- * the region.</p>
31
+ * <p>The Amazon Resource Name (ARN) of the key. The key must be a
32
+ * symmetric encryption key in the same Amazon Web Services Region as the voice. To create
33
+ * the voice, you need <code>kms:DescribeKey</code>,
34
+ * <code>kms:GenerateDataKey</code>, and <code>kms:Decrypt</code> permissions
35
+ * on the key. To synthesize speech with the voice, you need
36
+ * <code>kms:Decrypt</code> permission on the key.</p>
30
37
  * @public
31
38
  */
32
- Name: string | undefined;
39
+ KmsKeyArn: string | undefined;
40
+ /**
41
+ * <p>The key-value pairs that Amazon Polly includes as the encryption context
42
+ * when it encrypts or decrypts the voice with the key. You can use these
43
+ * pairs in key policy conditions. Don't use keys that start with
44
+ * <code>aws:</code>, which are reserved.</p>
45
+ * @public
46
+ */
47
+ EncryptionContext?: Record<string, string> | undefined;
33
48
  }
34
49
  /**
50
+ * <p>The audio source of a recording. In a <code>CreateVoice</code>
51
+ * request, specify exactly one of <code>S3Url</code> and <code>Bytes</code>.
52
+ * In a response, a recording that Amazon Polly read from Amazon S3 includes its
53
+ * <code>S3Url</code>. A recording that you passed as <code>Bytes</code>
54
+ * includes neither field, because Amazon Polly doesn't return the
55
+ * audio.</p>
35
56
  * @public
36
57
  */
37
- export interface DeleteLexiconOutput {
58
+ export interface RecordingData {
59
+ /**
60
+ * <p>The Amazon S3 URL of the audio object, in the form
61
+ * <code>s3://bucket/key</code>. You need <code>s3:GetObject</code>
62
+ * permission on the object.</p>
63
+ * @public
64
+ */
65
+ S3Url?: string | undefined;
66
+ /**
67
+ * <p>The audio data, passed directly in the request. The data must be
68
+ * in the format that <code>Format</code> specifies and can be up to 5 MB.
69
+ * Amazon Polly doesn't store the audio after it creates the voice, and doesn't
70
+ * return this field in responses.</p>
71
+ * @public
72
+ */
73
+ Bytes?: Uint8Array | undefined;
38
74
  }
39
75
  /**
76
+ * <p>A recording of the speaker whose voice you want to create. The
77
+ * recording specifies its audio format and its audio source.</p>
40
78
  * @public
41
79
  */
42
- export interface DescribeVoicesInput {
80
+ export interface Recording {
43
81
  /**
44
- * <p>Specifies the engine (<code>standard</code>, <code>neural</code>,
45
- * <code>long-form</code> or <code>generative</code>) used by Amazon Polly when
46
- * processing input text for speech synthesis. </p>
82
+ * <p>The audio format of the recording: <code>wav</code>,
83
+ * <code>flac</code>, <code>ogg_vorbis</code>, or <code>mp3</code>. The
84
+ * format must match the audio data.</p>
47
85
  * @public
48
86
  */
49
- Engine?: Engine | undefined;
87
+ Format: AudioFormat | undefined;
50
88
  /**
51
- * <p> The language identification tag (ISO 639 code for the language
52
- * name-ISO 3166 country code) for filtering the list of voices returned. If
53
- * you don't specify this optional parameter, all available voices are
54
- * returned. </p>
89
+ * <p>The audio source of the recording. Specify either an Amazon S3
90
+ * object or the audio data.</p>
55
91
  * @public
56
92
  */
57
- LanguageCode?: LanguageCode | undefined;
93
+ Data: RecordingData | undefined;
94
+ }
95
+ /**
96
+ * <p>The audio that you provide to create a custom voice.</p>
97
+ * @public
98
+ */
99
+ export interface VoiceCreationData {
58
100
  /**
59
- * <p>Boolean value indicating whether to return any bilingual voices that
60
- * use the specified language as an additional language. For instance, if you
61
- * request all languages that use US English (es-US), and there is an Italian
62
- * voice that speaks both Italian (it-IT) and US English, that voice will be
63
- * included if you specify <code>yes</code> but not if you specify
64
- * <code>no</code>.</p>
101
+ * <p>The recordings of the speaker. Each recording specifies its audio
102
+ * format and its audio source.</p>
65
103
  * @public
66
104
  */
67
- IncludeAdditionalLanguageCodes?: boolean | undefined;
105
+ Recordings: Recording[] | undefined;
106
+ }
107
+ /**
108
+ * @public
109
+ */
110
+ export interface CreateVoiceInput {
68
111
  /**
69
- * <p>An opaque pagination token returned from the previous
70
- * <code>DescribeVoices</code> operation. If present, this indicates where
71
- * to continue the listing.</p>
112
+ * <p>The name of the voice. Use the name to identify the voice in your
113
+ * application. The name can contain letters, digits, hyphens, and
114
+ * underscores, and can be up to 64 characters long. The name doesn't have to
115
+ * be unique. The name isn't the voice ID, which Amazon Polly assigns.</p>
72
116
  * @public
73
117
  */
74
- NextToken?: string | undefined;
118
+ Name: string | undefined;
119
+ /**
120
+ * <p>The language of the recordings, for example, <code>en-US</code>.
121
+ * Amazon Polly doesn't detect the language from the recordings.</p>
122
+ * @public
123
+ */
124
+ LanguageCode: CustomVoiceLanguageCode | undefined;
125
+ /**
126
+ * <p>Confirms the following two statements:</p>
127
+ * <ul>
128
+ * <li>
129
+ * <p>"I confirm that I have obtained all necessary consents required
130
+ * under any applicable laws and regulations, including biometric privacy
131
+ * laws, from the owner of this voice to clone these voice
132
+ * samples."</p>
133
+ * </li>
134
+ * <li>
135
+ * <p>"I confirm that I will not use the generated content for any
136
+ * illegal, fraudulent, or harmful purpose and reaffirm my obligation to
137
+ * abide by the AWS Service Terms, Biometric Notice and Consent Terms,
138
+ * AWS Responsible AI Policy, and AWS Acceptable Use Policy."</p>
139
+ * </li>
140
+ * </ul>
141
+ * <p>You can read the <a href="https://aws.amazon.com/service-terms/">AWS Service Terms</a>, the <a href="https://aws.amazon.com/legal/biometric-notice-and-consent-terms/">Biometric Notice and Consent Terms</a>, the <a href="https://aws.amazon.com/ai/responsible-ai/policy/">AWS Responsible
142
+ * AI Policy</a>, and the <a href="https://aws.amazon.com/aup/">AWS
143
+ * Acceptable Use Policy</a> on the Amazon Web Services website.</p>
144
+ * <p>You must set this parameter to <code>true</code> to create a voice.
145
+ * Otherwise, the request fails with <code>ValidationException</code>.</p>
146
+ * @public
147
+ */
148
+ TermsAccepted: boolean | undefined;
149
+ /**
150
+ * <p>The recordings that Amazon Polly uses to create the voice.</p>
151
+ * @public
152
+ */
153
+ VoiceCreationData: VoiceCreationData | undefined;
154
+ /**
155
+ * <p>The customer managed key that you want Amazon Polly to encrypt the voice
156
+ * with. If you omit this parameter, Amazon Polly encrypts the voice with an Amazon Web Services
157
+ * owned key.</p>
158
+ * @public
159
+ */
160
+ CustomerManagedEncryption?: CustomerManagedEncryption | undefined;
161
+ /**
162
+ * <p>The tags that you apply to the voice to help you categorize and
163
+ * organize it. Each tag consists of a key and an optional value, both of
164
+ * which you define.</p>
165
+ * @public
166
+ */
167
+ Tags?: Record<string, string> | undefined;
168
+ /**
169
+ * <p>A unique, case-sensitive identifier that you provide to ensure the
170
+ * idempotency of the request. If you don't specify a client token, the
171
+ * Amazon Web Services SDKs generate one for you. If you retry a request that succeeded
172
+ * with the same client token and the same parameters, Amazon Polly returns the
173
+ * voice that the first request created and doesn't create a second
174
+ * voice.</p>
175
+ * @public
176
+ */
177
+ ClientToken?: string | undefined;
75
178
  }
76
179
  /**
77
- * <p>Description of the voice.</p>
180
+ * <p>Describes a voice. Amazon Polly provides voices, and you can create custom
181
+ * voices with <code>CreateVoice</code>. <code>Origin</code> indicates
182
+ * whether Amazon Polly provides the voice or you created it.
183
+ * <code>DescribeVoices</code> returns a subset of the fields for each
184
+ * voice. <code>GetVoice</code> returns all fields of a custom
185
+ * voice.</p>
78
186
  * @public
79
187
  */
80
188
  export interface Voice {
81
189
  /**
82
- * <p>Gender of the voice.</p>
190
+ * <p>The Amazon Resource Name (ARN) of a custom voice, in the form
191
+ * <code>arn:partition:polly:region:account-id:voice/voice-id</code>.
192
+ * <code>CreateVoice</code> and <code>GetVoice</code> return this field.
193
+ * Voices that Amazon Polly provides don't have an ARN.</p>
194
+ * @public
195
+ */
196
+ Arn?: string | undefined;
197
+ /**
198
+ * <p>The gender of the voice. Custom voices don't include this
199
+ * field.</p>
83
200
  * @public
84
201
  */
85
202
  Gender?: Gender | undefined;
86
203
  /**
87
- * <p>Amazon Polly assigned voice ID. This is the ID that you specify when
88
- * calling the <code>SynthesizeSpeech</code> operation.</p>
204
+ * <p>The voice ID that Amazon Polly assigns. You specify this ID when you
205
+ * call the <code>SynthesizeSpeech</code> operation. For a custom voice,
206
+ * Amazon Polly assigns an ID that consists of <code>vc-</code> followed by
207
+ * hexadecimal characters, for example, <code>vc-9a8fa85dd3</code>.</p>
89
208
  * @public
90
209
  */
91
210
  Id?: VoiceId | undefined;
@@ -100,12 +219,58 @@ export interface Voice {
100
219
  */
101
220
  LanguageName?: string | undefined;
102
221
  /**
103
- * <p>Name of the voice (for example, Salli, Kendra, etc.). This provides
104
- * a human readable voice name that you might display in your
105
- * application.</p>
222
+ * <p>The name of the voice, for example, Salli or Kendra. The name is
223
+ * human-readable, and you might display it in your application. For a custom
224
+ * voice, this is the <code>Name</code> that you specified in
225
+ * <code>CreateVoice</code>.</p>
106
226
  * @public
107
227
  */
108
228
  Name?: string | undefined;
229
+ /**
230
+ * <p>Indicates who provides the voice. The origin is one of the
231
+ * following:</p>
232
+ * <dl>
233
+ * <dt>aws</dt>
234
+ * <dd>
235
+ * <p>A voice that Amazon Polly provides.</p>
236
+ * </dd>
237
+ * <dt>customer</dt>
238
+ * <dd>
239
+ * <p>A custom voice that you created with
240
+ * <code>CreateVoice</code>.</p>
241
+ * </dd>
242
+ * </dl>
243
+ * @public
244
+ */
245
+ Origin?: VoiceOrigin | undefined;
246
+ /**
247
+ * <p>The status of a custom voice. Voices that Amazon Polly provides don't
248
+ * include this field. The status is one of the following:</p>
249
+ * <dl>
250
+ * <dt>pending</dt>
251
+ * <dd>
252
+ * <p>Amazon Polly is creating the voice.</p>
253
+ * </dd>
254
+ * <dt>active</dt>
255
+ * <dd>
256
+ * <p>The voice is ready for speech synthesis.</p>
257
+ * </dd>
258
+ * <dt>failed</dt>
259
+ * <dd>
260
+ * <p>Amazon Polly couldn't create the voice. <code>StatusReason</code>
261
+ * describes why.</p>
262
+ * </dd>
263
+ * </dl>
264
+ * @public
265
+ */
266
+ Status?: VoiceStatus | undefined;
267
+ /**
268
+ * <p>Additional information about the status of a custom voice. When the
269
+ * status is <code>failed</code>, this field describes why Amazon Polly couldn't
270
+ * create the voice.</p>
271
+ * @public
272
+ */
273
+ StatusReason?: string | undefined;
109
274
  /**
110
275
  * <p>Additional codes for languages available for the specified voice in
111
276
  * addition to its default language. </p>
@@ -122,6 +287,140 @@ export interface Voice {
122
287
  * @public
123
288
  */
124
289
  SupportedEngines?: Engine[] | undefined;
290
+ /**
291
+ * <p>The data from which you created the custom voice.
292
+ * <code>CreateVoice</code> and <code>GetVoice</code> return this field. The
293
+ * response doesn't include the audio: a recording that Amazon Polly read from
294
+ * Amazon S3 includes its <code>S3Url</code>, and a recording that you passed
295
+ * as <code>Bytes</code> has no fields in <code>Data</code>.</p>
296
+ * @public
297
+ */
298
+ VoiceCreationData?: VoiceCreationData | undefined;
299
+ /**
300
+ * <p>The customer managed key that encrypts your custom voice.
301
+ * <code>CreateVoice</code> and <code>GetVoice</code> return this field if
302
+ * you specified a key in <code>CreateVoice</code>.</p>
303
+ * @public
304
+ */
305
+ CustomerManagedEncryption?: CustomerManagedEncryption | undefined;
306
+ /**
307
+ * <p>The date and time when you created the custom voice. Voices that
308
+ * Amazon Polly provides don't include this field.</p>
309
+ * @public
310
+ */
311
+ CreationTime?: Date | undefined;
312
+ }
313
+ /**
314
+ * @public
315
+ */
316
+ export interface CreateVoiceOutput {
317
+ /**
318
+ * <p>The new voice, in <code>pending</code> status.</p>
319
+ * @public
320
+ */
321
+ Voice?: Voice | undefined;
322
+ }
323
+ /**
324
+ * <p>Provides information about a specific throttling reason.</p>
325
+ * @public
326
+ */
327
+ export interface ThrottlingReason {
328
+ /**
329
+ * <p>The reason code explaining why the request was throttled.</p>
330
+ * @public
331
+ */
332
+ reason?: string | undefined;
333
+ /**
334
+ * <p>The resource that caused the throttling.</p>
335
+ * @public
336
+ */
337
+ resource?: string | undefined;
338
+ }
339
+ /**
340
+ * <p>Information about a field that failed validation.</p>
341
+ * @public
342
+ */
343
+ export interface ValidationExceptionField {
344
+ /**
345
+ * <p>The name of the field that failed validation.</p>
346
+ * @public
347
+ */
348
+ name: string | undefined;
349
+ /**
350
+ * <p>A message describing why the field failed validation.</p>
351
+ * @public
352
+ */
353
+ message: string | undefined;
354
+ }
355
+ /**
356
+ * @public
357
+ */
358
+ export interface DeleteLexiconInput {
359
+ /**
360
+ * <p>The name of the lexicon to delete. Must be an existing lexicon in
361
+ * the region.</p>
362
+ * @public
363
+ */
364
+ Name: string | undefined;
365
+ }
366
+ /**
367
+ * @public
368
+ */
369
+ export interface DeleteLexiconOutput {
370
+ }
371
+ /**
372
+ * @public
373
+ */
374
+ export interface DeleteVoiceInput {
375
+ /**
376
+ * <p>The ID of the custom voice to delete, for example,
377
+ * <code>vc-9a8fa85dd3</code>. You can't specify the ARN of the
378
+ * voice.</p>
379
+ * @public
380
+ */
381
+ VoiceId: string | undefined;
382
+ }
383
+ /**
384
+ * @public
385
+ */
386
+ export interface DeleteVoiceOutput {
387
+ }
388
+ /**
389
+ * @public
390
+ */
391
+ export interface DescribeVoicesInput {
392
+ /**
393
+ * <p>Specifies the engine (<code>standard</code>, <code>neural</code>,
394
+ * <code>long-form</code> or <code>generative</code>) used by Amazon Polly when
395
+ * processing input text for speech synthesis. </p>
396
+ * @public
397
+ */
398
+ Engine?: Engine | undefined;
399
+ /**
400
+ * <p> The language identification tag (ISO 639 code for the language
401
+ * name-ISO 3166 country code) for filtering the list of voices returned. If
402
+ * you don't specify this optional parameter, all available voices are
403
+ * returned. </p>
404
+ * @public
405
+ */
406
+ LanguageCode?: LanguageCode | undefined;
407
+ /**
408
+ * <p>Boolean value indicating whether to return any bilingual voices that
409
+ * use the specified language as an additional language. For instance, if you
410
+ * request all languages that use US English (es-US), and there is an Italian
411
+ * voice that speaks both Italian (it-IT) and US English, that voice will be
412
+ * included if you specify <code>yes</code> but not if you specify
413
+ * <code>no</code>.</p>
414
+ * @public
415
+ */
416
+ IncludeAdditionalLanguageCodes?: boolean | undefined;
417
+ /**
418
+ * <p>An opaque pagination token returned from the previous
419
+ * <code>DescribeVoices</code> operation. If present, this indicates where
420
+ * to continue the listing.</p>
421
+ * @public
422
+ */
423
+ NextToken?: string | undefined;
125
424
  }
126
425
  /**
127
426
  * @public
@@ -370,6 +669,28 @@ export interface GetSpeechSynthesisTaskOutput {
370
669
  */
371
670
  SynthesisTask?: SynthesisTask | undefined;
372
671
  }
672
+ /**
673
+ * @public
674
+ */
675
+ export interface GetVoiceInput {
676
+ /**
677
+ * <p>The ID of the custom voice that <code>CreateVoice</code> returned,
678
+ * for example, <code>vc-9a8fa85dd3</code>. You can't specify the ARN of the
679
+ * voice.</p>
680
+ * @public
681
+ */
682
+ VoiceId: string | undefined;
683
+ }
684
+ /**
685
+ * @public
686
+ */
687
+ export interface GetVoiceOutput {
688
+ /**
689
+ * <p>The custom voice.</p>
690
+ * @public
691
+ */
692
+ Voice?: Voice | undefined;
693
+ }
373
694
  /**
374
695
  * <p>Describes the content of the lexicon.</p>
375
696
  * @public
@@ -462,9 +783,8 @@ export interface ListSpeechSynthesisTasksOutput {
462
783
  */
463
784
  export interface ListTagsForResourceInput {
464
785
  /**
465
- * <p>The Amazon Resource Name (ARN) that identifies the resource for which
466
- * to list the tags. Currently, the only supported resource is an Amazon Polly
467
- * lexicon.</p>
786
+ * <p>The Amazon Resource Name (ARN) of the resource to list the tags for.
787
+ * You can tag Amazon Polly lexicons and custom voices.</p>
468
788
  * @public
469
789
  */
470
790
  ResourceArn: string | undefined;
@@ -479,38 +799,6 @@ export interface ListTagsForResourceOutput {
479
799
  */
480
800
  Tags?: Record<string, string> | undefined;
481
801
  }
482
- /**
483
- * <p>Provides information about a specific throttling reason.</p>
484
- * @public
485
- */
486
- export interface ThrottlingReason {
487
- /**
488
- * <p>The reason code explaining why the request was throttled.</p>
489
- * @public
490
- */
491
- reason?: string | undefined;
492
- /**
493
- * <p>The resource that caused the throttling.</p>
494
- * @public
495
- */
496
- resource?: string | undefined;
497
- }
498
- /**
499
- * <p>Information about a field that failed validation.</p>
500
- * @public
501
- */
502
- export interface ValidationExceptionField {
503
- /**
504
- * <p>The name of the field that failed validation.</p>
505
- * @public
506
- */
507
- name: string | undefined;
508
- /**
509
- * <p>A message describing why the field failed validation.</p>
510
- * @public
511
- */
512
- message: string | undefined;
513
- }
514
802
  /**
515
803
  * @public
516
804
  */
@@ -645,7 +933,7 @@ export interface StartSpeechSynthesisStreamInput {
645
933
  */
646
934
  SampleRate?: string | undefined;
647
935
  /**
648
- * <p>The voice to use in synthesis. To get a list of available voice IDs, use the <a href="https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html">DescribeVoices</a> operation.</p>
936
+ * <p>The voice ID to use for the synthesis. To get a list of available voice IDs, use the <a href="https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html">DescribeVoices</a> operation. To use a custom voice, specify the voice ID that <code>CreateVoice</code> returned, for example, <code>vc-9a8fa85dd3</code>. You can't specify the ARN of a voice.</p>
649
937
  * @public
650
938
  */
651
939
  VoiceId: VoiceId | undefined;
@@ -874,7 +1162,9 @@ export interface StartSpeechSynthesisTaskInput {
874
1162
  */
875
1163
  TextType?: TextType | undefined;
876
1164
  /**
877
- * <p>Voice ID to use for the synthesis. </p>
1165
+ * <p>The voice ID to use for the synthesis. To use a custom voice, specify the
1166
+ * voice ID that <code>CreateVoice</code> returned, for example,
1167
+ * <code>vc-9a8fa85dd3</code>. You can't specify the ARN of a voice.</p>
878
1168
  * @public
879
1169
  */
880
1170
  VoiceId: VoiceId | undefined;
@@ -966,8 +1256,10 @@ export interface SynthesizeSpeechInput {
966
1256
  */
967
1257
  TextType?: TextType | undefined;
968
1258
  /**
969
- * <p> Voice ID to use for the synthesis. You can get a list of available
970
- * voice IDs by calling the <a href="https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html">DescribeVoices</a> operation. </p>
1259
+ * <p>The voice ID to use for the synthesis. You can get a list of available
1260
+ * voice IDs by calling the <a href="https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html">DescribeVoices</a> operation. To use a custom voice, specify the
1261
+ * voice ID that <code>CreateVoice</code> returned, for example,
1262
+ * <code>vc-9a8fa85dd3</code>. You can't specify the ARN of a voice.</p>
971
1263
  * @public
972
1264
  */
973
1265
  VoiceId: VoiceId | undefined;
@@ -1039,8 +1331,8 @@ export interface SynthesizeSpeechOutput {
1039
1331
  */
1040
1332
  export interface TagResourceInput {
1041
1333
  /**
1042
- * <p>The Amazon Resource Name (ARN) of the resource to which to add tags.
1043
- * Currently, the only supported resource is an Amazon Polly lexicon.</p>
1334
+ * <p>The Amazon Resource Name (ARN) of the resource to add tags to. You
1335
+ * can tag Amazon Polly lexicons and custom voices.</p>
1044
1336
  * @public
1045
1337
  */
1046
1338
  ResourceArn: string | undefined;
@@ -1062,8 +1354,8 @@ export interface TagResourceOutput {
1062
1354
  */
1063
1355
  export interface UntagResourceInput {
1064
1356
  /**
1065
- * <p>The Amazon Resource Name (ARN) of the resource from which to remove
1066
- * tags. Currently, the only supported resource is an Amazon Polly lexicon.</p>
1357
+ * <p>The Amazon Resource Name (ARN) of the resource to remove tags from.
1358
+ * You can tag Amazon Polly lexicons and custom voices.</p>
1067
1359
  * @public
1068
1360
  */
1069
1361
  ResourceArn: string | undefined;
@@ -1,6 +1,8 @@
1
1
  import { TypeRegistry } from "@smithy/core/schema";
2
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema, StaticUnionSchema } from "@smithy/types";
3
3
  export declare var PollyServiceException$: StaticErrorSchema;
4
+ export declare var AccessDeniedException$: StaticErrorSchema;
5
+ export declare var ConflictException$: StaticErrorSchema;
4
6
  export declare var EngineNotSupportedException$: StaticErrorSchema;
5
7
  export declare var InvalidLexiconException$: StaticErrorSchema;
6
8
  export declare var InvalidNextTokenException$: StaticErrorSchema;
@@ -36,8 +38,13 @@ export declare var ValidationException$: StaticErrorSchema;
36
38
  export declare const errorTypeRegistries: TypeRegistry[];
37
39
  export declare var AudioEvent$: StaticStructureSchema;
38
40
  export declare var CloseStreamEvent$: StaticStructureSchema;
41
+ export declare var CreateVoiceInput$: StaticStructureSchema;
42
+ export declare var CreateVoiceOutput$: StaticStructureSchema;
43
+ export declare var CustomerManagedEncryption$: StaticStructureSchema;
39
44
  export declare var DeleteLexiconInput$: StaticStructureSchema;
40
45
  export declare var DeleteLexiconOutput$: StaticStructureSchema;
46
+ export declare var DeleteVoiceInput$: StaticStructureSchema;
47
+ export declare var DeleteVoiceOutput$: StaticStructureSchema;
41
48
  export declare var DescribeVoicesInput$: StaticStructureSchema;
42
49
  export declare var DescribeVoicesOutput$: StaticStructureSchema;
43
50
  export declare var FlushStreamConfiguration$: StaticStructureSchema;
@@ -45,6 +52,8 @@ export declare var GetLexiconInput$: StaticStructureSchema;
45
52
  export declare var GetLexiconOutput$: StaticStructureSchema;
46
53
  export declare var GetSpeechSynthesisTaskInput$: StaticStructureSchema;
47
54
  export declare var GetSpeechSynthesisTaskOutput$: StaticStructureSchema;
55
+ export declare var GetVoiceInput$: StaticStructureSchema;
56
+ export declare var GetVoiceOutput$: StaticStructureSchema;
48
57
  export declare var Lexicon$: StaticStructureSchema;
49
58
  export declare var LexiconAttributes$: StaticStructureSchema;
50
59
  export declare var LexiconDescription$: StaticStructureSchema;
@@ -56,6 +65,8 @@ export declare var ListTagsForResourceInput$: StaticStructureSchema;
56
65
  export declare var ListTagsForResourceOutput$: StaticStructureSchema;
57
66
  export declare var PutLexiconInput$: StaticStructureSchema;
58
67
  export declare var PutLexiconOutput$: StaticStructureSchema;
68
+ export declare var Recording$: StaticStructureSchema;
69
+ export declare var RecordingData$: StaticStructureSchema;
59
70
  export declare var StartSpeechSynthesisStreamInput$: StaticStructureSchema;
60
71
  export declare var StartSpeechSynthesisStreamOutput$: StaticStructureSchema;
61
72
  export declare var StartSpeechSynthesisTaskInput$: StaticStructureSchema;
@@ -72,12 +83,16 @@ export declare var UntagResourceInput$: StaticStructureSchema;
72
83
  export declare var UntagResourceOutput$: StaticStructureSchema;
73
84
  export declare var ValidationExceptionField$: StaticStructureSchema;
74
85
  export declare var Voice$: StaticStructureSchema;
86
+ export declare var VoiceCreationData$: StaticStructureSchema;
75
87
  export declare var StartSpeechSynthesisStreamActionStream$: StaticUnionSchema;
76
88
  export declare var StartSpeechSynthesisStreamEventStream$: StaticUnionSchema;
89
+ export declare var CreateVoice$: StaticOperationSchema;
77
90
  export declare var DeleteLexicon$: StaticOperationSchema;
91
+ export declare var DeleteVoice$: StaticOperationSchema;
78
92
  export declare var DescribeVoices$: StaticOperationSchema;
79
93
  export declare var GetLexicon$: StaticOperationSchema;
80
94
  export declare var GetSpeechSynthesisTask$: StaticOperationSchema;
95
+ export declare var GetVoice$: StaticOperationSchema;
81
96
  export declare var ListLexicons$: StaticOperationSchema;
82
97
  export declare var ListSpeechSynthesisTasks$: StaticOperationSchema;
83
98
  export declare var ListTagsForResource$: StaticOperationSchema;