@aws-sdk/client-polly 3.451.0 → 3.454.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.
@@ -30,6 +30,7 @@ class ServiceFailureException extends PollyServiceException_1.PollyServiceExcept
30
30
  }
31
31
  exports.ServiceFailureException = ServiceFailureException;
32
32
  exports.Engine = {
33
+ LONG_FORM: "long-form",
33
34
  NEURAL: "neural",
34
35
  STANDARD: "standard",
35
36
  };
@@ -25,6 +25,7 @@ export class ServiceFailureException extends __BaseException {
25
25
  }
26
26
  }
27
27
  export const Engine = {
28
+ LONG_FORM: "long-form",
28
29
  NEURAL: "neural",
29
30
  STANDARD: "standard",
30
31
  };
@@ -46,7 +46,7 @@ export interface DescribeVoicesCommandOutput extends DescribeVoicesOutput, __Met
46
46
  * // const { PollyClient, DescribeVoicesCommand } = require("@aws-sdk/client-polly"); // CommonJS import
47
47
  * const client = new PollyClient(config);
48
48
  * const input = { // DescribeVoicesInput
49
- * Engine: "standard" || "neural",
49
+ * Engine: "standard" || "neural" || "long-form",
50
50
  * 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",
51
51
  * IncludeAdditionalLanguageCodes: true || false,
52
52
  * NextToken: "STRING_VALUE",
@@ -65,7 +65,7 @@ export interface DescribeVoicesCommandOutput extends DescribeVoicesOutput, __Met
65
65
  * // "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",
66
66
  * // ],
67
67
  * // SupportedEngines: [ // EngineList
68
- * // "standard" || "neural",
68
+ * // "standard" || "neural" || "long-form",
69
69
  * // ],
70
70
  * // },
71
71
  * // ],
@@ -40,7 +40,7 @@ export interface GetSpeechSynthesisTaskCommandOutput extends GetSpeechSynthesisT
40
40
  * const response = await client.send(command);
41
41
  * // { // GetSpeechSynthesisTaskOutput
42
42
  * // SynthesisTask: { // SynthesisTask
43
- * // Engine: "standard" || "neural",
43
+ * // Engine: "standard" || "neural" || "long-form",
44
44
  * // TaskId: "STRING_VALUE",
45
45
  * // TaskStatus: "scheduled" || "inProgress" || "completed" || "failed",
46
46
  * // TaskStatusReason: "STRING_VALUE",
@@ -43,7 +43,7 @@ export interface ListSpeechSynthesisTasksCommandOutput extends ListSpeechSynthes
43
43
  * // NextToken: "STRING_VALUE",
44
44
  * // SynthesisTasks: [ // SynthesisTasks
45
45
  * // { // SynthesisTask
46
- * // Engine: "standard" || "neural",
46
+ * // Engine: "standard" || "neural" || "long-form",
47
47
  * // TaskId: "STRING_VALUE",
48
48
  * // TaskStatus: "scheduled" || "inProgress" || "completed" || "failed",
49
49
  * // TaskStatusReason: "STRING_VALUE",
@@ -40,7 +40,7 @@ export interface StartSpeechSynthesisTaskCommandOutput extends StartSpeechSynthe
40
40
  * // const { PollyClient, StartSpeechSynthesisTaskCommand } = require("@aws-sdk/client-polly"); // CommonJS import
41
41
  * const client = new PollyClient(config);
42
42
  * const input = { // StartSpeechSynthesisTaskInput
43
- * Engine: "standard" || "neural",
43
+ * Engine: "standard" || "neural" || "long-form",
44
44
  * 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",
45
45
  * LexiconNames: [ // LexiconNameList
46
46
  * "STRING_VALUE",
@@ -61,7 +61,7 @@ export interface StartSpeechSynthesisTaskCommandOutput extends StartSpeechSynthe
61
61
  * const response = await client.send(command);
62
62
  * // { // StartSpeechSynthesisTaskOutput
63
63
  * // SynthesisTask: { // SynthesisTask
64
- * // Engine: "standard" || "neural",
64
+ * // Engine: "standard" || "neural" || "long-form",
65
65
  * // TaskId: "STRING_VALUE",
66
66
  * // TaskStatus: "scheduled" || "inProgress" || "completed" || "failed",
67
67
  * // TaskStatusReason: "STRING_VALUE",
@@ -36,7 +36,7 @@ export interface SynthesizeSpeechCommandOutput extends Omit<SynthesizeSpeechOutp
36
36
  * // const { PollyClient, SynthesizeSpeechCommand } = require("@aws-sdk/client-polly"); // CommonJS import
37
37
  * const client = new PollyClient(config);
38
38
  * const input = { // SynthesizeSpeechInput
39
- * Engine: "standard" || "neural",
39
+ * Engine: "standard" || "neural" || "long-form",
40
40
  * 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",
41
41
  * LexiconNames: [ // LexiconNameList
42
42
  * "STRING_VALUE",
@@ -50,6 +50,7 @@ export declare class ServiceFailureException extends __BaseException {
50
50
  * @enum
51
51
  */
52
52
  export declare const Engine: {
53
+ readonly LONG_FORM: "long-form";
53
54
  readonly NEURAL: "neural";
54
55
  readonly STANDARD: "standard";
55
56
  };
@@ -112,8 +113,9 @@ export type LanguageCode = (typeof LanguageCode)[keyof typeof LanguageCode];
112
113
  export interface DescribeVoicesInput {
113
114
  /**
114
115
  * @public
115
- * <p>Specifies the engine (<code>standard</code> or <code>neural</code>)
116
- * used by Amazon Polly when processing input text for speech synthesis. </p>
116
+ * <p>Specifies the engine (<code>standard</code>, <code>neural</code> or
117
+ * <code>long-form</code>) used by Amazon Polly when processing input text for
118
+ * speech synthesis. </p>
117
119
  */
118
120
  Engine?: Engine;
119
121
  /**
@@ -304,8 +306,8 @@ export interface Voice {
304
306
  AdditionalLanguageCodes?: LanguageCode[];
305
307
  /**
306
308
  * @public
307
- * <p>Specifies which engines (<code>standard</code> or <code>neural</code>)
308
- * that are supported by a given voice.</p>
309
+ * <p>Specifies which engines (<code>standard</code>, <code>neural</code> or
310
+ * <code>long-form</code>) are supported by a given voice.</p>
309
311
  */
310
312
  SupportedEngines?: Engine[];
311
313
  }
@@ -512,10 +514,10 @@ export type TextType = (typeof TextType)[keyof typeof TextType];
512
514
  export interface SynthesisTask {
513
515
  /**
514
516
  * @public
515
- * <p>Specifies the engine (<code>standard</code> or <code>neural</code>)
516
- * for Amazon Polly to use when processing input text for speech synthesis. Using a
517
- * voice that is not supported for the engine selected will result in an
518
- * error.</p>
517
+ * <p>Specifies the engine (<code>standard</code>, <code>neural</code> or
518
+ * <code>long-form</code>) for Amazon Polly to use when processing input text for
519
+ * speech synthesis. Using a voice that is not supported for the engine
520
+ * selected will result in an error.</p>
519
521
  */
520
522
  Engine?: Engine;
521
523
  /**
@@ -574,7 +576,8 @@ export interface SynthesisTask {
574
576
  * <p>The audio frequency specified in Hz.</p>
575
577
  * <p>The valid values for mp3 and ogg_vorbis are "8000", "16000", "22050",
576
578
  * and "24000". The default value for standard voices is "22050". The default
577
- * value for neural voices is "24000".</p>
579
+ * value for neural voices is "24000". The default value for long-form voices
580
+ * is "24000".</p>
578
581
  * <p>Valid values for pcm are "8000" and "16000" The default value is
579
582
  * "16000". </p>
580
583
  */
@@ -943,10 +946,10 @@ export declare class SsmlMarksNotSupportedForTextTypeException extends __BaseExc
943
946
  export interface StartSpeechSynthesisTaskInput {
944
947
  /**
945
948
  * @public
946
- * <p>Specifies the engine (<code>standard</code> or <code>neural</code>)
947
- * for Amazon Polly to use when processing input text for speech synthesis. Using a
948
- * voice that is not supported for the engine selected will result in an
949
- * error.</p>
949
+ * <p>Specifies the engine (<code>standard</code>, <code>neural</code> or
950
+ * <code>long-form</code>) for Amazon Polly to use when processing input text for
951
+ * speech synthesis. Using a voice that is not supported for the engine
952
+ * selected will result in an error.</p>
950
953
  */
951
954
  Engine?: Engine;
952
955
  /**
@@ -990,7 +993,8 @@ export interface StartSpeechSynthesisTaskInput {
990
993
  * <p>The audio frequency specified in Hz.</p>
991
994
  * <p>The valid values for mp3 and ogg_vorbis are "8000", "16000", "22050",
992
995
  * and "24000". The default value for standard voices is "22050". The default
993
- * value for neural voices is "24000".</p>
996
+ * value for neural voices is "24000". The default value for long-form voices
997
+ * is "24000".</p>
994
998
  * <p>Valid values for pcm are "8000" and "16000" The default value is
995
999
  * "16000". </p>
996
1000
  */
@@ -1059,10 +1063,10 @@ export declare class TextLengthExceededException extends __BaseException {
1059
1063
  export interface SynthesizeSpeechInput {
1060
1064
  /**
1061
1065
  * @public
1062
- * <p>Specifies the engine (<code>standard</code> or <code>neural</code>)
1063
- * for Amazon Polly to use when processing input text for speech synthesis. For
1064
- * information on Amazon Polly voices and which voices are available in
1065
- * standard-only, NTTS-only, and both standard and NTTS formats, see <a href="https://docs.aws.amazon.com/polly/latest/dg/voicelist.html">Available Voices</a>.</p>
1066
+ * <p>Specifies the engine (<code>standard</code>, <code>neural</code> or
1067
+ * <code>long-form</code>) for Amazon Polly to use when processing input text for
1068
+ * speech synthesis. For information on Amazon Polly voices and which voices are
1069
+ * available for each engine, see <a href="https://docs.aws.amazon.com/polly/latest/dg/voicelist.html">Available Voices</a>.</p>
1066
1070
  * <p>
1067
1071
  * <b>NTTS-only voices</b>
1068
1072
  * </p>
@@ -1070,8 +1074,16 @@ export interface SynthesizeSpeechInput {
1070
1074
  * required and must be set to <code>neural</code>. If the engine is not
1071
1075
  * specified, or is set to <code>standard</code>, this will result in an
1072
1076
  * error. </p>
1077
+ * <p>
1078
+ * <b>long-form-only voices</b>
1079
+ * </p>
1080
+ * <p>When using long-form-only voices such as Danielle (en-US), this
1081
+ * parameter is required and must be set to <code>long-form</code>. If the
1082
+ * engine is not specified, or is set to <code>standard</code> or
1083
+ * <code>neural</code>, this will result in an error. </p>
1073
1084
  * <p>Type: String</p>
1074
- * <p>Valid Values: <code>standard</code> | <code>neural</code>
1085
+ * <p>Valid Values: <code>standard</code> | <code>neural</code> |
1086
+ * <code>long-form</code>
1075
1087
  * </p>
1076
1088
  * <p>Required: Yes</p>
1077
1089
  * <p>
@@ -1117,7 +1129,8 @@ export interface SynthesizeSpeechInput {
1117
1129
  * <p>The audio frequency specified in Hz.</p>
1118
1130
  * <p>The valid values for mp3 and ogg_vorbis are "8000", "16000", "22050",
1119
1131
  * and "24000". The default value for standard voices is "22050". The default
1120
- * value for neural voices is "24000".</p>
1132
+ * value for neural voices is "24000". The default value for long-form voices
1133
+ * is "24000".</p>
1121
1134
  * <p>Valid values for pcm are "8000" and "16000" The default value is
1122
1135
  * "16000". </p>
1123
1136
  */
@@ -20,6 +20,7 @@ export declare class ServiceFailureException extends __BaseException {
20
20
  );
21
21
  }
22
22
  export declare const Engine: {
23
+ readonly LONG_FORM: "long-form";
23
24
  readonly NEURAL: "neural";
24
25
  readonly STANDARD: "standard";
25
26
  };
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.451.0",
4
+ "version": "3.454.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,7 +21,7 @@
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.451.0",
24
+ "@aws-sdk/client-sts": "3.454.0",
25
25
  "@aws-sdk/core": "3.451.0",
26
26
  "@aws-sdk/credential-provider-node": "3.451.0",
27
27
  "@aws-sdk/middleware-host-header": "3.451.0",