Skip to content

Commit 1c78990

Browse files
author
awstools
committed
feat(client-polly): Added support for new output format - Opus.
1 parent b656030 commit 1c78990

File tree

6 files changed

+15
-14
lines changed

6 files changed

+15
-14
lines changed

clients/client-polly/src/commands/GetSpeechSynthesisTaskCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export interface GetSpeechSynthesisTaskCommandOutput extends GetSpeechSynthesisT
5656
* // LexiconNames: [ // LexiconNameList
5757
* // "STRING_VALUE",
5858
* // ],
59-
* // OutputFormat: "json" || "mp3" || "ogg_vorbis" || "pcm",
59+
* // OutputFormat: "json" || "mp3" || "ogg_opus" || "ogg_vorbis" || "pcm",
6060
* // SampleRate: "STRING_VALUE",
6161
* // SpeechMarkTypes: [ // SpeechMarkTypeList
6262
* // "sentence" || "ssml" || "viseme" || "word",

clients/client-polly/src/commands/ListSpeechSynthesisTasksCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export interface ListSpeechSynthesisTasksCommandOutput extends ListSpeechSynthes
5959
* // LexiconNames: [ // LexiconNameList
6060
* // "STRING_VALUE",
6161
* // ],
62-
* // OutputFormat: "json" || "mp3" || "ogg_vorbis" || "pcm",
62+
* // OutputFormat: "json" || "mp3" || "ogg_opus" || "ogg_vorbis" || "pcm",
6363
* // SampleRate: "STRING_VALUE",
6464
* // SpeechMarkTypes: [ // SpeechMarkTypeList
6565
* // "sentence" || "ssml" || "viseme" || "word",

clients/client-polly/src/commands/StartSpeechSynthesisTaskCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export interface StartSpeechSynthesisTaskCommandOutput extends StartSpeechSynthe
5050
* LexiconNames: [ // LexiconNameList
5151
* "STRING_VALUE",
5252
* ],
53-
* OutputFormat: "json" || "mp3" || "ogg_vorbis" || "pcm", // required
53+
* OutputFormat: "json" || "mp3" || "ogg_opus" || "ogg_vorbis" || "pcm", // required
5454
* OutputS3BucketName: "STRING_VALUE", // required
5555
* OutputS3KeyPrefix: "STRING_VALUE",
5656
* SampleRate: "STRING_VALUE",
@@ -77,7 +77,7 @@ export interface StartSpeechSynthesisTaskCommandOutput extends StartSpeechSynthe
7777
* // LexiconNames: [ // LexiconNameList
7878
* // "STRING_VALUE",
7979
* // ],
80-
* // OutputFormat: "json" || "mp3" || "ogg_vorbis" || "pcm",
80+
* // OutputFormat: "json" || "mp3" || "ogg_opus" || "ogg_vorbis" || "pcm",
8181
* // SampleRate: "STRING_VALUE",
8282
* // SpeechMarkTypes: [ // SpeechMarkTypeList
8383
* // "sentence" || "ssml" || "viseme" || "word",

clients/client-polly/src/commands/SynthesizeSpeechCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export interface SynthesizeSpeechCommandOutput extends Omit<SynthesizeSpeechOutp
5151
* LexiconNames: [ // LexiconNameList
5252
* "STRING_VALUE",
5353
* ],
54-
* OutputFormat: "json" || "mp3" || "ogg_vorbis" || "pcm", // required
54+
* OutputFormat: "json" || "mp3" || "ogg_opus" || "ogg_vorbis" || "pcm", // required
5555
* SampleRate: "STRING_VALUE",
5656
* SpeechMarkTypes: [ // SpeechMarkTypeList
5757
* "sentence" || "ssml" || "viseme" || "word",

clients/client-polly/src/models/models_0.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,7 @@ export interface GetSpeechSynthesisTaskInput {
538538
export const OutputFormat = {
539539
JSON: "json",
540540
MP3: "mp3",
541+
OGG_OPUS: "ogg_opus",
541542
OGG_VORBIS: "ogg_vorbis",
542543
PCM: "pcm",
543544
} as const;
@@ -1333,11 +1334,6 @@ export interface SynthesizeSpeechInput {
13331334
* the standard engine is selected by default. If a chosen voice isn't supported
13341335
* by the standard engine, this will result in an error. For information on
13351336
* 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>
1336-
* <p>Type: String</p>
1337-
* <p>Valid Values: <code>standard</code> | <code>neural</code> |
1338-
* <code>long-form</code> | <code>generative</code>
1339-
* </p>
1340-
* <p>Required: Yes</p>
13411337
* @public
13421338
*/
13431339
Engine?: Engine | undefined;
@@ -1376,8 +1372,7 @@ export interface SynthesizeSpeechInput {
13761372

13771373
/**
13781374
* <p>The audio frequency specified in Hz.</p>
1379-
* <p>The valid values for mp3 and ogg_vorbis are "8000", "16000", "22050",
1380-
* and "24000". The default value for standard voices is "22050". The default
1375+
* <p>The valid values for mp3 and ogg_vorbis are "8000", "16000", "22050", "24000", "44100" and "48000". The default value for standard voices is "22050". The default
13811376
* value for neural voices is "24000". The default value for long-form voices
13821377
* is "24000". The default value for generative voices is "24000".</p>
13831378
* <p>Valid values for pcm are "8000" and "16000" The default value is

codegen/sdk-codegen/aws-models/polly.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,6 +1193,12 @@
11931193
"smithy.api#enumValue": "mp3"
11941194
}
11951195
},
1196+
"OGG_OPUS": {
1197+
"target": "smithy.api#Unit",
1198+
"traits": {
1199+
"smithy.api#enumValue": "ogg_opus"
1200+
}
1201+
},
11961202
"OGG_VORBIS": {
11971203
"target": "smithy.api#Unit",
11981204
"traits": {
@@ -2724,7 +2730,7 @@
27242730
"Engine": {
27252731
"target": "com.amazonaws.polly#Engine",
27262732
"traits": {
2727-
"smithy.api#documentation": "<p>Specifies the engine (<code>standard</code>, <code>neural</code>,\n <code>long-form</code>, or <code>generative</code>) for Amazon Polly\n to use when processing input text for speech synthesis. Provide an engine\n that is supported by the voice you select. If you don't provide an engine,\n the standard engine is selected by default. If a chosen voice isn't supported\n by the standard engine, this will result in an error. For information on\n 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>\n <p>Type: String</p>\n <p>Valid Values: <code>standard</code> | <code>neural</code> |\n <code>long-form</code> | <code>generative</code>\n </p>\n <p>Required: Yes</p>"
2733+
"smithy.api#documentation": "<p>Specifies the engine (<code>standard</code>, <code>neural</code>,\n <code>long-form</code>, or <code>generative</code>) for Amazon Polly\n to use when processing input text for speech synthesis. Provide an engine\n that is supported by the voice you select. If you don't provide an engine,\n the standard engine is selected by default. If a chosen voice isn't supported\n by the standard engine, this will result in an error. For information on\n 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>"
27282734
}
27292735
},
27302736
"LanguageCode": {
@@ -2749,7 +2755,7 @@
27492755
"SampleRate": {
27502756
"target": "com.amazonaws.polly#SampleRate",
27512757
"traits": {
2752-
"smithy.api#documentation": "<p>The audio frequency specified in Hz.</p>\n <p>The valid values for mp3 and ogg_vorbis are \"8000\", \"16000\", \"22050\",\n and \"24000\". The default value for standard voices is \"22050\". The default\n value for neural voices is \"24000\". The default value for long-form voices\n is \"24000\". The default value for generative voices is \"24000\".</p>\n <p>Valid values for pcm are \"8000\" and \"16000\" The default value is\n \"16000\". </p>"
2758+
"smithy.api#documentation": "<p>The audio frequency specified in Hz.</p>\n <p>The valid values for mp3 and ogg_vorbis are \"8000\", \"16000\", \"22050\", \"24000\", \"44100\" and \"48000\". The default value for standard voices is \"22050\". The default\n value for neural voices is \"24000\". The default value for long-form voices\n is \"24000\". The default value for generative voices is \"24000\".</p>\n <p>Valid values for pcm are \"8000\" and \"16000\" The default value is\n \"16000\". </p>"
27532759
}
27542760
},
27552761
"SpeechMarkTypes": {

0 commit comments

Comments
 (0)