@aws-sdk/client-polly 3.569.0 → 3.572.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.
- package/dist-cjs/index.js +1 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-types/commands/DescribeVoicesCommand.d.ts +2 -2
- package/dist-types/commands/GetSpeechSynthesisTaskCommand.d.ts +1 -1
- package/dist-types/commands/ListSpeechSynthesisTasksCommand.d.ts +1 -1
- package/dist-types/commands/StartSpeechSynthesisTaskCommand.d.ts +2 -2
- package/dist-types/commands/SynthesizeSpeechCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +25 -42
- package/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/package.json +8 -8
package/dist-cjs/index.js
CHANGED
|
@@ -281,6 +281,7 @@ var _ServiceFailureException = class _ServiceFailureException extends PollyServi
|
|
|
281
281
|
__name(_ServiceFailureException, "ServiceFailureException");
|
|
282
282
|
var ServiceFailureException = _ServiceFailureException;
|
|
283
283
|
var Engine = {
|
|
284
|
+
GENERATIVE: "generative",
|
|
284
285
|
LONG_FORM: "long-form",
|
|
285
286
|
NEURAL: "neural",
|
|
286
287
|
STANDARD: "standard"
|
|
@@ -49,7 +49,7 @@ declare const DescribeVoicesCommand_base: {
|
|
|
49
49
|
* // const { PollyClient, DescribeVoicesCommand } = require("@aws-sdk/client-polly"); // CommonJS import
|
|
50
50
|
* const client = new PollyClient(config);
|
|
51
51
|
* const input = { // DescribeVoicesInput
|
|
52
|
-
* Engine: "standard" || "neural" || "long-form",
|
|
52
|
+
* Engine: "standard" || "neural" || "long-form" || "generative",
|
|
53
53
|
* 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",
|
|
54
54
|
* IncludeAdditionalLanguageCodes: true || false,
|
|
55
55
|
* NextToken: "STRING_VALUE",
|
|
@@ -68,7 +68,7 @@ declare const DescribeVoicesCommand_base: {
|
|
|
68
68
|
* // "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",
|
|
69
69
|
* // ],
|
|
70
70
|
* // SupportedEngines: [ // EngineList
|
|
71
|
-
* // "standard" || "neural" || "long-form",
|
|
71
|
+
* // "standard" || "neural" || "long-form" || "generative",
|
|
72
72
|
* // ],
|
|
73
73
|
* // },
|
|
74
74
|
* // ],
|
|
@@ -43,7 +43,7 @@ declare const GetSpeechSynthesisTaskCommand_base: {
|
|
|
43
43
|
* const response = await client.send(command);
|
|
44
44
|
* // { // GetSpeechSynthesisTaskOutput
|
|
45
45
|
* // SynthesisTask: { // SynthesisTask
|
|
46
|
-
* // Engine: "standard" || "neural" || "long-form",
|
|
46
|
+
* // Engine: "standard" || "neural" || "long-form" || "generative",
|
|
47
47
|
* // TaskId: "STRING_VALUE",
|
|
48
48
|
* // TaskStatus: "scheduled" || "inProgress" || "completed" || "failed",
|
|
49
49
|
* // TaskStatusReason: "STRING_VALUE",
|
|
@@ -46,7 +46,7 @@ declare const ListSpeechSynthesisTasksCommand_base: {
|
|
|
46
46
|
* // NextToken: "STRING_VALUE",
|
|
47
47
|
* // SynthesisTasks: [ // SynthesisTasks
|
|
48
48
|
* // { // SynthesisTask
|
|
49
|
-
* // Engine: "standard" || "neural" || "long-form",
|
|
49
|
+
* // Engine: "standard" || "neural" || "long-form" || "generative",
|
|
50
50
|
* // TaskId: "STRING_VALUE",
|
|
51
51
|
* // TaskStatus: "scheduled" || "inProgress" || "completed" || "failed",
|
|
52
52
|
* // TaskStatusReason: "STRING_VALUE",
|
|
@@ -43,7 +43,7 @@ declare const StartSpeechSynthesisTaskCommand_base: {
|
|
|
43
43
|
* // const { PollyClient, StartSpeechSynthesisTaskCommand } = require("@aws-sdk/client-polly"); // CommonJS import
|
|
44
44
|
* const client = new PollyClient(config);
|
|
45
45
|
* const input = { // StartSpeechSynthesisTaskInput
|
|
46
|
-
* Engine: "standard" || "neural" || "long-form",
|
|
46
|
+
* Engine: "standard" || "neural" || "long-form" || "generative",
|
|
47
47
|
* 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",
|
|
48
48
|
* LexiconNames: [ // LexiconNameList
|
|
49
49
|
* "STRING_VALUE",
|
|
@@ -64,7 +64,7 @@ declare const StartSpeechSynthesisTaskCommand_base: {
|
|
|
64
64
|
* const response = await client.send(command);
|
|
65
65
|
* // { // StartSpeechSynthesisTaskOutput
|
|
66
66
|
* // SynthesisTask: { // SynthesisTask
|
|
67
|
-
* // Engine: "standard" || "neural" || "long-form",
|
|
67
|
+
* // Engine: "standard" || "neural" || "long-form" || "generative",
|
|
68
68
|
* // TaskId: "STRING_VALUE",
|
|
69
69
|
* // TaskStatus: "scheduled" || "inProgress" || "completed" || "failed",
|
|
70
70
|
* // TaskStatusReason: "STRING_VALUE",
|
|
@@ -39,7 +39,7 @@ declare const SynthesizeSpeechCommand_base: {
|
|
|
39
39
|
* // const { PollyClient, SynthesizeSpeechCommand } = require("@aws-sdk/client-polly"); // CommonJS import
|
|
40
40
|
* const client = new PollyClient(config);
|
|
41
41
|
* const input = { // SynthesizeSpeechInput
|
|
42
|
-
* Engine: "standard" || "neural" || "long-form",
|
|
42
|
+
* Engine: "standard" || "neural" || "long-form" || "generative",
|
|
43
43
|
* 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",
|
|
44
44
|
* LexiconNames: [ // LexiconNameList
|
|
45
45
|
* "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 GENERATIVE: "generative";
|
|
53
54
|
readonly LONG_FORM: "long-form";
|
|
54
55
|
readonly NEURAL: "neural";
|
|
55
56
|
readonly STANDARD: "standard";
|
|
@@ -112,9 +113,9 @@ export type LanguageCode = (typeof LanguageCode)[keyof typeof LanguageCode];
|
|
|
112
113
|
*/
|
|
113
114
|
export interface DescribeVoicesInput {
|
|
114
115
|
/**
|
|
115
|
-
* <p>Specifies the engine (<code>standard</code>, <code>neural</code
|
|
116
|
-
* <code>long-form</code>) used by Amazon Polly when
|
|
117
|
-
* speech synthesis. </p>
|
|
116
|
+
* <p>Specifies the engine (<code>standard</code>, <code>neural</code>,
|
|
117
|
+
* <code>long-form</code> or <code>generative</code>) used by Amazon Polly when
|
|
118
|
+
* processing input text for speech synthesis. </p>
|
|
118
119
|
* @public
|
|
119
120
|
*/
|
|
120
121
|
Engine?: Engine;
|
|
@@ -306,8 +307,8 @@ export interface Voice {
|
|
|
306
307
|
*/
|
|
307
308
|
AdditionalLanguageCodes?: LanguageCode[];
|
|
308
309
|
/**
|
|
309
|
-
* <p>Specifies which engines (<code>standard</code>, <code>neural</code
|
|
310
|
-
* <code>long-form</code>) are supported by a given voice.</p>
|
|
310
|
+
* <p>Specifies which engines (<code>standard</code>, <code>neural</code>,
|
|
311
|
+
* <code>long-form</code> or <code>generative</code>) are supported by a given voice.</p>
|
|
311
312
|
* @public
|
|
312
313
|
*/
|
|
313
314
|
SupportedEngines?: Engine[];
|
|
@@ -514,10 +515,10 @@ export type TextType = (typeof TextType)[keyof typeof TextType];
|
|
|
514
515
|
*/
|
|
515
516
|
export interface SynthesisTask {
|
|
516
517
|
/**
|
|
517
|
-
* <p>Specifies the engine (<code>standard</code>, <code>neural</code
|
|
518
|
-
* <code>long-form</code>) for Amazon Polly to use
|
|
519
|
-
* speech synthesis. Using a voice that
|
|
520
|
-
* selected will result in an error.</p>
|
|
518
|
+
* <p>Specifies the engine (<code>standard</code>, <code>neural</code>,
|
|
519
|
+
* <code>long-form</code> or <code>generative</code>) for Amazon Polly to use
|
|
520
|
+
* when processing input text for speech synthesis. Using a voice that
|
|
521
|
+
* is not supported for the engine selected will result in an error.</p>
|
|
521
522
|
* @public
|
|
522
523
|
*/
|
|
523
524
|
Engine?: Engine;
|
|
@@ -577,7 +578,7 @@ export interface SynthesisTask {
|
|
|
577
578
|
* <p>The valid values for mp3 and ogg_vorbis are "8000", "16000", "22050",
|
|
578
579
|
* and "24000". The default value for standard voices is "22050". The default
|
|
579
580
|
* value for neural voices is "24000". The default value for long-form voices
|
|
580
|
-
* is "24000".</p>
|
|
581
|
+
* is "24000". The default value for generative voices is "24000".</p>
|
|
581
582
|
* <p>Valid values for pcm are "8000" and "16000" The default value is
|
|
582
583
|
* "16000". </p>
|
|
583
584
|
* @public
|
|
@@ -946,10 +947,10 @@ export declare class SsmlMarksNotSupportedForTextTypeException extends __BaseExc
|
|
|
946
947
|
*/
|
|
947
948
|
export interface StartSpeechSynthesisTaskInput {
|
|
948
949
|
/**
|
|
949
|
-
* <p>Specifies the engine (<code>standard</code>, <code>neural</code
|
|
950
|
-
* <code>long-form</code>) for Amazon Polly to use
|
|
951
|
-
* speech synthesis. Using a voice that
|
|
952
|
-
* selected will result in an error.</p>
|
|
950
|
+
* <p>Specifies the engine (<code>standard</code>, <code>neural</code>,
|
|
951
|
+
* <code>long-form</code> or <code>generative</code>) for Amazon Polly to use
|
|
952
|
+
* when processing input text for speech synthesis. Using a voice that
|
|
953
|
+
* is not supported for the engine selected will result in an error.</p>
|
|
953
954
|
* @public
|
|
954
955
|
*/
|
|
955
956
|
Engine?: Engine;
|
|
@@ -994,7 +995,7 @@ export interface StartSpeechSynthesisTaskInput {
|
|
|
994
995
|
* <p>The valid values for mp3 and ogg_vorbis are "8000", "16000", "22050",
|
|
995
996
|
* and "24000". The default value for standard voices is "22050". The default
|
|
996
997
|
* value for neural voices is "24000". The default value for long-form voices
|
|
997
|
-
* is "24000".</p>
|
|
998
|
+
* is "24000". The default value for generative voices is "24000".</p>
|
|
998
999
|
* <p>Valid values for pcm are "8000" and "16000" The default value is
|
|
999
1000
|
* "16000". </p>
|
|
1000
1001
|
* @public
|
|
@@ -1063,36 +1064,18 @@ export declare class TextLengthExceededException extends __BaseException {
|
|
|
1063
1064
|
*/
|
|
1064
1065
|
export interface SynthesizeSpeechInput {
|
|
1065
1066
|
/**
|
|
1066
|
-
* <p>Specifies the engine (<code>standard</code>, <code>neural</code
|
|
1067
|
-
* <code>long-form</code>) for Amazon Polly
|
|
1068
|
-
*
|
|
1069
|
-
*
|
|
1070
|
-
*
|
|
1071
|
-
*
|
|
1072
|
-
*
|
|
1073
|
-
* <p>When using NTTS-only voices such as Kevin (en-US), this parameter is
|
|
1074
|
-
* required and must be set to <code>neural</code>. If the engine is not
|
|
1075
|
-
* specified, or is set to <code>standard</code>, this will result in an
|
|
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>
|
|
1067
|
+
* <p>Specifies the engine (<code>standard</code>, <code>neural</code>,
|
|
1068
|
+
* <code>long-form</code>, or <code>generative</code>) for Amazon Polly
|
|
1069
|
+
* to use when processing input text for speech synthesis. Provide an engine
|
|
1070
|
+
* that is supported by the voice you select. If you don't provide an engine,
|
|
1071
|
+
* the standard engine is selected by default. If a chosen voice isn't supported
|
|
1072
|
+
* by the standard engine, this will result in an error. For information on
|
|
1073
|
+
* Amazon Polly voices and which voices are available for each engine, see <a href="https://docs.aws.amazon.com/polly/latest/dg/voicelist.html">Available Voices</a>.</p>
|
|
1084
1074
|
* <p>Type: String</p>
|
|
1085
1075
|
* <p>Valid Values: <code>standard</code> | <code>neural</code> |
|
|
1086
|
-
* <code>long-form</code>
|
|
1076
|
+
* <code>long-form</code> | <code>generative</code>
|
|
1087
1077
|
* </p>
|
|
1088
1078
|
* <p>Required: Yes</p>
|
|
1089
|
-
* <p>
|
|
1090
|
-
* <b>Standard voices</b>
|
|
1091
|
-
* </p>
|
|
1092
|
-
* <p>For standard voices, this is not required; the engine parameter
|
|
1093
|
-
* defaults to <code>standard</code>. If the engine is not specified, or is
|
|
1094
|
-
* set to <code>standard</code> and an NTTS-only voice is selected, this will
|
|
1095
|
-
* result in an error. </p>
|
|
1096
1079
|
* @public
|
|
1097
1080
|
*/
|
|
1098
1081
|
Engine?: Engine;
|
|
@@ -1130,7 +1113,7 @@ export interface SynthesizeSpeechInput {
|
|
|
1130
1113
|
* <p>The valid values for mp3 and ogg_vorbis are "8000", "16000", "22050",
|
|
1131
1114
|
* and "24000". The default value for standard voices is "22050". The default
|
|
1132
1115
|
* value for neural voices is "24000". The default value for long-form voices
|
|
1133
|
-
* is "24000".</p>
|
|
1116
|
+
* is "24000". The default value for generative voices is "24000".</p>
|
|
1134
1117
|
* <p>Valid values for pcm are "8000" and "16000" The default value is
|
|
1135
1118
|
* "16000". </p>
|
|
1136
1119
|
* @public
|
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.
|
|
4
|
+
"version": "3.572.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-polly",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.572.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.572.0",
|
|
25
|
+
"@aws-sdk/core": "3.572.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.572.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.567.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.568.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.567.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.572.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.572.0",
|
|
32
32
|
"@aws-sdk/types": "3.567.0",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.572.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.567.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.568.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.2.0",
|