@aws-sdk/client-polly 3.321.1 → 3.326.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-types/commands/DeleteLexiconCommand.d.ts +4 -0
- package/dist-types/commands/DescribeVoicesCommand.d.ts +21 -0
- package/dist-types/commands/GetLexiconCommand.d.ts +17 -0
- package/dist-types/commands/GetSpeechSynthesisTaskCommand.d.ts +26 -0
- package/dist-types/commands/ListLexiconsCommand.d.ts +19 -0
- package/dist-types/commands/ListSpeechSynthesisTasksCommand.d.ts +29 -0
- package/dist-types/commands/PutLexiconCommand.d.ts +4 -0
- package/dist-types/commands/StartSpeechSynthesisTaskCommand.d.ts +26 -0
- package/dist-types/commands/SynthesizeSpeechCommand.d.ts +8 -0
- package/package.json +16 -16
|
@@ -34,6 +34,8 @@ export interface DeleteLexiconCommandOutput extends DeleteLexiconOutput, __Metad
|
|
|
34
34
|
* };
|
|
35
35
|
* const command = new DeleteLexiconCommand(input);
|
|
36
36
|
* const response = await client.send(command);
|
|
37
|
+
* // {};
|
|
38
|
+
*
|
|
37
39
|
* ```
|
|
38
40
|
*
|
|
39
41
|
* @param DeleteLexiconCommandInput - {@link DeleteLexiconCommandInput}
|
|
@@ -52,6 +54,8 @@ export interface DeleteLexiconCommandOutput extends DeleteLexiconOutput, __Metad
|
|
|
52
54
|
* @throws {@link ServiceFailureException} (server fault)
|
|
53
55
|
* <p>An unknown condition has caused a service failure.</p>
|
|
54
56
|
*
|
|
57
|
+
* @throws {@link PollyServiceException}
|
|
58
|
+
* <p>Base exception class for all service exceptions from Polly service.</p>
|
|
55
59
|
*
|
|
56
60
|
* @example To delete a lexicon
|
|
57
61
|
* ```javascript
|
|
@@ -49,6 +49,25 @@ export interface DescribeVoicesCommandOutput extends DescribeVoicesOutput, __Met
|
|
|
49
49
|
* };
|
|
50
50
|
* const command = new DescribeVoicesCommand(input);
|
|
51
51
|
* const response = await client.send(command);
|
|
52
|
+
* // { // DescribeVoicesOutput
|
|
53
|
+
* // Voices: [ // VoiceList
|
|
54
|
+
* // { // Voice
|
|
55
|
+
* // Gender: "Female" || "Male",
|
|
56
|
+
* // 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",
|
|
57
|
+
* // 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",
|
|
58
|
+
* // LanguageName: "STRING_VALUE",
|
|
59
|
+
* // Name: "STRING_VALUE",
|
|
60
|
+
* // AdditionalLanguageCodes: [ // LanguageCodeList
|
|
61
|
+
* // "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",
|
|
62
|
+
* // ],
|
|
63
|
+
* // SupportedEngines: [ // EngineList
|
|
64
|
+
* // "standard" || "neural",
|
|
65
|
+
* // ],
|
|
66
|
+
* // },
|
|
67
|
+
* // ],
|
|
68
|
+
* // NextToken: "STRING_VALUE",
|
|
69
|
+
* // };
|
|
70
|
+
*
|
|
52
71
|
* ```
|
|
53
72
|
*
|
|
54
73
|
* @param DescribeVoicesCommandInput - {@link DescribeVoicesCommandInput}
|
|
@@ -64,6 +83,8 @@ export interface DescribeVoicesCommandOutput extends DescribeVoicesOutput, __Met
|
|
|
64
83
|
* @throws {@link ServiceFailureException} (server fault)
|
|
65
84
|
* <p>An unknown condition has caused a service failure.</p>
|
|
66
85
|
*
|
|
86
|
+
* @throws {@link PollyServiceException}
|
|
87
|
+
* <p>Base exception class for all service exceptions from Polly service.</p>
|
|
67
88
|
*
|
|
68
89
|
* @example To describe available voices
|
|
69
90
|
* ```javascript
|
|
@@ -32,6 +32,21 @@ export interface GetLexiconCommandOutput extends GetLexiconOutput, __MetadataBea
|
|
|
32
32
|
* };
|
|
33
33
|
* const command = new GetLexiconCommand(input);
|
|
34
34
|
* const response = await client.send(command);
|
|
35
|
+
* // { // GetLexiconOutput
|
|
36
|
+
* // Lexicon: { // Lexicon
|
|
37
|
+
* // Content: "STRING_VALUE",
|
|
38
|
+
* // Name: "STRING_VALUE",
|
|
39
|
+
* // },
|
|
40
|
+
* // LexiconAttributes: { // LexiconAttributes
|
|
41
|
+
* // Alphabet: "STRING_VALUE",
|
|
42
|
+
* // 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",
|
|
43
|
+
* // LastModified: new Date("TIMESTAMP"),
|
|
44
|
+
* // LexiconArn: "STRING_VALUE",
|
|
45
|
+
* // LexemesCount: Number("int"),
|
|
46
|
+
* // Size: Number("int"),
|
|
47
|
+
* // },
|
|
48
|
+
* // };
|
|
49
|
+
*
|
|
35
50
|
* ```
|
|
36
51
|
*
|
|
37
52
|
* @param GetLexiconCommandInput - {@link GetLexiconCommandInput}
|
|
@@ -50,6 +65,8 @@ export interface GetLexiconCommandOutput extends GetLexiconOutput, __MetadataBea
|
|
|
50
65
|
* @throws {@link ServiceFailureException} (server fault)
|
|
51
66
|
* <p>An unknown condition has caused a service failure.</p>
|
|
52
67
|
*
|
|
68
|
+
* @throws {@link PollyServiceException}
|
|
69
|
+
* <p>Base exception class for all service exceptions from Polly service.</p>
|
|
53
70
|
*
|
|
54
71
|
* @example To retrieve a lexicon
|
|
55
72
|
* ```javascript
|
|
@@ -34,6 +34,30 @@ export interface GetSpeechSynthesisTaskCommandOutput extends GetSpeechSynthesisT
|
|
|
34
34
|
* };
|
|
35
35
|
* const command = new GetSpeechSynthesisTaskCommand(input);
|
|
36
36
|
* const response = await client.send(command);
|
|
37
|
+
* // { // GetSpeechSynthesisTaskOutput
|
|
38
|
+
* // SynthesisTask: { // SynthesisTask
|
|
39
|
+
* // Engine: "standard" || "neural",
|
|
40
|
+
* // TaskId: "STRING_VALUE",
|
|
41
|
+
* // TaskStatus: "scheduled" || "inProgress" || "completed" || "failed",
|
|
42
|
+
* // TaskStatusReason: "STRING_VALUE",
|
|
43
|
+
* // OutputUri: "STRING_VALUE",
|
|
44
|
+
* // CreationTime: new Date("TIMESTAMP"),
|
|
45
|
+
* // RequestCharacters: Number("int"),
|
|
46
|
+
* // SnsTopicArn: "STRING_VALUE",
|
|
47
|
+
* // LexiconNames: [ // LexiconNameList
|
|
48
|
+
* // "STRING_VALUE",
|
|
49
|
+
* // ],
|
|
50
|
+
* // OutputFormat: "json" || "mp3" || "ogg_vorbis" || "pcm",
|
|
51
|
+
* // SampleRate: "STRING_VALUE",
|
|
52
|
+
* // SpeechMarkTypes: [ // SpeechMarkTypeList
|
|
53
|
+
* // "sentence" || "ssml" || "viseme" || "word",
|
|
54
|
+
* // ],
|
|
55
|
+
* // TextType: "ssml" || "text",
|
|
56
|
+
* // VoiceId: "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",
|
|
57
|
+
* // 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",
|
|
58
|
+
* // },
|
|
59
|
+
* // };
|
|
60
|
+
*
|
|
37
61
|
* ```
|
|
38
62
|
*
|
|
39
63
|
* @param GetSpeechSynthesisTaskCommandInput - {@link GetSpeechSynthesisTaskCommandInput}
|
|
@@ -53,6 +77,8 @@ export interface GetSpeechSynthesisTaskCommandOutput extends GetSpeechSynthesisT
|
|
|
53
77
|
* <p>The Speech Synthesis task with requested Task ID cannot be
|
|
54
78
|
* found.</p>
|
|
55
79
|
*
|
|
80
|
+
* @throws {@link PollyServiceException}
|
|
81
|
+
* <p>Base exception class for all service exceptions from Polly service.</p>
|
|
56
82
|
*
|
|
57
83
|
*/
|
|
58
84
|
export declare class GetSpeechSynthesisTaskCommand extends $Command<GetSpeechSynthesisTaskCommandInput, GetSpeechSynthesisTaskCommandOutput, PollyClientResolvedConfig> {
|
|
@@ -31,6 +31,23 @@ export interface ListLexiconsCommandOutput extends ListLexiconsOutput, __Metadat
|
|
|
31
31
|
* };
|
|
32
32
|
* const command = new ListLexiconsCommand(input);
|
|
33
33
|
* const response = await client.send(command);
|
|
34
|
+
* // { // ListLexiconsOutput
|
|
35
|
+
* // Lexicons: [ // LexiconDescriptionList
|
|
36
|
+
* // { // LexiconDescription
|
|
37
|
+
* // Name: "STRING_VALUE",
|
|
38
|
+
* // Attributes: { // LexiconAttributes
|
|
39
|
+
* // Alphabet: "STRING_VALUE",
|
|
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",
|
|
41
|
+
* // LastModified: new Date("TIMESTAMP"),
|
|
42
|
+
* // LexiconArn: "STRING_VALUE",
|
|
43
|
+
* // LexemesCount: Number("int"),
|
|
44
|
+
* // Size: Number("int"),
|
|
45
|
+
* // },
|
|
46
|
+
* // },
|
|
47
|
+
* // ],
|
|
48
|
+
* // NextToken: "STRING_VALUE",
|
|
49
|
+
* // };
|
|
50
|
+
*
|
|
34
51
|
* ```
|
|
35
52
|
*
|
|
36
53
|
* @param ListLexiconsCommandInput - {@link ListLexiconsCommandInput}
|
|
@@ -46,6 +63,8 @@ export interface ListLexiconsCommandOutput extends ListLexiconsOutput, __Metadat
|
|
|
46
63
|
* @throws {@link ServiceFailureException} (server fault)
|
|
47
64
|
* <p>An unknown condition has caused a service failure.</p>
|
|
48
65
|
*
|
|
66
|
+
* @throws {@link PollyServiceException}
|
|
67
|
+
* <p>Base exception class for all service exceptions from Polly service.</p>
|
|
49
68
|
*
|
|
50
69
|
* @example To list all lexicons in a region
|
|
51
70
|
* ```javascript
|
|
@@ -35,6 +35,33 @@ export interface ListSpeechSynthesisTasksCommandOutput extends ListSpeechSynthes
|
|
|
35
35
|
* };
|
|
36
36
|
* const command = new ListSpeechSynthesisTasksCommand(input);
|
|
37
37
|
* const response = await client.send(command);
|
|
38
|
+
* // { // ListSpeechSynthesisTasksOutput
|
|
39
|
+
* // NextToken: "STRING_VALUE",
|
|
40
|
+
* // SynthesisTasks: [ // SynthesisTasks
|
|
41
|
+
* // { // SynthesisTask
|
|
42
|
+
* // Engine: "standard" || "neural",
|
|
43
|
+
* // TaskId: "STRING_VALUE",
|
|
44
|
+
* // TaskStatus: "scheduled" || "inProgress" || "completed" || "failed",
|
|
45
|
+
* // TaskStatusReason: "STRING_VALUE",
|
|
46
|
+
* // OutputUri: "STRING_VALUE",
|
|
47
|
+
* // CreationTime: new Date("TIMESTAMP"),
|
|
48
|
+
* // RequestCharacters: Number("int"),
|
|
49
|
+
* // SnsTopicArn: "STRING_VALUE",
|
|
50
|
+
* // LexiconNames: [ // LexiconNameList
|
|
51
|
+
* // "STRING_VALUE",
|
|
52
|
+
* // ],
|
|
53
|
+
* // OutputFormat: "json" || "mp3" || "ogg_vorbis" || "pcm",
|
|
54
|
+
* // SampleRate: "STRING_VALUE",
|
|
55
|
+
* // SpeechMarkTypes: [ // SpeechMarkTypeList
|
|
56
|
+
* // "sentence" || "ssml" || "viseme" || "word",
|
|
57
|
+
* // ],
|
|
58
|
+
* // TextType: "ssml" || "text",
|
|
59
|
+
* // VoiceId: "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",
|
|
60
|
+
* // 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",
|
|
61
|
+
* // },
|
|
62
|
+
* // ],
|
|
63
|
+
* // };
|
|
64
|
+
*
|
|
38
65
|
* ```
|
|
39
66
|
*
|
|
40
67
|
* @param ListSpeechSynthesisTasksCommandInput - {@link ListSpeechSynthesisTasksCommandInput}
|
|
@@ -50,6 +77,8 @@ export interface ListSpeechSynthesisTasksCommandOutput extends ListSpeechSynthes
|
|
|
50
77
|
* @throws {@link ServiceFailureException} (server fault)
|
|
51
78
|
* <p>An unknown condition has caused a service failure.</p>
|
|
52
79
|
*
|
|
80
|
+
* @throws {@link PollyServiceException}
|
|
81
|
+
* <p>Base exception class for all service exceptions from Polly service.</p>
|
|
53
82
|
*
|
|
54
83
|
*/
|
|
55
84
|
export declare class ListSpeechSynthesisTasksCommand extends $Command<ListSpeechSynthesisTasksCommandInput, ListSpeechSynthesisTasksCommandOutput, PollyClientResolvedConfig> {
|
|
@@ -37,6 +37,8 @@ export interface PutLexiconCommandOutput extends PutLexiconOutput, __MetadataBea
|
|
|
37
37
|
* };
|
|
38
38
|
* const command = new PutLexiconCommand(input);
|
|
39
39
|
* const response = await client.send(command);
|
|
40
|
+
* // {};
|
|
41
|
+
*
|
|
40
42
|
* ```
|
|
41
43
|
*
|
|
42
44
|
* @param PutLexiconCommandInput - {@link PutLexiconCommandInput}
|
|
@@ -72,6 +74,8 @@ export interface PutLexiconCommandOutput extends PutLexiconOutput, __MetadataBea
|
|
|
72
74
|
* <p>The language specified in the lexicon is unsupported. For a list of
|
|
73
75
|
* supported languages, see <a href="https://docs.aws.amazon.com/polly/latest/dg/API_LexiconAttributes.html">Lexicon Attributes</a>.</p>
|
|
74
76
|
*
|
|
77
|
+
* @throws {@link PollyServiceException}
|
|
78
|
+
* <p>Base exception class for all service exceptions from Polly service.</p>
|
|
75
79
|
*
|
|
76
80
|
* @example To save a lexicon
|
|
77
81
|
* ```javascript
|
|
@@ -55,6 +55,30 @@ export interface StartSpeechSynthesisTaskCommandOutput extends StartSpeechSynthe
|
|
|
55
55
|
* };
|
|
56
56
|
* const command = new StartSpeechSynthesisTaskCommand(input);
|
|
57
57
|
* const response = await client.send(command);
|
|
58
|
+
* // { // StartSpeechSynthesisTaskOutput
|
|
59
|
+
* // SynthesisTask: { // SynthesisTask
|
|
60
|
+
* // Engine: "standard" || "neural",
|
|
61
|
+
* // TaskId: "STRING_VALUE",
|
|
62
|
+
* // TaskStatus: "scheduled" || "inProgress" || "completed" || "failed",
|
|
63
|
+
* // TaskStatusReason: "STRING_VALUE",
|
|
64
|
+
* // OutputUri: "STRING_VALUE",
|
|
65
|
+
* // CreationTime: new Date("TIMESTAMP"),
|
|
66
|
+
* // RequestCharacters: Number("int"),
|
|
67
|
+
* // SnsTopicArn: "STRING_VALUE",
|
|
68
|
+
* // LexiconNames: [ // LexiconNameList
|
|
69
|
+
* // "STRING_VALUE",
|
|
70
|
+
* // ],
|
|
71
|
+
* // OutputFormat: "json" || "mp3" || "ogg_vorbis" || "pcm",
|
|
72
|
+
* // SampleRate: "STRING_VALUE",
|
|
73
|
+
* // SpeechMarkTypes: [ // SpeechMarkTypeList
|
|
74
|
+
* // "sentence" || "ssml" || "viseme" || "word",
|
|
75
|
+
* // ],
|
|
76
|
+
* // TextType: "ssml" || "text",
|
|
77
|
+
* // VoiceId: "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",
|
|
78
|
+
* // 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",
|
|
79
|
+
* // },
|
|
80
|
+
* // };
|
|
81
|
+
*
|
|
58
82
|
* ```
|
|
59
83
|
*
|
|
60
84
|
* @param StartSpeechSynthesisTaskCommandInput - {@link StartSpeechSynthesisTaskCommandInput}
|
|
@@ -119,6 +143,8 @@ export interface StartSpeechSynthesisTaskCommandOutput extends StartSpeechSynthe
|
|
|
119
143
|
* billed characters. SSML tags are not counted as billed
|
|
120
144
|
* characters.</p>
|
|
121
145
|
*
|
|
146
|
+
* @throws {@link PollyServiceException}
|
|
147
|
+
* <p>Base exception class for all service exceptions from Polly service.</p>
|
|
122
148
|
*
|
|
123
149
|
*/
|
|
124
150
|
export declare class StartSpeechSynthesisTaskCommand extends $Command<StartSpeechSynthesisTaskCommandInput, StartSpeechSynthesisTaskCommandOutput, PollyClientResolvedConfig> {
|
|
@@ -47,6 +47,12 @@ export interface SynthesizeSpeechCommandOutput extends __WithSdkStreamMixin<Synt
|
|
|
47
47
|
* };
|
|
48
48
|
* const command = new SynthesizeSpeechCommand(input);
|
|
49
49
|
* const response = await client.send(command);
|
|
50
|
+
* // { // SynthesizeSpeechOutput
|
|
51
|
+
* // AudioStream: "STREAMING_BLOB_VALUE",
|
|
52
|
+
* // ContentType: "STRING_VALUE",
|
|
53
|
+
* // RequestCharacters: Number("int"),
|
|
54
|
+
* // };
|
|
55
|
+
*
|
|
50
56
|
* ```
|
|
51
57
|
*
|
|
52
58
|
* @param SynthesizeSpeechCommandInput - {@link SynthesizeSpeechCommandInput}
|
|
@@ -99,6 +105,8 @@ export interface SynthesizeSpeechCommandOutput extends __WithSdkStreamMixin<Synt
|
|
|
99
105
|
* billed characters. SSML tags are not counted as billed
|
|
100
106
|
* characters.</p>
|
|
101
107
|
*
|
|
108
|
+
* @throws {@link PollyServiceException}
|
|
109
|
+
* <p>Base exception class for all service exceptions from Polly service.</p>
|
|
102
110
|
*
|
|
103
111
|
* @example To synthesize speech
|
|
104
112
|
* ```javascript
|
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.326.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,33 +21,33 @@
|
|
|
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.
|
|
24
|
+
"@aws-sdk/client-sts": "3.326.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.326.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.325.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.325.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.325.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.325.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.325.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.325.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.325.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.325.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.325.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.325.0",
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.321.1",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.325.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.325.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.325.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.319.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-stream-browser": "3.310.0",
|