Skip to content

Commit e2c1840

Browse files
author
AWS
committed
Amazon Polly Update: Add new engine - generative - that builds the most expressive conversational voices.
1 parent edf0617 commit e2c1840

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Polly",
4+
"contributor": "",
5+
"description": "Add new engine - generative - that builds the most expressive conversational voices."
6+
}

services/polly/src/main/resources/codegen-resources/service-2.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
"members":{
200200
"Engine":{
201201
"shape":"Engine",
202-
"documentation":"<p>Specifies the engine (<code>standard</code>, <code>neural</code> or <code>long-form</code>) used by Amazon Polly when processing input text for speech synthesis. </p>",
202+
"documentation":"<p>Specifies the engine (<code>standard</code>, <code>neural</code>, <code>long-form</code> or <code>generative</code>) used by Amazon Polly when processing input text for speech synthesis. </p>",
203203
"location":"querystring",
204204
"locationName":"Engine"
205205
},
@@ -241,7 +241,8 @@
241241
"enum":[
242242
"standard",
243243
"neural",
244-
"long-form"
244+
"long-form",
245+
"generative"
245246
]
246247
},
247248
"EngineList":{
@@ -692,7 +693,7 @@
692693
"Size":{"type":"integer"},
693694
"SnsTopicArn":{
694695
"type":"string",
695-
"pattern":"^arn:aws(-(cn|iso(-b)?|us-gov))?:sns:[a-z0-9_-]{1,50}:\\d{12}:[a-zA-Z0-9_-]{1,256}$"
696+
"pattern":"^arn:aws(-(cn|iso(-b)?|us-gov))?:sns:[a-z0-9_-]{1,50}:\\d{12}:[a-zA-Z0-9_-]{1,251}([a-zA-Z0-9_-]{0,5}|\\.fifo)$"
696697
},
697698
"SpeechMarkType":{
698699
"type":"string",
@@ -728,7 +729,7 @@
728729
"members":{
729730
"Engine":{
730731
"shape":"Engine",
731-
"documentation":"<p>Specifies the engine (<code>standard</code>, <code>neural</code> or <code>long-form</code>) for Amazon Polly to use when processing input text for speech synthesis. Using a voice that is not supported for the engine selected will result in an error.</p>"
732+
"documentation":"<p>Specifies the engine (<code>standard</code>, <code>neural</code>, <code>long-form</code> or <code>generative</code>) for Amazon Polly to use when processing input text for speech synthesis. Using a voice that is not supported for the engine selected will result in an error.</p>"
732733
},
733734
"LanguageCode":{
734735
"shape":"LanguageCode",
@@ -752,7 +753,7 @@
752753
},
753754
"SampleRate":{
754755
"shape":"SampleRate",
755-
"documentation":"<p>The audio frequency specified in Hz.</p> <p>The valid values for mp3 and ogg_vorbis are \"8000\", \"16000\", \"22050\", and \"24000\". The default value for standard voices is \"22050\". The default value for neural voices is \"24000\". The default value for long-form voices is \"24000\".</p> <p>Valid values for pcm are \"8000\" and \"16000\" The default value is \"16000\". </p>"
756+
"documentation":"<p>The audio frequency specified in Hz.</p> <p>The valid values for mp3 and ogg_vorbis are \"8000\", \"16000\", \"22050\", and \"24000\". The default value for standard voices is \"22050\". The default value for neural voices is \"24000\". The default value for long-form voices is \"24000\". The default value for generative voices is \"24000\".</p> <p>Valid values for pcm are \"8000\" and \"16000\" The default value is \"16000\". </p>"
756757
},
757758
"SnsTopicArn":{
758759
"shape":"SnsTopicArn",
@@ -790,7 +791,7 @@
790791
"members":{
791792
"Engine":{
792793
"shape":"Engine",
793-
"documentation":"<p>Specifies the engine (<code>standard</code>, <code>neural</code> or <code>long-form</code>) for Amazon Polly to use when processing input text for speech synthesis. Using a voice that is not supported for the engine selected will result in an error.</p>"
794+
"documentation":"<p>Specifies the engine (<code>standard</code>, <code>neural</code>, <code>long-form</code> or <code>generative</code>) for Amazon Polly to use when processing input text for speech synthesis. Using a voice that is not supported for the engine selected will result in an error.</p>"
794795
},
795796
"TaskId":{
796797
"shape":"TaskId",
@@ -830,7 +831,7 @@
830831
},
831832
"SampleRate":{
832833
"shape":"SampleRate",
833-
"documentation":"<p>The audio frequency specified in Hz.</p> <p>The valid values for mp3 and ogg_vorbis are \"8000\", \"16000\", \"22050\", and \"24000\". The default value for standard voices is \"22050\". The default value for neural voices is \"24000\". The default value for long-form voices is \"24000\".</p> <p>Valid values for pcm are \"8000\" and \"16000\" The default value is \"16000\". </p>"
834+
"documentation":"<p>The audio frequency specified in Hz.</p> <p>The valid values for mp3 and ogg_vorbis are \"8000\", \"16000\", \"22050\", and \"24000\". The default value for standard voices is \"22050\". The default value for neural voices is \"24000\". The default value for long-form voices is \"24000\". The default value for generative voices is \"24000\".</p> <p>Valid values for pcm are \"8000\" and \"16000\" The default value is \"16000\". </p>"
834835
},
835836
"SpeechMarkTypes":{
836837
"shape":"SpeechMarkTypeList",
@@ -874,7 +875,7 @@
874875
"members":{
875876
"Engine":{
876877
"shape":"Engine",
877-
"documentation":"<p>Specifies the engine (<code>standard</code>, <code>neural</code> or <code>long-form</code>) for Amazon Polly to use when processing input text for speech synthesis. For information on 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> <p> <b>NTTS-only voices</b> </p> <p>When using NTTS-only voices such as Kevin (en-US), this parameter is required and must be set to <code>neural</code>. If the engine is not specified, or is set to <code>standard</code>, this will result in an error. </p> <p> <b>long-form-only voices</b> </p> <p>When using long-form-only voices such as Danielle (en-US), this parameter is required and must be set to <code>long-form</code>. If the engine is not specified, or is set to <code>standard</code> or <code>neural</code>, this will result in an error. </p> <p>Type: String</p> <p>Valid Values: <code>standard</code> | <code>neural</code> | <code>long-form</code> </p> <p>Required: Yes</p> <p> <b>Standard voices</b> </p> <p>For standard voices, this is not required; the engine parameter defaults to <code>standard</code>. If the engine is not specified, or is set to <code>standard</code> and an NTTS-only voice is selected, this will result in an error. </p>"
878+
"documentation":"<p>Specifies the engine (<code>standard</code>, <code>neural</code>, <code>long-form</code>, or <code>generative</code>) for Amazon Polly to use when processing input text for speech synthesis. Provide an engine that is supported by the voice you select. If you don't provide an engine, the standard engine is selected by default. If a chosen voice isn't supported by the standard engine, this will result in an error. For information on 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> <p>Type: String</p> <p>Valid Values: <code>standard</code> | <code>neural</code> | <code>long-form</code> | <code>generative</code> </p> <p>Required: Yes</p>"
878879
},
879880
"LanguageCode":{
880881
"shape":"LanguageCode",
@@ -890,7 +891,7 @@
890891
},
891892
"SampleRate":{
892893
"shape":"SampleRate",
893-
"documentation":"<p>The audio frequency specified in Hz.</p> <p>The valid values for mp3 and ogg_vorbis are \"8000\", \"16000\", \"22050\", and \"24000\". The default value for standard voices is \"22050\". The default value for neural voices is \"24000\". The default value for long-form voices is \"24000\".</p> <p>Valid values for pcm are \"8000\" and \"16000\" The default value is \"16000\". </p>"
894+
"documentation":"<p>The audio frequency specified in Hz.</p> <p>The valid values for mp3 and ogg_vorbis are \"8000\", \"16000\", \"22050\", and \"24000\". The default value for standard voices is \"22050\". The default value for neural voices is \"24000\". The default value for long-form voices is \"24000\". The default value for generative voices is \"24000\".</p> <p>Valid values for pcm are \"8000\" and \"16000\" The default value is \"16000\". </p>"
894895
},
895896
"SpeechMarkTypes":{
896897
"shape":"SpeechMarkTypeList",
@@ -1010,7 +1011,7 @@
10101011
},
10111012
"SupportedEngines":{
10121013
"shape":"EngineList",
1013-
"documentation":"<p>Specifies which engines (<code>standard</code>, <code>neural</code> or <code>long-form</code>) are supported by a given voice.</p>"
1014+
"documentation":"<p>Specifies which engines (<code>standard</code>, <code>neural</code>, <code>long-form</code> or <code>generative</code>) are supported by a given voice.</p>"
10141015
}
10151016
},
10161017
"documentation":"<p>Description of the voice.</p>"

0 commit comments

Comments
 (0)