Skip to content

Commit dba9471

Browse files
author
awstools
committed
feat(client-polly): Add 5 new neural voices - Sergio (es-ES), Andres (es-MX), Remi (fr-FR), Adriano (it-IT) and Thiago (pt-BR).
1 parent efa3ec6 commit dba9471

File tree

5 files changed

+48
-30
lines changed

5 files changed

+48
-30
lines changed

clients/client-polly/src/Polly.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,13 @@ export class Polly extends PollyClient {
8989
* requesting speech synthesis. Each voice speaks a specified language, is
9090
* either male or female, and is identified by an ID, which is the ASCII
9191
* version of the voice name. </p>
92-
*
9392
* <p>When synthesizing speech ( <code>SynthesizeSpeech</code> ), you
9493
* provide the voice ID for the voice you want from the list of voices
9594
* returned by <code>DescribeVoices</code>.</p>
96-
*
9795
* <p>For example, you want your news reader application to read news in
9896
* a specific language, but giving a user the option to choose the voice.
9997
* Using the <code>DescribeVoices</code> operation you can provide the user
10098
* with a list of available voices to select from.</p>
101-
*
10299
* <p> You can optionally specify a language code to filter the available
103100
* voices. For example, if you specify <code>en-US</code>, the operation
104101
* returns a list of all available US English voices. </p>

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,13 @@ export interface DescribeVoicesCommandOutput extends DescribeVoicesOutput, __Met
3333
* requesting speech synthesis. Each voice speaks a specified language, is
3434
* either male or female, and is identified by an ID, which is the ASCII
3535
* version of the voice name. </p>
36-
*
3736
* <p>When synthesizing speech ( <code>SynthesizeSpeech</code> ), you
3837
* provide the voice ID for the voice you want from the list of voices
3938
* returned by <code>DescribeVoices</code>.</p>
40-
*
4139
* <p>For example, you want your news reader application to read news in
4240
* a specific language, but giving a user the option to choose the voice.
4341
* Using the <code>DescribeVoices</code> operation you can provide the user
4442
* with a list of available voices to select from.</p>
45-
*
4643
* <p> You can optionally specify a language code to filter the available
4744
* voices. For example, if you specify <code>en-US</code>, the operation
4845
* returns a list of all available US English voices. </p>

clients/client-polly/src/endpoint/ruleset.ts

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints";
66
or see "smithy.rules#endpointRuleSet"
77
in codegen/sdk-codegen/aws-models/polly.json */
88

9-
const r="fn",
10-
s="argv",
11-
t="ref";
9+
const q="fn",
10+
r="argv",
11+
s="ref";
1212
const a=true,
1313
b=false,
1414
c="String",
@@ -17,14 +17,13 @@ e="tree",
1717
f="error",
1818
g="endpoint",
1919
h={"required":true,"default":false,"type":"Boolean"},
20-
i={[t]:"Endpoint"},
21-
j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]},
22-
k={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]},
20+
i={[s]:"Endpoint"},
21+
j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]},
22+
k={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]},
2323
l={},
24-
m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]},
25-
n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsDualStack"]}]},
26-
o=[i],
27-
p=[j],
28-
q=[k];
29-
const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://polly-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://polly-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://polly.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://polly.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]};
24+
m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]},
25+
n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsDualStack"]}]},
26+
o=[j],
27+
p=[k];
28+
const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://polly-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://polly-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://polly.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://polly.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]};
3029
export const ruleSet: RuleSetObject = _data;

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ export enum Gender {
140140

141141
export enum VoiceId {
142142
Aditi = "Aditi",
143+
Adriano = "Adriano",
143144
Amy = "Amy",
145+
Andres = "Andres",
144146
Aria = "Aria",
145147
Arlet = "Arlet",
146148
Arthur = "Arthur",
@@ -206,14 +208,17 @@ export enum VoiceId {
206208
Pedro = "Pedro",
207209
Penelope = "Penelope",
208210
Raveena = "Raveena",
211+
Remi = "Remi",
209212
Ricardo = "Ricardo",
210213
Ruben = "Ruben",
211214
Russell = "Russell",
212215
Salli = "Salli",
213216
Seoyeon = "Seoyeon",
217+
Sergio = "Sergio",
214218
Suvi = "Suvi",
215219
Takumi = "Takumi",
216220
Tatyana = "Tatyana",
221+
Thiago = "Thiago",
217222
Vicki = "Vicki",
218223
Vitoria = "Vitoria",
219224
Zeina = "Zeina",
@@ -1092,7 +1097,6 @@ export interface SynthesizeSpeechInput {
10921097
* <p>Valid Values: <code>standard</code> | <code>neural</code>
10931098
* </p>
10941099
* <p>Required: Yes</p>
1095-
*
10961100
* <p>
10971101
* <b>Standard voices</b>
10981102
* </p>

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

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
}
104104
],
105105
"traits": {
106-
"smithy.api#documentation": "<p>Returns the list of voices that are available for use when\n requesting speech synthesis. Each voice speaks a specified language, is\n either male or female, and is identified by an ID, which is the ASCII\n version of the voice name. </p>\n\n <p>When synthesizing speech ( <code>SynthesizeSpeech</code> ), you\n provide the voice ID for the voice you want from the list of voices\n returned by <code>DescribeVoices</code>.</p>\n\n <p>For example, you want your news reader application to read news in\n a specific language, but giving a user the option to choose the voice.\n Using the <code>DescribeVoices</code> operation you can provide the user\n with a list of available voices to select from.</p>\n\n <p> You can optionally specify a language code to filter the available\n voices. For example, if you specify <code>en-US</code>, the operation\n returns a list of all available US English voices. </p>\n <p>This operation requires permissions to perform the\n <code>polly:DescribeVoices</code> action.</p>",
106+
"smithy.api#documentation": "<p>Returns the list of voices that are available for use when\n requesting speech synthesis. Each voice speaks a specified language, is\n either male or female, and is identified by an ID, which is the ASCII\n version of the voice name. </p>\n <p>When synthesizing speech ( <code>SynthesizeSpeech</code> ), you\n provide the voice ID for the voice you want from the list of voices\n returned by <code>DescribeVoices</code>.</p>\n <p>For example, you want your news reader application to read news in\n a specific language, but giving a user the option to choose the voice.\n Using the <code>DescribeVoices</code> operation you can provide the user\n with a list of available voices to select from.</p>\n <p> You can optionally specify a language code to filter the available\n voices. For example, if you specify <code>en-US</code>, the operation\n returns a list of all available US English voices. </p>\n <p>This operation requires permissions to perform the\n <code>polly:DescribeVoices</code> action.</p>",
107107
"smithy.api#http": {
108108
"method": "GET",
109109
"uri": "/v1/voices",
@@ -1163,15 +1163,6 @@
11631163
"ref": "Endpoint"
11641164
}
11651165
]
1166-
},
1167-
{
1168-
"fn": "parseURL",
1169-
"argv": [
1170-
{
1171-
"ref": "Endpoint"
1172-
}
1173-
],
1174-
"assign": "url"
11751166
}
11761167
],
11771168
"type": "tree",
@@ -3030,7 +3021,7 @@
30303021
"Engine": {
30313022
"target": "com.amazonaws.polly#Engine",
30323023
"traits": {
3033-
"smithy.api#documentation": "<p>Specifies the engine (<code>standard</code> or <code>neural</code>)\n for Amazon Polly to use when processing input text for speech synthesis. For\n information on Amazon Polly voices and which voices are available in\n 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>\n <p>\n <b>NTTS-only voices</b>\n </p>\n <p>When using NTTS-only voices such as Kevin (en-US), this parameter is\n required and must be set to <code>neural</code>. If the engine is not\n specified, or is set to <code>standard</code>, this will result in an\n error. </p>\n <p>Type: String</p>\n <p>Valid Values: <code>standard</code> | <code>neural</code>\n </p>\n <p>Required: Yes</p>\n\n <p>\n <b>Standard voices</b>\n </p>\n <p>For standard voices, this is not required; the engine parameter\n defaults to <code>standard</code>. If the engine is not specified, or is\n set to <code>standard</code> and an NTTS-only voice is selected, this will\n result in an error. </p>"
3024+
"smithy.api#documentation": "<p>Specifies the engine (<code>standard</code> or <code>neural</code>)\n for Amazon Polly to use when processing input text for speech synthesis. For\n information on Amazon Polly voices and which voices are available in\n 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>\n <p>\n <b>NTTS-only voices</b>\n </p>\n <p>When using NTTS-only voices such as Kevin (en-US), this parameter is\n required and must be set to <code>neural</code>. If the engine is not\n specified, or is set to <code>standard</code>, this will result in an\n error. </p>\n <p>Type: String</p>\n <p>Valid Values: <code>standard</code> | <code>neural</code>\n </p>\n <p>Required: Yes</p>\n <p>\n <b>Standard voices</b>\n </p>\n <p>For standard voices, this is not required; the engine parameter\n defaults to <code>standard</code>. If the engine is not specified, or is\n set to <code>standard</code> and an NTTS-only voice is selected, this will\n result in an error. </p>"
30343025
}
30353026
},
30363027
"LanguageCode": {
@@ -3737,6 +3728,36 @@
37373728
"traits": {
37383729
"smithy.api#enumValue": "Hala"
37393730
}
3731+
},
3732+
"Andres": {
3733+
"target": "smithy.api#Unit",
3734+
"traits": {
3735+
"smithy.api#enumValue": "Andres"
3736+
}
3737+
},
3738+
"Sergio": {
3739+
"target": "smithy.api#Unit",
3740+
"traits": {
3741+
"smithy.api#enumValue": "Sergio"
3742+
}
3743+
},
3744+
"Remi": {
3745+
"target": "smithy.api#Unit",
3746+
"traits": {
3747+
"smithy.api#enumValue": "Remi"
3748+
}
3749+
},
3750+
"Adriano": {
3751+
"target": "smithy.api#Unit",
3752+
"traits": {
3753+
"smithy.api#enumValue": "Adriano"
3754+
}
3755+
},
3756+
"Thiago": {
3757+
"target": "smithy.api#Unit",
3758+
"traits": {
3759+
"smithy.api#enumValue": "Thiago"
3760+
}
37403761
}
37413762
}
37423763
},

0 commit comments

Comments
 (0)