@aws-sdk/client-polly 3.428.0 → 3.429.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.
@@ -115,7 +115,7 @@ export interface DescribeVoicesInput {
115
115
  * <p>Specifies the engine (<code>standard</code> or <code>neural</code>)
116
116
  * used by Amazon Polly when processing input text for speech synthesis. </p>
117
117
  */
118
- Engine?: Engine | string;
118
+ Engine?: Engine;
119
119
  /**
120
120
  * @public
121
121
  * <p> The language identification tag (ISO 639 code for the language
@@ -123,7 +123,7 @@ export interface DescribeVoicesInput {
123
123
  * you don't specify this optional parameter, all available voices are
124
124
  * returned. </p>
125
125
  */
126
- LanguageCode?: LanguageCode | string;
126
+ LanguageCode?: LanguageCode;
127
127
  /**
128
128
  * @public
129
129
  * <p>Boolean value indicating whether to return any bilingual voices that
@@ -266,18 +266,18 @@ export interface Voice {
266
266
  * @public
267
267
  * <p>Gender of the voice.</p>
268
268
  */
269
- Gender?: Gender | string;
269
+ Gender?: Gender;
270
270
  /**
271
271
  * @public
272
272
  * <p>Amazon Polly assigned voice ID. This is the ID that you specify when
273
273
  * calling the <code>SynthesizeSpeech</code> operation.</p>
274
274
  */
275
- Id?: VoiceId | string;
275
+ Id?: VoiceId;
276
276
  /**
277
277
  * @public
278
278
  * <p>Language code of the voice.</p>
279
279
  */
280
- LanguageCode?: LanguageCode | string;
280
+ LanguageCode?: LanguageCode;
281
281
  /**
282
282
  * @public
283
283
  * <p>Human readable name of the language in English.</p>
@@ -299,13 +299,13 @@ export interface Voice {
299
299
  * fluent in both Indian English and Hindi, this parameter would show the
300
300
  * code <code>hi-IN</code>.</p>
301
301
  */
302
- AdditionalLanguageCodes?: (LanguageCode | string)[];
302
+ AdditionalLanguageCodes?: LanguageCode[];
303
303
  /**
304
304
  * @public
305
305
  * <p>Specifies which engines (<code>standard</code> or <code>neural</code>)
306
306
  * that are supported by a given voice.</p>
307
307
  */
308
- SupportedEngines?: (Engine | string)[];
308
+ SupportedEngines?: Engine[];
309
309
  }
310
310
  /**
311
311
  * @public
@@ -398,7 +398,7 @@ export interface LexiconAttributes {
398
398
  * language code such as "en" would be applied to all English languages
399
399
  * (en-GB, en-US, en-AUS, en-WLS, and so on.</p>
400
400
  */
401
- LanguageCode?: LanguageCode | string;
401
+ LanguageCode?: LanguageCode;
402
402
  /**
403
403
  * @public
404
404
  * <p>Date lexicon was last modified (a timestamp value).</p>
@@ -515,7 +515,7 @@ export interface SynthesisTask {
515
515
  * voice that is not supported for the engine selected will result in an
516
516
  * error.</p>
517
517
  */
518
- Engine?: Engine | string;
518
+ Engine?: Engine;
519
519
  /**
520
520
  * @public
521
521
  * <p>The Amazon Polly generated identifier for a speech synthesis task.</p>
@@ -525,7 +525,7 @@ export interface SynthesisTask {
525
525
  * @public
526
526
  * <p>Current status of the individual speech synthesis task.</p>
527
527
  */
528
- TaskStatus?: TaskStatus | string;
528
+ TaskStatus?: TaskStatus;
529
529
  /**
530
530
  * @public
531
531
  * <p>Reason for the current status of a specific speech synthesis task,
@@ -566,7 +566,7 @@ export interface SynthesisTask {
566
566
  * stream, this will be mp3, ogg_vorbis, or pcm. For speech marks, this will
567
567
  * be json. </p>
568
568
  */
569
- OutputFormat?: OutputFormat | string;
569
+ OutputFormat?: OutputFormat;
570
570
  /**
571
571
  * @public
572
572
  * <p>The audio frequency specified in Hz.</p>
@@ -581,18 +581,18 @@ export interface SynthesisTask {
581
581
  * @public
582
582
  * <p>The type of speech marks returned for the input text.</p>
583
583
  */
584
- SpeechMarkTypes?: (SpeechMarkType | string)[];
584
+ SpeechMarkTypes?: SpeechMarkType[];
585
585
  /**
586
586
  * @public
587
587
  * <p>Specifies whether the input text is plain text or SSML. The default
588
588
  * value is plain text. </p>
589
589
  */
590
- TextType?: TextType | string;
590
+ TextType?: TextType;
591
591
  /**
592
592
  * @public
593
593
  * <p>Voice ID to use for the synthesis. </p>
594
594
  */
595
- VoiceId?: VoiceId | string;
595
+ VoiceId?: VoiceId;
596
596
  /**
597
597
  * @public
598
598
  * <p>Optional language code for a synthesis task. This is only necessary if
@@ -604,7 +604,7 @@ export interface SynthesisTask {
604
604
  * parameter. For example, if no language code is specified, Aditi will use
605
605
  * Indian English rather than Hindi.</p>
606
606
  */
607
- LanguageCode?: LanguageCode | string;
607
+ LanguageCode?: LanguageCode;
608
608
  }
609
609
  /**
610
610
  * @public
@@ -813,7 +813,7 @@ export interface ListSpeechSynthesisTasksInput {
813
813
  * <p>Status of the speech synthesis tasks returned in a List
814
814
  * operation</p>
815
815
  */
816
- Status?: TaskStatus | string;
816
+ Status?: TaskStatus;
817
817
  }
818
818
  /**
819
819
  * @public
@@ -946,7 +946,7 @@ export interface StartSpeechSynthesisTaskInput {
946
946
  * voice that is not supported for the engine selected will result in an
947
947
  * error.</p>
948
948
  */
949
- Engine?: Engine | string;
949
+ Engine?: Engine;
950
950
  /**
951
951
  * @public
952
952
  * <p>Optional language code for the Speech Synthesis request. This is only
@@ -958,7 +958,7 @@ export interface StartSpeechSynthesisTaskInput {
958
958
  * parameter. For example, if no language code is specified, Aditi will use
959
959
  * Indian English rather than Hindi.</p>
960
960
  */
961
- LanguageCode?: LanguageCode | string;
961
+ LanguageCode?: LanguageCode;
962
962
  /**
963
963
  * @public
964
964
  * <p>List of one or more pronunciation lexicon names you want the service
@@ -972,7 +972,7 @@ export interface StartSpeechSynthesisTaskInput {
972
972
  * stream, this will be mp3, ogg_vorbis, or pcm. For speech marks, this will
973
973
  * be json. </p>
974
974
  */
975
- OutputFormat: OutputFormat | string | undefined;
975
+ OutputFormat: OutputFormat | undefined;
976
976
  /**
977
977
  * @public
978
978
  * <p>Amazon S3 bucket name to which the output file will be saved.</p>
@@ -1003,7 +1003,7 @@ export interface StartSpeechSynthesisTaskInput {
1003
1003
  * @public
1004
1004
  * <p>The type of speech marks returned for the input text.</p>
1005
1005
  */
1006
- SpeechMarkTypes?: (SpeechMarkType | string)[];
1006
+ SpeechMarkTypes?: SpeechMarkType[];
1007
1007
  /**
1008
1008
  * @public
1009
1009
  * <p>The input text to synthesize. If you specify ssml as the TextType,
@@ -1015,12 +1015,12 @@ export interface StartSpeechSynthesisTaskInput {
1015
1015
  * <p>Specifies whether the input text is plain text or SSML. The default
1016
1016
  * value is plain text. </p>
1017
1017
  */
1018
- TextType?: TextType | string;
1018
+ TextType?: TextType;
1019
1019
  /**
1020
1020
  * @public
1021
1021
  * <p>Voice ID to use for the synthesis. </p>
1022
1022
  */
1023
- VoiceId: VoiceId | string | undefined;
1023
+ VoiceId: VoiceId | undefined;
1024
1024
  }
1025
1025
  /**
1026
1026
  * @public
@@ -1080,7 +1080,7 @@ export interface SynthesizeSpeechInput {
1080
1080
  * set to <code>standard</code> and an NTTS-only voice is selected, this will
1081
1081
  * result in an error. </p>
1082
1082
  */
1083
- Engine?: Engine | string;
1083
+ Engine?: Engine;
1084
1084
  /**
1085
1085
  * @public
1086
1086
  * <p>Optional language code for the Synthesize Speech request. This is only
@@ -1092,7 +1092,7 @@ export interface SynthesizeSpeechInput {
1092
1092
  * parameter. For example, if no language code is specified, Aditi will use
1093
1093
  * Indian English rather than Hindi.</p>
1094
1094
  */
1095
- LanguageCode?: LanguageCode | string;
1095
+ LanguageCode?: LanguageCode;
1096
1096
  /**
1097
1097
  * @public
1098
1098
  * <p>List of one or more pronunciation lexicon names you want the
@@ -1109,7 +1109,7 @@ export interface SynthesizeSpeechInput {
1109
1109
  * <p>When pcm is used, the content returned is audio/pcm in a signed
1110
1110
  * 16-bit, 1 channel (mono), little-endian format. </p>
1111
1111
  */
1112
- OutputFormat: OutputFormat | string | undefined;
1112
+ OutputFormat: OutputFormat | undefined;
1113
1113
  /**
1114
1114
  * @public
1115
1115
  * <p>The audio frequency specified in Hz.</p>
@@ -1124,7 +1124,7 @@ export interface SynthesizeSpeechInput {
1124
1124
  * @public
1125
1125
  * <p>The type of speech marks returned for the input text.</p>
1126
1126
  */
1127
- SpeechMarkTypes?: (SpeechMarkType | string)[];
1127
+ SpeechMarkTypes?: SpeechMarkType[];
1128
1128
  /**
1129
1129
  * @public
1130
1130
  * <p> Input text to synthesize. If you specify <code>ssml</code> as the
@@ -1138,13 +1138,13 @@ export interface SynthesizeSpeechInput {
1138
1138
  * default value is plain text. For more information, see <a href="https://docs.aws.amazon.com/polly/latest/dg/ssml.html">Using
1139
1139
  * SSML</a>.</p>
1140
1140
  */
1141
- TextType?: TextType | string;
1141
+ TextType?: TextType;
1142
1142
  /**
1143
1143
  * @public
1144
1144
  * <p> Voice ID to use for the synthesis. You can get a list of available
1145
1145
  * voice IDs by calling the <a href="https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html">DescribeVoices</a> operation. </p>
1146
1146
  */
1147
- VoiceId: VoiceId | string | undefined;
1147
+ VoiceId: VoiceId | undefined;
1148
1148
  }
1149
1149
  /**
1150
1150
  * @public
@@ -67,8 +67,8 @@ export declare const LanguageCode: {
67
67
  };
68
68
  export type LanguageCode = (typeof LanguageCode)[keyof typeof LanguageCode];
69
69
  export interface DescribeVoicesInput {
70
- Engine?: Engine | string;
71
- LanguageCode?: LanguageCode | string;
70
+ Engine?: Engine;
71
+ LanguageCode?: LanguageCode;
72
72
  IncludeAdditionalLanguageCodes?: boolean;
73
73
  NextToken?: string;
74
74
  }
@@ -174,13 +174,13 @@ export declare const VoiceId: {
174
174
  };
175
175
  export type VoiceId = (typeof VoiceId)[keyof typeof VoiceId];
176
176
  export interface Voice {
177
- Gender?: Gender | string;
178
- Id?: VoiceId | string;
179
- LanguageCode?: LanguageCode | string;
177
+ Gender?: Gender;
178
+ Id?: VoiceId;
179
+ LanguageCode?: LanguageCode;
180
180
  LanguageName?: string;
181
181
  Name?: string;
182
- AdditionalLanguageCodes?: (LanguageCode | string)[];
183
- SupportedEngines?: (Engine | string)[];
182
+ AdditionalLanguageCodes?: LanguageCode[];
183
+ SupportedEngines?: Engine[];
184
184
  }
185
185
  export interface DescribeVoicesOutput {
186
186
  Voices?: Voice[];
@@ -209,7 +209,7 @@ export interface Lexicon {
209
209
  }
210
210
  export interface LexiconAttributes {
211
211
  Alphabet?: string;
212
- LanguageCode?: LanguageCode | string;
212
+ LanguageCode?: LanguageCode;
213
213
  LastModified?: Date;
214
214
  LexiconArn?: string;
215
215
  LexemesCount?: number;
@@ -250,21 +250,21 @@ export declare const TextType: {
250
250
  };
251
251
  export type TextType = (typeof TextType)[keyof typeof TextType];
252
252
  export interface SynthesisTask {
253
- Engine?: Engine | string;
253
+ Engine?: Engine;
254
254
  TaskId?: string;
255
- TaskStatus?: TaskStatus | string;
255
+ TaskStatus?: TaskStatus;
256
256
  TaskStatusReason?: string;
257
257
  OutputUri?: string;
258
258
  CreationTime?: Date;
259
259
  RequestCharacters?: number;
260
260
  SnsTopicArn?: string;
261
261
  LexiconNames?: string[];
262
- OutputFormat?: OutputFormat | string;
262
+ OutputFormat?: OutputFormat;
263
263
  SampleRate?: string;
264
- SpeechMarkTypes?: (SpeechMarkType | string)[];
265
- TextType?: TextType | string;
266
- VoiceId?: VoiceId | string;
267
- LanguageCode?: LanguageCode | string;
264
+ SpeechMarkTypes?: SpeechMarkType[];
265
+ TextType?: TextType;
266
+ VoiceId?: VoiceId;
267
+ LanguageCode?: LanguageCode;
268
268
  }
269
269
  export interface GetSpeechSynthesisTaskOutput {
270
270
  SynthesisTask?: SynthesisTask;
@@ -353,7 +353,7 @@ export interface ListLexiconsOutput {
353
353
  export interface ListSpeechSynthesisTasksInput {
354
354
  MaxResults?: number;
355
355
  NextToken?: string;
356
- Status?: TaskStatus | string;
356
+ Status?: TaskStatus;
357
357
  }
358
358
  export interface ListSpeechSynthesisTasksOutput {
359
359
  NextToken?: string;
@@ -425,18 +425,18 @@ export declare class SsmlMarksNotSupportedForTextTypeException extends __BaseExc
425
425
  );
426
426
  }
427
427
  export interface StartSpeechSynthesisTaskInput {
428
- Engine?: Engine | string;
429
- LanguageCode?: LanguageCode | string;
428
+ Engine?: Engine;
429
+ LanguageCode?: LanguageCode;
430
430
  LexiconNames?: string[];
431
- OutputFormat: OutputFormat | string | undefined;
431
+ OutputFormat: OutputFormat | undefined;
432
432
  OutputS3BucketName: string | undefined;
433
433
  OutputS3KeyPrefix?: string;
434
434
  SampleRate?: string;
435
435
  SnsTopicArn?: string;
436
- SpeechMarkTypes?: (SpeechMarkType | string)[];
436
+ SpeechMarkTypes?: SpeechMarkType[];
437
437
  Text: string | undefined;
438
- TextType?: TextType | string;
439
- VoiceId: VoiceId | string | undefined;
438
+ TextType?: TextType;
439
+ VoiceId: VoiceId | undefined;
440
440
  }
441
441
  export interface StartSpeechSynthesisTaskOutput {
442
442
  SynthesisTask?: SynthesisTask;
@@ -449,15 +449,15 @@ export declare class TextLengthExceededException extends __BaseException {
449
449
  );
450
450
  }
451
451
  export interface SynthesizeSpeechInput {
452
- Engine?: Engine | string;
453
- LanguageCode?: LanguageCode | string;
452
+ Engine?: Engine;
453
+ LanguageCode?: LanguageCode;
454
454
  LexiconNames?: string[];
455
- OutputFormat: OutputFormat | string | undefined;
455
+ OutputFormat: OutputFormat | undefined;
456
456
  SampleRate?: string;
457
- SpeechMarkTypes?: (SpeechMarkType | string)[];
457
+ SpeechMarkTypes?: SpeechMarkType[];
458
458
  Text: string | undefined;
459
- TextType?: TextType | string;
460
- VoiceId: VoiceId | string | undefined;
459
+ TextType?: TextType;
460
+ VoiceId: VoiceId | undefined;
461
461
  }
462
462
  export interface SynthesizeSpeechOutput {
463
463
  AudioStream?: StreamingBlobTypes;
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.428.0",
4
+ "version": "3.429.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.428.0",
25
- "@aws-sdk/credential-provider-node": "3.428.0",
26
- "@aws-sdk/middleware-host-header": "3.428.0",
24
+ "@aws-sdk/client-sts": "3.429.0",
25
+ "@aws-sdk/credential-provider-node": "3.429.0",
26
+ "@aws-sdk/middleware-host-header": "3.429.0",
27
27
  "@aws-sdk/middleware-logger": "3.428.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.428.0",
29
29
  "@aws-sdk/middleware-signing": "3.428.0",
@@ -38,7 +38,7 @@
38
38
  "@smithy/hash-node": "^2.0.11",
39
39
  "@smithy/invalid-dependency": "^2.0.11",
40
40
  "@smithy/middleware-content-length": "^2.0.13",
41
- "@smithy/middleware-endpoint": "^2.1.0",
41
+ "@smithy/middleware-endpoint": "^2.1.1",
42
42
  "@smithy/middleware-retry": "^2.0.16",
43
43
  "@smithy/middleware-serde": "^2.0.11",
44
44
  "@smithy/middleware-stack": "^2.0.5",