aws-sdk-polly 1.7.0 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-polly.rb +1 -1
- data/lib/aws-sdk-polly/client.rb +54 -6
- data/lib/aws-sdk-polly/client_api.rb +12 -0
- data/lib/aws-sdk-polly/types.rb +87 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b94c2e8c59b56bbd6b4f59d5b16a3dde288dca1
|
4
|
+
data.tar.gz: ed77bb4364902d82917bec93fe81cf7c754a22e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60169689d81c168d67b23ee20af4ff378ec87c0b06e9f873bfdfd3a706e80b30ec6704812b3e02e487e379014e92e561bedaa69174ac856a98ebff76810b5b76
|
7
|
+
data.tar.gz: 9a5a4c7140c40582b66ebde1758b91485994c2a5e8fdf80c0d827c845dec9358f0e53bdac271c19b462cb2f8cf34ce83acef929f6a5925949ac9557ed65ef117
|
data/lib/aws-sdk-polly.rb
CHANGED
data/lib/aws-sdk-polly/client.rb
CHANGED
@@ -228,6 +228,14 @@ module Aws::Polly
|
|
228
228
|
# If you don't specify this optional parameter, all available voices
|
229
229
|
# are returned.
|
230
230
|
#
|
231
|
+
# @option params [Boolean] :include_additional_language_codes
|
232
|
+
# Boolean value indicating whether to return any bilingual voices that
|
233
|
+
# use the specified language as an additional language. For instance, if
|
234
|
+
# you request all languages that use US English (es-US), and there is an
|
235
|
+
# Italian voice that speaks both Italian (it-IT) and US English, that
|
236
|
+
# voice will be included if you specify `yes` but not if you specify
|
237
|
+
# `no`.
|
238
|
+
#
|
231
239
|
# @option params [String] :next_token
|
232
240
|
# An opaque pagination token returned from the previous `DescribeVoices`
|
233
241
|
# operation. If present, this indicates where to continue the listing.
|
@@ -277,7 +285,8 @@ module Aws::Polly
|
|
277
285
|
# @example Request syntax with placeholder values
|
278
286
|
#
|
279
287
|
# resp = client.describe_voices({
|
280
|
-
# language_code: "cy-GB", # accepts cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS, en-IN, en-US, es-ES, es-US, fr-CA, fr-FR, is-IS, it-IT,
|
288
|
+
# language_code: "cy-GB", # accepts cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS, en-IN, en-US, es-ES, 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
|
289
|
+
# include_additional_language_codes: false,
|
281
290
|
# next_token: "NextToken",
|
282
291
|
# })
|
283
292
|
#
|
@@ -286,9 +295,11 @@ module Aws::Polly
|
|
286
295
|
# resp.voices #=> Array
|
287
296
|
# resp.voices[0].gender #=> String, one of "Female", "Male"
|
288
297
|
# resp.voices[0].id #=> String, one of "Geraint", "Gwyneth", "Mads", "Naja", "Hans", "Marlene", "Nicole", "Russell", "Amy", "Brian", "Emma", "Raveena", "Ivy", "Joanna", "Joey", "Justin", "Kendra", "Kimberly", "Matthew", "Salli", "Conchita", "Enrique", "Miguel", "Penelope", "Chantal", "Celine", "Lea", "Mathieu", "Dora", "Karl", "Carla", "Giorgio", "Mizuki", "Liv", "Lotte", "Ruben", "Ewa", "Jacek", "Jan", "Maja", "Ricardo", "Vitoria", "Cristiano", "Ines", "Carmen", "Maxim", "Tatyana", "Astrid", "Filiz", "Vicki", "Takumi", "Seoyeon", "Aditi"
|
289
|
-
# resp.voices[0].language_code #=> String, one of "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "es-US", "fr-CA", "fr-FR", "is-IS", "it-IT", "
|
298
|
+
# resp.voices[0].language_code #=> String, one of "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "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"
|
290
299
|
# resp.voices[0].language_name #=> String
|
291
300
|
# resp.voices[0].name #=> String
|
301
|
+
# resp.voices[0].additional_language_codes #=> Array
|
302
|
+
# resp.voices[0].additional_language_codes[0] #=> String, one of "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "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"
|
292
303
|
# resp.next_token #=> String
|
293
304
|
#
|
294
305
|
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/DescribeVoices AWS API Documentation
|
@@ -351,7 +362,7 @@ module Aws::Polly
|
|
351
362
|
# resp.lexicon.content #=> String
|
352
363
|
# resp.lexicon.name #=> String
|
353
364
|
# resp.lexicon_attributes.alphabet #=> String
|
354
|
-
# resp.lexicon_attributes.language_code #=> String, one of "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "es-US", "fr-CA", "fr-FR", "is-IS", "it-IT", "
|
365
|
+
# resp.lexicon_attributes.language_code #=> String, one of "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "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"
|
355
366
|
# resp.lexicon_attributes.last_modified #=> Time
|
356
367
|
# resp.lexicon_attributes.lexicon_arn #=> String
|
357
368
|
# resp.lexicon_attributes.lexemes_count #=> Integer
|
@@ -401,6 +412,7 @@ module Aws::Polly
|
|
401
412
|
# resp.synthesis_task.speech_mark_types[0] #=> String, one of "sentence", "ssml", "viseme", "word"
|
402
413
|
# resp.synthesis_task.text_type #=> String, one of "ssml", "text"
|
403
414
|
# resp.synthesis_task.voice_id #=> String, one of "Geraint", "Gwyneth", "Mads", "Naja", "Hans", "Marlene", "Nicole", "Russell", "Amy", "Brian", "Emma", "Raveena", "Ivy", "Joanna", "Joey", "Justin", "Kendra", "Kimberly", "Matthew", "Salli", "Conchita", "Enrique", "Miguel", "Penelope", "Chantal", "Celine", "Lea", "Mathieu", "Dora", "Karl", "Carla", "Giorgio", "Mizuki", "Liv", "Lotte", "Ruben", "Ewa", "Jacek", "Jan", "Maja", "Ricardo", "Vitoria", "Cristiano", "Ines", "Carmen", "Maxim", "Tatyana", "Astrid", "Filiz", "Vicki", "Takumi", "Seoyeon", "Aditi"
|
415
|
+
# resp.synthesis_task.language_code #=> String, one of "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "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"
|
404
416
|
#
|
405
417
|
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/GetSpeechSynthesisTask AWS API Documentation
|
406
418
|
#
|
@@ -464,7 +476,7 @@ module Aws::Polly
|
|
464
476
|
# resp.lexicons #=> Array
|
465
477
|
# resp.lexicons[0].name #=> String
|
466
478
|
# resp.lexicons[0].attributes.alphabet #=> String
|
467
|
-
# resp.lexicons[0].attributes.language_code #=> String, one of "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "es-US", "fr-CA", "fr-FR", "is-IS", "it-IT", "
|
479
|
+
# resp.lexicons[0].attributes.language_code #=> String, one of "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "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"
|
468
480
|
# resp.lexicons[0].attributes.last_modified #=> Time
|
469
481
|
# resp.lexicons[0].attributes.lexicon_arn #=> String
|
470
482
|
# resp.lexicons[0].attributes.lexemes_count #=> Integer
|
@@ -526,6 +538,7 @@ module Aws::Polly
|
|
526
538
|
# resp.synthesis_tasks[0].speech_mark_types[0] #=> String, one of "sentence", "ssml", "viseme", "word"
|
527
539
|
# resp.synthesis_tasks[0].text_type #=> String, one of "ssml", "text"
|
528
540
|
# resp.synthesis_tasks[0].voice_id #=> String, one of "Geraint", "Gwyneth", "Mads", "Naja", "Hans", "Marlene", "Nicole", "Russell", "Amy", "Brian", "Emma", "Raveena", "Ivy", "Joanna", "Joey", "Justin", "Kendra", "Kimberly", "Matthew", "Salli", "Conchita", "Enrique", "Miguel", "Penelope", "Chantal", "Celine", "Lea", "Mathieu", "Dora", "Karl", "Carla", "Giorgio", "Mizuki", "Liv", "Lotte", "Ruben", "Ewa", "Jacek", "Jan", "Maja", "Ricardo", "Vitoria", "Cristiano", "Ines", "Carmen", "Maxim", "Tatyana", "Astrid", "Filiz", "Vicki", "Takumi", "Seoyeon", "Aditi"
|
541
|
+
# resp.synthesis_tasks[0].language_code #=> String, one of "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "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"
|
529
542
|
#
|
530
543
|
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/ListSpeechSynthesisTasks AWS API Documentation
|
531
544
|
#
|
@@ -611,7 +624,7 @@ module Aws::Polly
|
|
611
624
|
# Amazon S3 bucket name to which the output file will be saved.
|
612
625
|
#
|
613
626
|
# @option params [String] :output_s3_key_prefix
|
614
|
-
# The Amazon S3
|
627
|
+
# The Amazon S3 key prefix for the output speech file.
|
615
628
|
#
|
616
629
|
# @option params [String] :sample_rate
|
617
630
|
# The audio frequency specified in Hz.
|
@@ -640,6 +653,22 @@ module Aws::Polly
|
|
640
653
|
# @option params [required, String] :voice_id
|
641
654
|
# Voice ID to use for the synthesis.
|
642
655
|
#
|
656
|
+
# @option params [String] :language_code
|
657
|
+
# Optional language code for the Speech Synthesis request. This is only
|
658
|
+
# necessary if using a bilingual voice, such as Aditi, which can be used
|
659
|
+
# for either Indian English (en-IN) or Hindi (hi-IN).
|
660
|
+
#
|
661
|
+
# If a bilingual voice is used and no language code is specified, Amazon
|
662
|
+
# Polly will use the default language of the bilingual voice. The
|
663
|
+
# default language for any voice is the one returned by the
|
664
|
+
# [DescribeVoices][1] operation for the `LanguageCode` parameter. For
|
665
|
+
# example, if no language code is specified, Aditi will use Indian
|
666
|
+
# English rather than Hindi.
|
667
|
+
#
|
668
|
+
#
|
669
|
+
#
|
670
|
+
# [1]: https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html
|
671
|
+
#
|
643
672
|
# @return [Types::StartSpeechSynthesisTaskOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
644
673
|
#
|
645
674
|
# * {Types::StartSpeechSynthesisTaskOutput#synthesis_task #synthesis_task} => Types::SynthesisTask
|
@@ -657,6 +686,7 @@ module Aws::Polly
|
|
657
686
|
# text: "Text", # required
|
658
687
|
# text_type: "ssml", # accepts ssml, text
|
659
688
|
# voice_id: "Geraint", # required, accepts Geraint, Gwyneth, Mads, Naja, Hans, Marlene, Nicole, Russell, Amy, Brian, Emma, Raveena, Ivy, Joanna, Joey, Justin, Kendra, Kimberly, Matthew, Salli, Conchita, Enrique, Miguel, Penelope, Chantal, Celine, Lea, Mathieu, Dora, Karl, Carla, Giorgio, Mizuki, Liv, Lotte, Ruben, Ewa, Jacek, Jan, Maja, Ricardo, Vitoria, Cristiano, Ines, Carmen, Maxim, Tatyana, Astrid, Filiz, Vicki, Takumi, Seoyeon, Aditi
|
689
|
+
# language_code: "cy-GB", # accepts cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS, en-IN, en-US, es-ES, 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
|
660
690
|
# })
|
661
691
|
#
|
662
692
|
# @example Response structure
|
@@ -676,6 +706,7 @@ module Aws::Polly
|
|
676
706
|
# resp.synthesis_task.speech_mark_types[0] #=> String, one of "sentence", "ssml", "viseme", "word"
|
677
707
|
# resp.synthesis_task.text_type #=> String, one of "ssml", "text"
|
678
708
|
# resp.synthesis_task.voice_id #=> String, one of "Geraint", "Gwyneth", "Mads", "Naja", "Hans", "Marlene", "Nicole", "Russell", "Amy", "Brian", "Emma", "Raveena", "Ivy", "Joanna", "Joey", "Justin", "Kendra", "Kimberly", "Matthew", "Salli", "Conchita", "Enrique", "Miguel", "Penelope", "Chantal", "Celine", "Lea", "Mathieu", "Dora", "Karl", "Carla", "Giorgio", "Mizuki", "Liv", "Lotte", "Ruben", "Ewa", "Jacek", "Jan", "Maja", "Ricardo", "Vitoria", "Cristiano", "Ines", "Carmen", "Maxim", "Tatyana", "Astrid", "Filiz", "Vicki", "Takumi", "Seoyeon", "Aditi"
|
709
|
+
# resp.synthesis_task.language_code #=> String, one of "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "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"
|
679
710
|
#
|
680
711
|
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/StartSpeechSynthesisTask AWS API Documentation
|
681
712
|
#
|
@@ -743,6 +774,22 @@ module Aws::Polly
|
|
743
774
|
#
|
744
775
|
# [1]: http://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html
|
745
776
|
#
|
777
|
+
# @option params [String] :language_code
|
778
|
+
# Optional language code for the Synthesize Speech request. This is only
|
779
|
+
# necessary if using a bilingual voice, such as Aditi, which can be used
|
780
|
+
# for either Indian English (en-IN) or Hindi (hi-IN).
|
781
|
+
#
|
782
|
+
# If a bilingual voice is used and no language code is specified, Amazon
|
783
|
+
# Polly will use the default language of the bilingual voice. The
|
784
|
+
# default language for any voice is the one returned by the
|
785
|
+
# [DescribeVoices][1] operation for the `LanguageCode` parameter. For
|
786
|
+
# example, if no language code is specified, Aditi will use Indian
|
787
|
+
# English rather than Hindi.
|
788
|
+
#
|
789
|
+
#
|
790
|
+
#
|
791
|
+
# [1]: https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html
|
792
|
+
#
|
746
793
|
# @return [Types::SynthesizeSpeechOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
747
794
|
#
|
748
795
|
# * {Types::SynthesizeSpeechOutput#audio_stream #audio_stream} => IO
|
@@ -782,6 +829,7 @@ module Aws::Polly
|
|
782
829
|
# text: "Text", # required
|
783
830
|
# text_type: "ssml", # accepts ssml, text
|
784
831
|
# voice_id: "Geraint", # required, accepts Geraint, Gwyneth, Mads, Naja, Hans, Marlene, Nicole, Russell, Amy, Brian, Emma, Raveena, Ivy, Joanna, Joey, Justin, Kendra, Kimberly, Matthew, Salli, Conchita, Enrique, Miguel, Penelope, Chantal, Celine, Lea, Mathieu, Dora, Karl, Carla, Giorgio, Mizuki, Liv, Lotte, Ruben, Ewa, Jacek, Jan, Maja, Ricardo, Vitoria, Cristiano, Ines, Carmen, Maxim, Tatyana, Astrid, Filiz, Vicki, Takumi, Seoyeon, Aditi
|
832
|
+
# language_code: "cy-GB", # accepts cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS, en-IN, en-US, es-ES, 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
|
785
833
|
# })
|
786
834
|
#
|
787
835
|
# @example Response structure
|
@@ -812,7 +860,7 @@ module Aws::Polly
|
|
812
860
|
params: params,
|
813
861
|
config: config)
|
814
862
|
context[:gem_name] = 'aws-sdk-polly'
|
815
|
-
context[:gem_version] = '1.
|
863
|
+
context[:gem_version] = '1.8.0'
|
816
864
|
Seahorse::Client::Request.new(handlers, context)
|
817
865
|
end
|
818
866
|
|
@@ -25,6 +25,7 @@ module Aws::Polly
|
|
25
25
|
GetLexiconOutput = Shapes::StructureShape.new(name: 'GetLexiconOutput')
|
26
26
|
GetSpeechSynthesisTaskInput = Shapes::StructureShape.new(name: 'GetSpeechSynthesisTaskInput')
|
27
27
|
GetSpeechSynthesisTaskOutput = Shapes::StructureShape.new(name: 'GetSpeechSynthesisTaskOutput')
|
28
|
+
IncludeAdditionalLanguageCodes = Shapes::BooleanShape.new(name: 'IncludeAdditionalLanguageCodes')
|
28
29
|
InvalidLexiconException = Shapes::StructureShape.new(name: 'InvalidLexiconException')
|
29
30
|
InvalidNextTokenException = Shapes::StructureShape.new(name: 'InvalidNextTokenException')
|
30
31
|
InvalidS3BucketException = Shapes::StructureShape.new(name: 'InvalidS3BucketException')
|
@@ -34,7 +35,9 @@ module Aws::Polly
|
|
34
35
|
InvalidSsmlException = Shapes::StructureShape.new(name: 'InvalidSsmlException')
|
35
36
|
InvalidTaskIdException = Shapes::StructureShape.new(name: 'InvalidTaskIdException')
|
36
37
|
LanguageCode = Shapes::StringShape.new(name: 'LanguageCode')
|
38
|
+
LanguageCodeList = Shapes::ListShape.new(name: 'LanguageCodeList')
|
37
39
|
LanguageName = Shapes::StringShape.new(name: 'LanguageName')
|
40
|
+
LanguageNotSupportedException = Shapes::StructureShape.new(name: 'LanguageNotSupportedException')
|
38
41
|
LastModified = Shapes::TimestampShape.new(name: 'LastModified')
|
39
42
|
LexemesCount = Shapes::IntegerShape.new(name: 'LexemesCount')
|
40
43
|
Lexicon = Shapes::StructureShape.new(name: 'Lexicon')
|
@@ -96,6 +99,7 @@ module Aws::Polly
|
|
96
99
|
DeleteLexiconOutput.struct_class = Types::DeleteLexiconOutput
|
97
100
|
|
98
101
|
DescribeVoicesInput.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location: "querystring", location_name: "LanguageCode"))
|
102
|
+
DescribeVoicesInput.add_member(:include_additional_language_codes, Shapes::ShapeRef.new(shape: IncludeAdditionalLanguageCodes, location: "querystring", location_name: "IncludeAdditionalLanguageCodes"))
|
99
103
|
DescribeVoicesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "NextToken"))
|
100
104
|
DescribeVoicesInput.struct_class = Types::DescribeVoicesInput
|
101
105
|
|
@@ -116,6 +120,8 @@ module Aws::Polly
|
|
116
120
|
GetSpeechSynthesisTaskOutput.add_member(:synthesis_task, Shapes::ShapeRef.new(shape: SynthesisTask, location_name: "SynthesisTask"))
|
117
121
|
GetSpeechSynthesisTaskOutput.struct_class = Types::GetSpeechSynthesisTaskOutput
|
118
122
|
|
123
|
+
LanguageCodeList.member = Shapes::ShapeRef.new(shape: LanguageCode)
|
124
|
+
|
119
125
|
Lexicon.add_member(:content, Shapes::ShapeRef.new(shape: LexiconContent, location_name: "Content"))
|
120
126
|
Lexicon.add_member(:name, Shapes::ShapeRef.new(shape: LexiconName, location_name: "Name"))
|
121
127
|
Lexicon.struct_class = Types::Lexicon
|
@@ -170,6 +176,7 @@ module Aws::Polly
|
|
170
176
|
StartSpeechSynthesisTaskInput.add_member(:text, Shapes::ShapeRef.new(shape: Text, required: true, location_name: "Text"))
|
171
177
|
StartSpeechSynthesisTaskInput.add_member(:text_type, Shapes::ShapeRef.new(shape: TextType, location_name: "TextType"))
|
172
178
|
StartSpeechSynthesisTaskInput.add_member(:voice_id, Shapes::ShapeRef.new(shape: VoiceId, required: true, location_name: "VoiceId"))
|
179
|
+
StartSpeechSynthesisTaskInput.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
|
173
180
|
StartSpeechSynthesisTaskInput.struct_class = Types::StartSpeechSynthesisTaskInput
|
174
181
|
|
175
182
|
StartSpeechSynthesisTaskOutput.add_member(:synthesis_task, Shapes::ShapeRef.new(shape: SynthesisTask, location_name: "SynthesisTask"))
|
@@ -188,6 +195,7 @@ module Aws::Polly
|
|
188
195
|
SynthesisTask.add_member(:speech_mark_types, Shapes::ShapeRef.new(shape: SpeechMarkTypeList, location_name: "SpeechMarkTypes"))
|
189
196
|
SynthesisTask.add_member(:text_type, Shapes::ShapeRef.new(shape: TextType, location_name: "TextType"))
|
190
197
|
SynthesisTask.add_member(:voice_id, Shapes::ShapeRef.new(shape: VoiceId, location_name: "VoiceId"))
|
198
|
+
SynthesisTask.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
|
191
199
|
SynthesisTask.struct_class = Types::SynthesisTask
|
192
200
|
|
193
201
|
SynthesisTasks.member = Shapes::ShapeRef.new(shape: SynthesisTask)
|
@@ -199,6 +207,7 @@ module Aws::Polly
|
|
199
207
|
SynthesizeSpeechInput.add_member(:text, Shapes::ShapeRef.new(shape: Text, required: true, location_name: "Text"))
|
200
208
|
SynthesizeSpeechInput.add_member(:text_type, Shapes::ShapeRef.new(shape: TextType, location_name: "TextType"))
|
201
209
|
SynthesizeSpeechInput.add_member(:voice_id, Shapes::ShapeRef.new(shape: VoiceId, required: true, location_name: "VoiceId"))
|
210
|
+
SynthesizeSpeechInput.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
|
202
211
|
SynthesizeSpeechInput.struct_class = Types::SynthesizeSpeechInput
|
203
212
|
|
204
213
|
SynthesizeSpeechOutput.add_member(:audio_stream, Shapes::ShapeRef.new(shape: AudioStream, location_name: "AudioStream"))
|
@@ -213,6 +222,7 @@ module Aws::Polly
|
|
213
222
|
Voice.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
|
214
223
|
Voice.add_member(:language_name, Shapes::ShapeRef.new(shape: LanguageName, location_name: "LanguageName"))
|
215
224
|
Voice.add_member(:name, Shapes::ShapeRef.new(shape: VoiceName, location_name: "Name"))
|
225
|
+
Voice.add_member(:additional_language_codes, Shapes::ShapeRef.new(shape: LanguageCodeList, location_name: "AdditionalLanguageCodes"))
|
216
226
|
Voice.struct_class = Types::Voice
|
217
227
|
|
218
228
|
VoiceList.member = Shapes::ShapeRef.new(shape: Voice)
|
@@ -328,6 +338,7 @@ module Aws::Polly
|
|
328
338
|
o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
|
329
339
|
o.errors << Shapes::ShapeRef.new(shape: MarksNotSupportedForFormatException)
|
330
340
|
o.errors << Shapes::ShapeRef.new(shape: SsmlMarksNotSupportedForTextTypeException)
|
341
|
+
o.errors << Shapes::ShapeRef.new(shape: LanguageNotSupportedException)
|
331
342
|
end)
|
332
343
|
|
333
344
|
api.add_operation(:synthesize_speech, Seahorse::Model::Operation.new.tap do |o|
|
@@ -343,6 +354,7 @@ module Aws::Polly
|
|
343
354
|
o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
|
344
355
|
o.errors << Shapes::ShapeRef.new(shape: MarksNotSupportedForFormatException)
|
345
356
|
o.errors << Shapes::ShapeRef.new(shape: SsmlMarksNotSupportedForTextTypeException)
|
357
|
+
o.errors << Shapes::ShapeRef.new(shape: LanguageNotSupportedException)
|
346
358
|
end)
|
347
359
|
end
|
348
360
|
|
data/lib/aws-sdk-polly/types.rb
CHANGED
@@ -35,7 +35,8 @@ module Aws::Polly
|
|
35
35
|
# data as a hash:
|
36
36
|
#
|
37
37
|
# {
|
38
|
-
# language_code: "cy-GB", # accepts cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS, en-IN, en-US, es-ES, es-US, fr-CA, fr-FR, is-IS, it-IT,
|
38
|
+
# language_code: "cy-GB", # accepts cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS, en-IN, en-US, es-ES, 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
|
39
|
+
# include_additional_language_codes: false,
|
39
40
|
# next_token: "NextToken",
|
40
41
|
# }
|
41
42
|
#
|
@@ -46,6 +47,15 @@ module Aws::Polly
|
|
46
47
|
# available voices are returned.
|
47
48
|
# @return [String]
|
48
49
|
#
|
50
|
+
# @!attribute [rw] include_additional_language_codes
|
51
|
+
# Boolean value indicating whether to return any bilingual voices that
|
52
|
+
# use the specified language as an additional language. For instance,
|
53
|
+
# if you request all languages that use US English (es-US), and there
|
54
|
+
# is an Italian voice that speaks both Italian (it-IT) and US English,
|
55
|
+
# that voice will be included if you specify `yes` but not if you
|
56
|
+
# specify `no`.
|
57
|
+
# @return [Boolean]
|
58
|
+
#
|
49
59
|
# @!attribute [rw] next_token
|
50
60
|
# An opaque pagination token returned from the previous
|
51
61
|
# `DescribeVoices` operation. If present, this indicates where to
|
@@ -56,6 +66,7 @@ module Aws::Polly
|
|
56
66
|
#
|
57
67
|
class DescribeVoicesInput < Struct.new(
|
58
68
|
:language_code,
|
69
|
+
:include_additional_language_codes,
|
59
70
|
:next_token)
|
60
71
|
include Aws::Structure
|
61
72
|
end
|
@@ -313,9 +324,9 @@ module Aws::Polly
|
|
313
324
|
# @return [String]
|
314
325
|
#
|
315
326
|
# @!attribute [rw] synthesis_tasks
|
316
|
-
# SynthesisTask
|
317
|
-
# task in the list request, including output format,
|
318
|
-
# task status, and so on.
|
327
|
+
# List of SynthesisTask objects that provides information from the
|
328
|
+
# specified task in the list request, including output format,
|
329
|
+
# creation time, task status, and so on.
|
319
330
|
# @return [Array<Types::SynthesisTask>]
|
320
331
|
#
|
321
332
|
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/ListSpeechSynthesisTasksOutput AWS API Documentation
|
@@ -370,6 +381,7 @@ module Aws::Polly
|
|
370
381
|
# text: "Text", # required
|
371
382
|
# text_type: "ssml", # accepts ssml, text
|
372
383
|
# voice_id: "Geraint", # required, accepts Geraint, Gwyneth, Mads, Naja, Hans, Marlene, Nicole, Russell, Amy, Brian, Emma, Raveena, Ivy, Joanna, Joey, Justin, Kendra, Kimberly, Matthew, Salli, Conchita, Enrique, Miguel, Penelope, Chantal, Celine, Lea, Mathieu, Dora, Karl, Carla, Giorgio, Mizuki, Liv, Lotte, Ruben, Ewa, Jacek, Jan, Maja, Ricardo, Vitoria, Cristiano, Ines, Carmen, Maxim, Tatyana, Astrid, Filiz, Vicki, Takumi, Seoyeon, Aditi
|
384
|
+
# language_code: "cy-GB", # accepts cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS, en-IN, en-US, es-ES, 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
|
373
385
|
# }
|
374
386
|
#
|
375
387
|
# @!attribute [rw] lexicon_names
|
@@ -389,7 +401,7 @@ module Aws::Polly
|
|
389
401
|
# @return [String]
|
390
402
|
#
|
391
403
|
# @!attribute [rw] output_s3_key_prefix
|
392
|
-
# The Amazon S3
|
404
|
+
# The Amazon S3 key prefix for the output speech file.
|
393
405
|
# @return [String]
|
394
406
|
#
|
395
407
|
# @!attribute [rw] sample_rate
|
@@ -425,6 +437,23 @@ module Aws::Polly
|
|
425
437
|
# Voice ID to use for the synthesis.
|
426
438
|
# @return [String]
|
427
439
|
#
|
440
|
+
# @!attribute [rw] language_code
|
441
|
+
# Optional language code for the Speech Synthesis request. This is
|
442
|
+
# only necessary if using a bilingual voice, such as Aditi, which can
|
443
|
+
# be used for either Indian English (en-IN) or Hindi (hi-IN).
|
444
|
+
#
|
445
|
+
# If a bilingual voice is used and no language code is specified,
|
446
|
+
# Amazon Polly will use the default language of the bilingual voice.
|
447
|
+
# The default language for any voice is the one returned by the
|
448
|
+
# [DescribeVoices][1] operation for the `LanguageCode` parameter. For
|
449
|
+
# example, if no language code is specified, Aditi will use Indian
|
450
|
+
# English rather than Hindi.
|
451
|
+
#
|
452
|
+
#
|
453
|
+
#
|
454
|
+
# [1]: https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html
|
455
|
+
# @return [String]
|
456
|
+
#
|
428
457
|
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/StartSpeechSynthesisTaskInput AWS API Documentation
|
429
458
|
#
|
430
459
|
class StartSpeechSynthesisTaskInput < Struct.new(
|
@@ -437,7 +466,8 @@ module Aws::Polly
|
|
437
466
|
:speech_mark_types,
|
438
467
|
:text,
|
439
468
|
:text_type,
|
440
|
-
:voice_id
|
469
|
+
:voice_id,
|
470
|
+
:language_code)
|
441
471
|
include Aws::Structure
|
442
472
|
end
|
443
473
|
|
@@ -521,6 +551,23 @@ module Aws::Polly
|
|
521
551
|
# Voice ID to use for the synthesis.
|
522
552
|
# @return [String]
|
523
553
|
#
|
554
|
+
# @!attribute [rw] language_code
|
555
|
+
# Optional language code for a synthesis task. This is only necessary
|
556
|
+
# if using a bilingual voice, such as Aditi, which can be used for
|
557
|
+
# either Indian English (en-IN) or Hindi (hi-IN).
|
558
|
+
#
|
559
|
+
# If a bilingual voice is used and no language code is specified,
|
560
|
+
# Amazon Polly will use the default language of the bilingual voice.
|
561
|
+
# The default language for any voice is the one returned by the
|
562
|
+
# [DescribeVoices][1] operation for the `LanguageCode` parameter. For
|
563
|
+
# example, if no language code is specified, Aditi will use Indian
|
564
|
+
# English rather than Hindi.
|
565
|
+
#
|
566
|
+
#
|
567
|
+
#
|
568
|
+
# [1]: https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html
|
569
|
+
# @return [String]
|
570
|
+
#
|
524
571
|
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/SynthesisTask AWS API Documentation
|
525
572
|
#
|
526
573
|
class SynthesisTask < Struct.new(
|
@@ -536,7 +583,8 @@ module Aws::Polly
|
|
536
583
|
:sample_rate,
|
537
584
|
:speech_mark_types,
|
538
585
|
:text_type,
|
539
|
-
:voice_id
|
586
|
+
:voice_id,
|
587
|
+
:language_code)
|
540
588
|
include Aws::Structure
|
541
589
|
end
|
542
590
|
|
@@ -551,6 +599,7 @@ module Aws::Polly
|
|
551
599
|
# text: "Text", # required
|
552
600
|
# text_type: "ssml", # accepts ssml, text
|
553
601
|
# voice_id: "Geraint", # required, accepts Geraint, Gwyneth, Mads, Naja, Hans, Marlene, Nicole, Russell, Amy, Brian, Emma, Raveena, Ivy, Joanna, Joey, Justin, Kendra, Kimberly, Matthew, Salli, Conchita, Enrique, Miguel, Penelope, Chantal, Celine, Lea, Mathieu, Dora, Karl, Carla, Giorgio, Mizuki, Liv, Lotte, Ruben, Ewa, Jacek, Jan, Maja, Ricardo, Vitoria, Cristiano, Ines, Carmen, Maxim, Tatyana, Astrid, Filiz, Vicki, Takumi, Seoyeon, Aditi
|
602
|
+
# language_code: "cy-GB", # accepts cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS, en-IN, en-US, es-ES, 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
|
554
603
|
# }
|
555
604
|
#
|
556
605
|
# @!attribute [rw] lexicon_names
|
@@ -607,6 +656,23 @@ module Aws::Polly
|
|
607
656
|
# [1]: http://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html
|
608
657
|
# @return [String]
|
609
658
|
#
|
659
|
+
# @!attribute [rw] language_code
|
660
|
+
# Optional language code for the Synthesize Speech request. This is
|
661
|
+
# only necessary if using a bilingual voice, such as Aditi, which can
|
662
|
+
# be used for either Indian English (en-IN) or Hindi (hi-IN).
|
663
|
+
#
|
664
|
+
# If a bilingual voice is used and no language code is specified,
|
665
|
+
# Amazon Polly will use the default language of the bilingual voice.
|
666
|
+
# The default language for any voice is the one returned by the
|
667
|
+
# [DescribeVoices][1] operation for the `LanguageCode` parameter. For
|
668
|
+
# example, if no language code is specified, Aditi will use Indian
|
669
|
+
# English rather than Hindi.
|
670
|
+
#
|
671
|
+
#
|
672
|
+
#
|
673
|
+
# [1]: https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html
|
674
|
+
# @return [String]
|
675
|
+
#
|
610
676
|
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/SynthesizeSpeechInput AWS API Documentation
|
611
677
|
#
|
612
678
|
class SynthesizeSpeechInput < Struct.new(
|
@@ -616,7 +682,8 @@ module Aws::Polly
|
|
616
682
|
:speech_mark_types,
|
617
683
|
:text,
|
618
684
|
:text_type,
|
619
|
-
:voice_id
|
685
|
+
:voice_id,
|
686
|
+
:language_code)
|
620
687
|
include Aws::Structure
|
621
688
|
end
|
622
689
|
|
@@ -680,6 +747,16 @@ module Aws::Polly
|
|
680
747
|
# application.
|
681
748
|
# @return [String]
|
682
749
|
#
|
750
|
+
# @!attribute [rw] additional_language_codes
|
751
|
+
# Additional codes for languages available for the specified voice in
|
752
|
+
# addition to its default language.
|
753
|
+
#
|
754
|
+
# For example, the default language for Aditi is Indian English
|
755
|
+
# (en-IN) because it was first used for that language. Since Aditi is
|
756
|
+
# bilingual and fluent in both Indian English and Hindi, this
|
757
|
+
# parameter would show the code `hi-IN`.
|
758
|
+
# @return [Array<String>]
|
759
|
+
#
|
683
760
|
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/Voice AWS API Documentation
|
684
761
|
#
|
685
762
|
class Voice < Struct.new(
|
@@ -687,7 +764,8 @@ module Aws::Polly
|
|
687
764
|
:id,
|
688
765
|
:language_code,
|
689
766
|
:language_name,
|
690
|
-
:name
|
767
|
+
:name,
|
768
|
+
:additional_language_codes)
|
691
769
|
include Aws::Structure
|
692
770
|
end
|
693
771
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-polly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|