aws-sdk-polly 1.25.0 → 1.26.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d9141e8c162aec902cf22a02ce121d306317c8a
4
- data.tar.gz: e2fb9752e20c0c29ae10fffd78623e8e021d3c82
3
+ metadata.gz: af077826fae3513529a2f0f772a149aed145f22d
4
+ data.tar.gz: 73adfe9fb626412b7d9696a3747baff4914a22eb
5
5
  SHA512:
6
- metadata.gz: fdfafedafe503ff07e8d89bbdd864df18c17d72541845f4ebd1152766bda4ec0f189823402ee5c69784d39fd1f37f097edccd3ce49779cf6b79b69f347d844be
7
- data.tar.gz: 83f9bd7b5664d9eaa710d4d187fa7757f18a199c4747f29cacb9330ffaa59353d79d364308c181ca8dae6d542623edbf219dc5499b90f1691082157e6ebdd0c9
6
+ metadata.gz: 55b0ae5e899ceb478f150cfbf3a57beb3c8624dc624352f7a269a3e57bd854bd3408d1ccd4955e212ebf26dc16feb66609d7eb36de03f86da5b459c431a7dca7
7
+ data.tar.gz: '04889a8a858708fbc66c986b0220e4e9e3599a9343afd9ae576995ffb080180252837dda292a4f55c23eca2240e976378b6fe118077286b3f3403c2a8f313509'
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-polly/customizations'
42
42
  # @service
43
43
  module Aws::Polly
44
44
 
45
- GEM_VERSION = '1.25.0'
45
+ GEM_VERSION = '1.26.0'
46
46
 
47
47
  end
@@ -263,7 +263,7 @@ module Aws::Polly
263
263
  #
264
264
  #
265
265
  #
266
- # [1]: http://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html
266
+ # [1]: https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html
267
267
  #
268
268
  # @option params [required, String] :name
269
269
  # The name of the lexicon to delete. Must be an existing lexicon in the
@@ -320,6 +320,10 @@ module Aws::Polly
320
320
  # This operation requires permissions to perform the
321
321
  # `polly:DescribeVoices` action.
322
322
  #
323
+ # @option params [String] :engine
324
+ # Specifies the engine (`standard` or `neural`) used by Amazon Polly
325
+ # when processing input text for speech synthesis.
326
+ #
323
327
  # @option params [String] :language_code
324
328
  # The language identification tag (ISO 639 code for the language
325
329
  # name-ISO 3166 country code) for filtering the list of voices returned.
@@ -383,6 +387,7 @@ module Aws::Polly
383
387
  # @example Request syntax with placeholder values
384
388
  #
385
389
  # resp = client.describe_voices({
390
+ # engine: "standard", # accepts standard, neural
386
391
  # language_code: "arb", # accepts 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
387
392
  # include_additional_language_codes: false,
388
393
  # next_token: "NextToken",
@@ -398,6 +403,8 @@ module Aws::Polly
398
403
  # resp.voices[0].name #=> String
399
404
  # resp.voices[0].additional_language_codes #=> Array
400
405
  # resp.voices[0].additional_language_codes[0] #=> String, one of "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"
406
+ # resp.voices[0].supported_engines #=> Array
407
+ # resp.voices[0].supported_engines[0] #=> String, one of "standard", "neural"
401
408
  # resp.next_token #=> String
402
409
  #
403
410
  # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/DescribeVoices AWS API Documentation
@@ -414,7 +421,7 @@ module Aws::Polly
414
421
  #
415
422
  #
416
423
  #
417
- # [1]: http://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html
424
+ # [1]: https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html
418
425
  #
419
426
  # @option params [required, String] :name
420
427
  # Name of the lexicon.
@@ -495,6 +502,7 @@ module Aws::Polly
495
502
  #
496
503
  # @example Response structure
497
504
  #
505
+ # resp.synthesis_task.engine #=> String, one of "standard", "neural"
498
506
  # resp.synthesis_task.task_id #=> String
499
507
  # resp.synthesis_task.task_status #=> String, one of "scheduled", "inProgress", "completed", "failed"
500
508
  # resp.synthesis_task.task_status_reason #=> String
@@ -526,7 +534,7 @@ module Aws::Polly
526
534
  #
527
535
  #
528
536
  #
529
- # [1]: http://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html
537
+ # [1]: https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html
530
538
  #
531
539
  # @option params [String] :next_token
532
540
  # An opaque pagination token returned from previous `ListLexicons`
@@ -621,6 +629,7 @@ module Aws::Polly
621
629
  #
622
630
  # resp.next_token #=> String
623
631
  # resp.synthesis_tasks #=> Array
632
+ # resp.synthesis_tasks[0].engine #=> String, one of "standard", "neural"
624
633
  # resp.synthesis_tasks[0].task_id #=> String
625
634
  # resp.synthesis_tasks[0].task_status #=> String, one of "scheduled", "inProgress", "completed", "failed"
626
635
  # resp.synthesis_tasks[0].task_status_reason #=> String
@@ -657,7 +666,7 @@ module Aws::Polly
657
666
  #
658
667
  #
659
668
  #
660
- # [1]: http://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html
669
+ # [1]: https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html
661
670
  #
662
671
  # @option params [required, String] :name
663
672
  # Name of the lexicon. The name must follow the regular express format
@@ -708,6 +717,27 @@ module Aws::Polly
708
717
  # SpeechSynthesisTask object, which will include an identifier of this
709
718
  # task as well as the current status.
710
719
  #
720
+ # @option params [String] :engine
721
+ # Specifies the engine (`standard` or `neural`) for Amazon Polly to use
722
+ # when processing input text for speech synthesis. Using a voice that is
723
+ # not supported for the engine selected will result in an error.
724
+ #
725
+ # @option params [String] :language_code
726
+ # Optional language code for the Speech Synthesis request. This is only
727
+ # necessary if using a bilingual voice, such as Aditi, which can be used
728
+ # for either Indian English (en-IN) or Hindi (hi-IN).
729
+ #
730
+ # If a bilingual voice is used and no language code is specified, Amazon
731
+ # Polly will use the default language of the bilingual voice. The
732
+ # default language for any voice is the one returned by the
733
+ # [DescribeVoices][1] operation for the `LanguageCode` parameter. For
734
+ # example, if no language code is specified, Aditi will use Indian
735
+ # English rather than Hindi.
736
+ #
737
+ #
738
+ #
739
+ # [1]: https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html
740
+ #
711
741
  # @option params [Array<String>] :lexicon_names
712
742
  # List of one or more pronunciation lexicon names you want the service
713
743
  # to apply during synthesis. Lexicons are applied only if the language
@@ -727,8 +757,9 @@ module Aws::Polly
727
757
  # @option params [String] :sample_rate
728
758
  # The audio frequency specified in Hz.
729
759
  #
730
- # The valid values for mp3 and ogg\_vorbis are "8000", "16000", and
731
- # "22050". The default value is "22050".
760
+ # The valid values for mp3 and ogg\_vorbis are "8000", "16000",
761
+ # "22050", and "24000". The default value for standard voices is
762
+ # "22050". The default value for neural voices is "24000".
732
763
  #
733
764
  # Valid values for pcm are "8000" and "16000" The default value is
734
765
  # "16000".
@@ -751,22 +782,6 @@ module Aws::Polly
751
782
  # @option params [required, String] :voice_id
752
783
  # Voice ID to use for the synthesis.
753
784
  #
754
- # @option params [String] :language_code
755
- # Optional language code for the Speech Synthesis request. This is only
756
- # necessary if using a bilingual voice, such as Aditi, which can be used
757
- # for either Indian English (en-IN) or Hindi (hi-IN).
758
- #
759
- # If a bilingual voice is used and no language code is specified, Amazon
760
- # Polly will use the default language of the bilingual voice. The
761
- # default language for any voice is the one returned by the
762
- # [DescribeVoices][1] operation for the `LanguageCode` parameter. For
763
- # example, if no language code is specified, Aditi will use Indian
764
- # English rather than Hindi.
765
- #
766
- #
767
- #
768
- # [1]: https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html
769
- #
770
785
  # @return [Types::StartSpeechSynthesisTaskOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
771
786
  #
772
787
  # * {Types::StartSpeechSynthesisTaskOutput#synthesis_task #synthesis_task} => Types::SynthesisTask
@@ -774,6 +789,8 @@ module Aws::Polly
774
789
  # @example Request syntax with placeholder values
775
790
  #
776
791
  # resp = client.start_speech_synthesis_task({
792
+ # engine: "standard", # accepts standard, neural
793
+ # language_code: "arb", # accepts 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
777
794
  # lexicon_names: ["LexiconName"],
778
795
  # output_format: "json", # required, accepts json, mp3, ogg_vorbis, pcm
779
796
  # output_s3_bucket_name: "OutputS3BucketName", # required
@@ -784,11 +801,11 @@ module Aws::Polly
784
801
  # text: "Text", # required
785
802
  # text_type: "ssml", # accepts ssml, text
786
803
  # voice_id: "Aditi", # required, accepts Aditi, Amy, Astrid, Bianca, Brian, Carla, Carmen, Celine, Chantal, Conchita, Cristiano, Dora, Emma, Enrique, Ewa, Filiz, Geraint, Giorgio, Gwyneth, Hans, Ines, Ivy, Jacek, Jan, Joanna, Joey, Justin, Karl, Kendra, Kimberly, Lea, Liv, Lotte, Lucia, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel, Mizuki, Naja, Nicole, Penelope, Raveena, Ricardo, Ruben, Russell, Salli, Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu
787
- # language_code: "arb", # accepts 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
788
804
  # })
789
805
  #
790
806
  # @example Response structure
791
807
  #
808
+ # resp.synthesis_task.engine #=> String, one of "standard", "neural"
792
809
  # resp.synthesis_task.task_id #=> String
793
810
  # resp.synthesis_task.task_status #=> String, one of "scheduled", "inProgress", "completed", "failed"
794
811
  # resp.synthesis_task.task_status_reason #=> String
@@ -823,7 +840,28 @@ module Aws::Polly
823
840
  #
824
841
  #
825
842
  #
826
- # [1]: http://docs.aws.amazon.com/polly/latest/dg/how-text-to-speech-works.html
843
+ # [1]: https://docs.aws.amazon.com/polly/latest/dg/how-text-to-speech-works.html
844
+ #
845
+ # @option params [String] :engine
846
+ # Specifies the engine (`standard` or `neural`) for Amazon Polly to use
847
+ # when processing input text for speech synthesis. Using a voice that is
848
+ # not supported for the engine selected will result in an error.
849
+ #
850
+ # @option params [String] :language_code
851
+ # Optional language code for the Synthesize Speech request. This is only
852
+ # necessary if using a bilingual voice, such as Aditi, which can be used
853
+ # for either Indian English (en-IN) or Hindi (hi-IN).
854
+ #
855
+ # If a bilingual voice is used and no language code is specified, Amazon
856
+ # Polly will use the default language of the bilingual voice. The
857
+ # default language for any voice is the one returned by the
858
+ # [DescribeVoices][1] operation for the `LanguageCode` parameter. For
859
+ # example, if no language code is specified, Aditi will use Indian
860
+ # English rather than Hindi.
861
+ #
862
+ #
863
+ #
864
+ # [1]: https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html
827
865
  #
828
866
  # @option params [Array<String>] :lexicon_names
829
867
  # List of one or more pronunciation lexicon names you want the service
@@ -833,7 +871,7 @@ module Aws::Polly
833
871
  #
834
872
  #
835
873
  #
836
- # [1]: http://docs.aws.amazon.com/polly/latest/dg/API_PutLexicon.html
874
+ # [1]: https://docs.aws.amazon.com/polly/latest/dg/API_PutLexicon.html
837
875
  #
838
876
  # @option params [required, String] :output_format
839
877
  # The format in which the returned output will be encoded. For audio
@@ -846,10 +884,11 @@ module Aws::Polly
846
884
  # @option params [String] :sample_rate
847
885
  # The audio frequency specified in Hz.
848
886
  #
849
- # The valid values for `mp3` and `ogg_vorbis` are "8000", "16000",
850
- # and "22050". The default value is "22050".
887
+ # The valid values for mp3 and ogg\_vorbis are "8000", "16000",
888
+ # "22050", and "24000". The default value for standard voices is
889
+ # "22050". The default value for neural voices is "24000".
851
890
  #
852
- # Valid values for `pcm` are "8000" and "16000" The default value is
891
+ # Valid values for pcm are "8000" and "16000" The default value is
853
892
  # "16000".
854
893
  #
855
894
  # @option params [Array<String>] :speech_mark_types
@@ -865,7 +904,7 @@ module Aws::Polly
865
904
  #
866
905
  #
867
906
  #
868
- # [1]: http://docs.aws.amazon.com/polly/latest/dg/ssml.html
907
+ # [1]: https://docs.aws.amazon.com/polly/latest/dg/ssml.html
869
908
  #
870
909
  # @option params [required, String] :voice_id
871
910
  # Voice ID to use for the synthesis. You can get a list of available
@@ -873,22 +912,6 @@ module Aws::Polly
873
912
  #
874
913
  #
875
914
  #
876
- # [1]: http://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html
877
- #
878
- # @option params [String] :language_code
879
- # Optional language code for the Synthesize Speech request. This is only
880
- # necessary if using a bilingual voice, such as Aditi, which can be used
881
- # for either Indian English (en-IN) or Hindi (hi-IN).
882
- #
883
- # If a bilingual voice is used and no language code is specified, Amazon
884
- # Polly will use the default language of the bilingual voice. The
885
- # default language for any voice is the one returned by the
886
- # [DescribeVoices][1] operation for the `LanguageCode` parameter. For
887
- # example, if no language code is specified, Aditi will use Indian
888
- # English rather than Hindi.
889
- #
890
- #
891
- #
892
915
  # [1]: https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html
893
916
  #
894
917
  # @return [Types::SynthesizeSpeechOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -923,6 +946,8 @@ module Aws::Polly
923
946
  # @example Request syntax with placeholder values
924
947
  #
925
948
  # resp = client.synthesize_speech({
949
+ # engine: "standard", # accepts standard, neural
950
+ # language_code: "arb", # accepts 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
926
951
  # lexicon_names: ["LexiconName"],
927
952
  # output_format: "json", # required, accepts json, mp3, ogg_vorbis, pcm
928
953
  # sample_rate: "SampleRate",
@@ -930,7 +955,6 @@ module Aws::Polly
930
955
  # text: "Text", # required
931
956
  # text_type: "ssml", # accepts ssml, text
932
957
  # voice_id: "Aditi", # required, accepts Aditi, Amy, Astrid, Bianca, Brian, Carla, Carmen, Celine, Chantal, Conchita, Cristiano, Dora, Emma, Enrique, Ewa, Filiz, Geraint, Giorgio, Gwyneth, Hans, Ines, Ivy, Jacek, Jan, Joanna, Joey, Justin, Karl, Kendra, Kimberly, Lea, Liv, Lotte, Lucia, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel, Mizuki, Naja, Nicole, Penelope, Raveena, Ricardo, Ruben, Russell, Salli, Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu
933
- # language_code: "arb", # accepts 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
934
958
  # })
935
959
  #
936
960
  # @example Response structure
@@ -961,7 +985,7 @@ module Aws::Polly
961
985
  params: params,
962
986
  config: config)
963
987
  context[:gem_name] = 'aws-sdk-polly'
964
- context[:gem_version] = '1.25.0'
988
+ context[:gem_version] = '1.26.0'
965
989
  Seahorse::Client::Request.new(handlers, context)
966
990
  end
967
991
 
@@ -19,6 +19,9 @@ module Aws::Polly
19
19
  DeleteLexiconOutput = Shapes::StructureShape.new(name: 'DeleteLexiconOutput')
20
20
  DescribeVoicesInput = Shapes::StructureShape.new(name: 'DescribeVoicesInput')
21
21
  DescribeVoicesOutput = Shapes::StructureShape.new(name: 'DescribeVoicesOutput')
22
+ Engine = Shapes::StringShape.new(name: 'Engine')
23
+ EngineList = Shapes::ListShape.new(name: 'EngineList')
24
+ EngineNotSupportedException = Shapes::StructureShape.new(name: 'EngineNotSupportedException')
22
25
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
23
26
  Gender = Shapes::StringShape.new(name: 'Gender')
24
27
  GetLexiconInput = Shapes::StructureShape.new(name: 'GetLexiconInput')
@@ -98,6 +101,7 @@ module Aws::Polly
98
101
 
99
102
  DeleteLexiconOutput.struct_class = Types::DeleteLexiconOutput
100
103
 
104
+ DescribeVoicesInput.add_member(:engine, Shapes::ShapeRef.new(shape: Engine, location: "querystring", location_name: "Engine"))
101
105
  DescribeVoicesInput.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location: "querystring", location_name: "LanguageCode"))
102
106
  DescribeVoicesInput.add_member(:include_additional_language_codes, Shapes::ShapeRef.new(shape: IncludeAdditionalLanguageCodes, location: "querystring", location_name: "IncludeAdditionalLanguageCodes"))
103
107
  DescribeVoicesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "NextToken"))
@@ -107,6 +111,11 @@ module Aws::Polly
107
111
  DescribeVoicesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
108
112
  DescribeVoicesOutput.struct_class = Types::DescribeVoicesOutput
109
113
 
114
+ EngineList.member = Shapes::ShapeRef.new(shape: Engine)
115
+
116
+ EngineNotSupportedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
117
+ EngineNotSupportedException.struct_class = Types::EngineNotSupportedException
118
+
110
119
  GetLexiconInput.add_member(:name, Shapes::ShapeRef.new(shape: LexiconName, required: true, location: "uri", location_name: "LexiconName"))
111
120
  GetLexiconInput.struct_class = Types::GetLexiconInput
112
121
 
@@ -214,6 +223,8 @@ module Aws::Polly
214
223
  SsmlMarksNotSupportedForTextTypeException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
215
224
  SsmlMarksNotSupportedForTextTypeException.struct_class = Types::SsmlMarksNotSupportedForTextTypeException
216
225
 
226
+ StartSpeechSynthesisTaskInput.add_member(:engine, Shapes::ShapeRef.new(shape: Engine, location_name: "Engine"))
227
+ StartSpeechSynthesisTaskInput.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
217
228
  StartSpeechSynthesisTaskInput.add_member(:lexicon_names, Shapes::ShapeRef.new(shape: LexiconNameList, location_name: "LexiconNames"))
218
229
  StartSpeechSynthesisTaskInput.add_member(:output_format, Shapes::ShapeRef.new(shape: OutputFormat, required: true, location_name: "OutputFormat"))
219
230
  StartSpeechSynthesisTaskInput.add_member(:output_s3_bucket_name, Shapes::ShapeRef.new(shape: OutputS3BucketName, required: true, location_name: "OutputS3BucketName"))
@@ -224,12 +235,12 @@ module Aws::Polly
224
235
  StartSpeechSynthesisTaskInput.add_member(:text, Shapes::ShapeRef.new(shape: Text, required: true, location_name: "Text"))
225
236
  StartSpeechSynthesisTaskInput.add_member(:text_type, Shapes::ShapeRef.new(shape: TextType, location_name: "TextType"))
226
237
  StartSpeechSynthesisTaskInput.add_member(:voice_id, Shapes::ShapeRef.new(shape: VoiceId, required: true, location_name: "VoiceId"))
227
- StartSpeechSynthesisTaskInput.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
228
238
  StartSpeechSynthesisTaskInput.struct_class = Types::StartSpeechSynthesisTaskInput
229
239
 
230
240
  StartSpeechSynthesisTaskOutput.add_member(:synthesis_task, Shapes::ShapeRef.new(shape: SynthesisTask, location_name: "SynthesisTask"))
231
241
  StartSpeechSynthesisTaskOutput.struct_class = Types::StartSpeechSynthesisTaskOutput
232
242
 
243
+ SynthesisTask.add_member(:engine, Shapes::ShapeRef.new(shape: Engine, location_name: "Engine"))
233
244
  SynthesisTask.add_member(:task_id, Shapes::ShapeRef.new(shape: TaskId, location_name: "TaskId"))
234
245
  SynthesisTask.add_member(:task_status, Shapes::ShapeRef.new(shape: TaskStatus, location_name: "TaskStatus"))
235
246
  SynthesisTask.add_member(:task_status_reason, Shapes::ShapeRef.new(shape: TaskStatusReason, location_name: "TaskStatusReason"))
@@ -251,6 +262,8 @@ module Aws::Polly
251
262
 
252
263
  SynthesisTasks.member = Shapes::ShapeRef.new(shape: SynthesisTask)
253
264
 
265
+ SynthesizeSpeechInput.add_member(:engine, Shapes::ShapeRef.new(shape: Engine, location_name: "Engine"))
266
+ SynthesizeSpeechInput.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
254
267
  SynthesizeSpeechInput.add_member(:lexicon_names, Shapes::ShapeRef.new(shape: LexiconNameList, location_name: "LexiconNames"))
255
268
  SynthesizeSpeechInput.add_member(:output_format, Shapes::ShapeRef.new(shape: OutputFormat, required: true, location_name: "OutputFormat"))
256
269
  SynthesizeSpeechInput.add_member(:sample_rate, Shapes::ShapeRef.new(shape: SampleRate, location_name: "SampleRate"))
@@ -258,7 +271,6 @@ module Aws::Polly
258
271
  SynthesizeSpeechInput.add_member(:text, Shapes::ShapeRef.new(shape: Text, required: true, location_name: "Text"))
259
272
  SynthesizeSpeechInput.add_member(:text_type, Shapes::ShapeRef.new(shape: TextType, location_name: "TextType"))
260
273
  SynthesizeSpeechInput.add_member(:voice_id, Shapes::ShapeRef.new(shape: VoiceId, required: true, location_name: "VoiceId"))
261
- SynthesizeSpeechInput.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
262
274
  SynthesizeSpeechInput.struct_class = Types::SynthesizeSpeechInput
263
275
 
264
276
  SynthesizeSpeechOutput.add_member(:audio_stream, Shapes::ShapeRef.new(shape: AudioStream, location_name: "AudioStream"))
@@ -283,6 +295,7 @@ module Aws::Polly
283
295
  Voice.add_member(:language_name, Shapes::ShapeRef.new(shape: LanguageName, location_name: "LanguageName"))
284
296
  Voice.add_member(:name, Shapes::ShapeRef.new(shape: VoiceName, location_name: "Name"))
285
297
  Voice.add_member(:additional_language_codes, Shapes::ShapeRef.new(shape: LanguageCodeList, location_name: "AdditionalLanguageCodes"))
298
+ Voice.add_member(:supported_engines, Shapes::ShapeRef.new(shape: EngineList, location_name: "SupportedEngines"))
286
299
  Voice.struct_class = Types::Voice
287
300
 
288
301
  VoiceList.member = Shapes::ShapeRef.new(shape: Voice)
@@ -397,6 +410,7 @@ module Aws::Polly
397
410
  o.errors << Shapes::ShapeRef.new(shape: InvalidSampleRateException)
398
411
  o.errors << Shapes::ShapeRef.new(shape: InvalidSnsTopicArnException)
399
412
  o.errors << Shapes::ShapeRef.new(shape: InvalidSsmlException)
413
+ o.errors << Shapes::ShapeRef.new(shape: EngineNotSupportedException)
400
414
  o.errors << Shapes::ShapeRef.new(shape: LexiconNotFoundException)
401
415
  o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
402
416
  o.errors << Shapes::ShapeRef.new(shape: MarksNotSupportedForFormatException)
@@ -418,6 +432,7 @@ module Aws::Polly
418
432
  o.errors << Shapes::ShapeRef.new(shape: MarksNotSupportedForFormatException)
419
433
  o.errors << Shapes::ShapeRef.new(shape: SsmlMarksNotSupportedForTextTypeException)
420
434
  o.errors << Shapes::ShapeRef.new(shape: LanguageNotSupportedException)
435
+ o.errors << Shapes::ShapeRef.new(shape: EngineNotSupportedException)
421
436
  end)
422
437
  end
423
438
 
@@ -10,6 +10,22 @@ module Aws::Polly
10
10
 
11
11
  extend Aws::Errors::DynamicErrors
12
12
 
13
+ class EngineNotSupportedException < ServiceError
14
+
15
+ # @param [Seahorse::Client::RequestContext] context
16
+ # @param [String] message
17
+ # @param [Aws::Polly::Types::EngineNotSupportedException] data
18
+ def initialize(context, message, data = Aws::EmptyStructure.new)
19
+ super(context, message, data)
20
+ end
21
+
22
+ # @return [String]
23
+ def message
24
+ @message || @data[:message]
25
+ end
26
+
27
+ end
28
+
13
29
  class InvalidLexiconException < ServiceError
14
30
 
15
31
  # @param [Seahorse::Client::RequestContext] context
@@ -35,11 +35,17 @@ module Aws::Polly
35
35
  # data as a hash:
36
36
  #
37
37
  # {
38
+ # engine: "standard", # accepts standard, neural
38
39
  # language_code: "arb", # accepts 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
39
40
  # include_additional_language_codes: false,
40
41
  # next_token: "NextToken",
41
42
  # }
42
43
  #
44
+ # @!attribute [rw] engine
45
+ # Specifies the engine (`standard` or `neural`) used by Amazon Polly
46
+ # when processing input text for speech synthesis.
47
+ # @return [String]
48
+ #
43
49
  # @!attribute [rw] language_code
44
50
  # The language identification tag (ISO 639 code for the language
45
51
  # name-ISO 3166 country code) for filtering the list of voices
@@ -65,6 +71,7 @@ module Aws::Polly
65
71
  # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/DescribeVoicesInput AWS API Documentation
66
72
  #
67
73
  class DescribeVoicesInput < Struct.new(
74
+ :engine,
68
75
  :language_code,
69
76
  :include_additional_language_codes,
70
77
  :next_token)
@@ -89,6 +96,20 @@ module Aws::Polly
89
96
  include Aws::Structure
90
97
  end
91
98
 
99
+ # This engine is not compatible with the voice that you have designated.
100
+ # Choose a new voice that is compatible with the engine or change the
101
+ # engine and restart the operation.
102
+ #
103
+ # @!attribute [rw] message
104
+ # @return [String]
105
+ #
106
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/EngineNotSupportedException AWS API Documentation
107
+ #
108
+ class EngineNotSupportedException < Struct.new(
109
+ :message)
110
+ include Aws::Structure
111
+ end
112
+
92
113
  # @note When making an API call, you may pass GetLexiconInput
93
114
  # data as a hash:
94
115
  #
@@ -304,7 +325,7 @@ module Aws::Polly
304
325
  #
305
326
  #
306
327
  #
307
- # [1]: http://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html
328
+ # [1]: https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html
308
329
  #
309
330
  # @!attribute [rw] alphabet
310
331
  # Phonetic alphabet used in the lexicon. Valid values are `ipa` and
@@ -578,6 +599,8 @@ module Aws::Polly
578
599
  # data as a hash:
579
600
  #
580
601
  # {
602
+ # engine: "standard", # accepts standard, neural
603
+ # language_code: "arb", # accepts 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
581
604
  # lexicon_names: ["LexiconName"],
582
605
  # output_format: "json", # required, accepts json, mp3, ogg_vorbis, pcm
583
606
  # output_s3_bucket_name: "OutputS3BucketName", # required
@@ -588,9 +611,32 @@ module Aws::Polly
588
611
  # text: "Text", # required
589
612
  # text_type: "ssml", # accepts ssml, text
590
613
  # voice_id: "Aditi", # required, accepts Aditi, Amy, Astrid, Bianca, Brian, Carla, Carmen, Celine, Chantal, Conchita, Cristiano, Dora, Emma, Enrique, Ewa, Filiz, Geraint, Giorgio, Gwyneth, Hans, Ines, Ivy, Jacek, Jan, Joanna, Joey, Justin, Karl, Kendra, Kimberly, Lea, Liv, Lotte, Lucia, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel, Mizuki, Naja, Nicole, Penelope, Raveena, Ricardo, Ruben, Russell, Salli, Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu
591
- # language_code: "arb", # accepts 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
592
614
  # }
593
615
  #
616
+ # @!attribute [rw] engine
617
+ # Specifies the engine (`standard` or `neural`) for Amazon Polly to
618
+ # use when processing input text for speech synthesis. Using a voice
619
+ # that is not supported for the engine selected will result in an
620
+ # error.
621
+ # @return [String]
622
+ #
623
+ # @!attribute [rw] language_code
624
+ # Optional language code for the Speech Synthesis request. This is
625
+ # only necessary if using a bilingual voice, such as Aditi, which can
626
+ # be used for either Indian English (en-IN) or Hindi (hi-IN).
627
+ #
628
+ # If a bilingual voice is used and no language code is specified,
629
+ # Amazon Polly will use the default language of the bilingual voice.
630
+ # The default language for any voice is the one returned by the
631
+ # [DescribeVoices][1] operation for the `LanguageCode` parameter. For
632
+ # example, if no language code is specified, Aditi will use Indian
633
+ # English rather than Hindi.
634
+ #
635
+ #
636
+ #
637
+ # [1]: https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html
638
+ # @return [String]
639
+ #
594
640
  # @!attribute [rw] lexicon_names
595
641
  # List of one or more pronunciation lexicon names you want the service
596
642
  # to apply during synthesis. Lexicons are applied only if the language
@@ -615,7 +661,8 @@ module Aws::Polly
615
661
  # The audio frequency specified in Hz.
616
662
  #
617
663
  # The valid values for mp3 and ogg\_vorbis are "8000", "16000",
618
- # and "22050". The default value is "22050".
664
+ # "22050", and "24000". The default value for standard voices is
665
+ # "22050". The default value for neural voices is "24000".
619
666
  #
620
667
  # Valid values for pcm are "8000" and "16000" The default value is
621
668
  # "16000".
@@ -644,26 +691,11 @@ module Aws::Polly
644
691
  # Voice ID to use for the synthesis.
645
692
  # @return [String]
646
693
  #
647
- # @!attribute [rw] language_code
648
- # Optional language code for the Speech Synthesis request. This is
649
- # only necessary if using a bilingual voice, such as Aditi, which can
650
- # be used for either Indian English (en-IN) or Hindi (hi-IN).
651
- #
652
- # If a bilingual voice is used and no language code is specified,
653
- # Amazon Polly will use the default language of the bilingual voice.
654
- # The default language for any voice is the one returned by the
655
- # [DescribeVoices][1] operation for the `LanguageCode` parameter. For
656
- # example, if no language code is specified, Aditi will use Indian
657
- # English rather than Hindi.
658
- #
659
- #
660
- #
661
- # [1]: https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html
662
- # @return [String]
663
- #
664
694
  # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/StartSpeechSynthesisTaskInput AWS API Documentation
665
695
  #
666
696
  class StartSpeechSynthesisTaskInput < Struct.new(
697
+ :engine,
698
+ :language_code,
667
699
  :lexicon_names,
668
700
  :output_format,
669
701
  :output_s3_bucket_name,
@@ -673,8 +705,7 @@ module Aws::Polly
673
705
  :speech_mark_types,
674
706
  :text,
675
707
  :text_type,
676
- :voice_id,
677
- :language_code)
708
+ :voice_id)
678
709
  include Aws::Structure
679
710
  end
680
711
 
@@ -693,6 +724,13 @@ module Aws::Polly
693
724
  # SynthesisTask object that provides information about a speech
694
725
  # synthesis task.
695
726
  #
727
+ # @!attribute [rw] engine
728
+ # Specifies the engine (`standard` or `neural`) for Amazon Polly to
729
+ # use when processing input text for speech synthesis. Using a voice
730
+ # that is not supported for the engine selected will result in an
731
+ # error.
732
+ # @return [String]
733
+ #
696
734
  # @!attribute [rw] task_id
697
735
  # The Amazon Polly generated identifier for a speech synthesis task.
698
736
  # @return [String]
@@ -739,7 +777,8 @@ module Aws::Polly
739
777
  # The audio frequency specified in Hz.
740
778
  #
741
779
  # The valid values for mp3 and ogg\_vorbis are "8000", "16000",
742
- # and "22050". The default value is "22050".
780
+ # "22050", and "24000". The default value for standard voices is
781
+ # "22050". The default value for neural voices is "24000".
743
782
  #
744
783
  # Valid values for pcm are "8000" and "16000" The default value is
745
784
  # "16000".
@@ -778,6 +817,7 @@ module Aws::Polly
778
817
  # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/SynthesisTask AWS API Documentation
779
818
  #
780
819
  class SynthesisTask < Struct.new(
820
+ :engine,
781
821
  :task_id,
782
822
  :task_status,
783
823
  :task_status_reason,
@@ -811,6 +851,8 @@ module Aws::Polly
811
851
  # data as a hash:
812
852
  #
813
853
  # {
854
+ # engine: "standard", # accepts standard, neural
855
+ # language_code: "arb", # accepts 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
814
856
  # lexicon_names: ["LexiconName"],
815
857
  # output_format: "json", # required, accepts json, mp3, ogg_vorbis, pcm
816
858
  # sample_rate: "SampleRate",
@@ -818,9 +860,32 @@ module Aws::Polly
818
860
  # text: "Text", # required
819
861
  # text_type: "ssml", # accepts ssml, text
820
862
  # voice_id: "Aditi", # required, accepts Aditi, Amy, Astrid, Bianca, Brian, Carla, Carmen, Celine, Chantal, Conchita, Cristiano, Dora, Emma, Enrique, Ewa, Filiz, Geraint, Giorgio, Gwyneth, Hans, Ines, Ivy, Jacek, Jan, Joanna, Joey, Justin, Karl, Kendra, Kimberly, Lea, Liv, Lotte, Lucia, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel, Mizuki, Naja, Nicole, Penelope, Raveena, Ricardo, Ruben, Russell, Salli, Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu
821
- # language_code: "arb", # accepts 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
822
863
  # }
823
864
  #
865
+ # @!attribute [rw] engine
866
+ # Specifies the engine (`standard` or `neural`) for Amazon Polly to
867
+ # use when processing input text for speech synthesis. Using a voice
868
+ # that is not supported for the engine selected will result in an
869
+ # error.
870
+ # @return [String]
871
+ #
872
+ # @!attribute [rw] language_code
873
+ # Optional language code for the Synthesize Speech request. This is
874
+ # only necessary if using a bilingual voice, such as Aditi, which can
875
+ # be used for either Indian English (en-IN) or Hindi (hi-IN).
876
+ #
877
+ # If a bilingual voice is used and no language code is specified,
878
+ # Amazon Polly will use the default language of the bilingual voice.
879
+ # The default language for any voice is the one returned by the
880
+ # [DescribeVoices][1] operation for the `LanguageCode` parameter. For
881
+ # example, if no language code is specified, Aditi will use Indian
882
+ # English rather than Hindi.
883
+ #
884
+ #
885
+ #
886
+ # [1]: https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html
887
+ # @return [String]
888
+ #
824
889
  # @!attribute [rw] lexicon_names
825
890
  # List of one or more pronunciation lexicon names you want the service
826
891
  # to apply during synthesis. Lexicons are applied only if the language
@@ -829,7 +894,7 @@ module Aws::Polly
829
894
  #
830
895
  #
831
896
  #
832
- # [1]: http://docs.aws.amazon.com/polly/latest/dg/API_PutLexicon.html
897
+ # [1]: https://docs.aws.amazon.com/polly/latest/dg/API_PutLexicon.html
833
898
  # @return [Array<String>]
834
899
  #
835
900
  # @!attribute [rw] output_format
@@ -844,11 +909,12 @@ module Aws::Polly
844
909
  # @!attribute [rw] sample_rate
845
910
  # The audio frequency specified in Hz.
846
911
  #
847
- # The valid values for `mp3` and `ogg_vorbis` are "8000", "16000",
848
- # and "22050". The default value is "22050".
912
+ # The valid values for mp3 and ogg\_vorbis are "8000", "16000",
913
+ # "22050", and "24000". The default value for standard voices is
914
+ # "22050". The default value for neural voices is "24000".
849
915
  #
850
- # Valid values for `pcm` are "8000" and "16000" The default value
851
- # is "16000".
916
+ # Valid values for pcm are "8000" and "16000" The default value is
917
+ # "16000".
852
918
  # @return [String]
853
919
  #
854
920
  # @!attribute [rw] speech_mark_types
@@ -866,7 +932,7 @@ module Aws::Polly
866
932
  #
867
933
  #
868
934
  #
869
- # [1]: http://docs.aws.amazon.com/polly/latest/dg/ssml.html
935
+ # [1]: https://docs.aws.amazon.com/polly/latest/dg/ssml.html
870
936
  # @return [String]
871
937
  #
872
938
  # @!attribute [rw] voice_id
@@ -875,37 +941,21 @@ module Aws::Polly
875
941
  #
876
942
  #
877
943
  #
878
- # [1]: http://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html
879
- # @return [String]
880
- #
881
- # @!attribute [rw] language_code
882
- # Optional language code for the Synthesize Speech request. This is
883
- # only necessary if using a bilingual voice, such as Aditi, which can
884
- # be used for either Indian English (en-IN) or Hindi (hi-IN).
885
- #
886
- # If a bilingual voice is used and no language code is specified,
887
- # Amazon Polly will use the default language of the bilingual voice.
888
- # The default language for any voice is the one returned by the
889
- # [DescribeVoices][1] operation for the `LanguageCode` parameter. For
890
- # example, if no language code is specified, Aditi will use Indian
891
- # English rather than Hindi.
892
- #
893
- #
894
- #
895
944
  # [1]: https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html
896
945
  # @return [String]
897
946
  #
898
947
  # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/SynthesizeSpeechInput AWS API Documentation
899
948
  #
900
949
  class SynthesizeSpeechInput < Struct.new(
950
+ :engine,
951
+ :language_code,
901
952
  :lexicon_names,
902
953
  :output_format,
903
954
  :sample_rate,
904
955
  :speech_mark_types,
905
956
  :text,
906
957
  :text_type,
907
- :voice_id,
908
- :language_code)
958
+ :voice_id)
909
959
  include Aws::Structure
910
960
  end
911
961
 
@@ -979,7 +1029,7 @@ module Aws::Polly
979
1029
  #
980
1030
  #
981
1031
  #
982
- # [1]: http://docs.aws.amazon.com/polly/latest/dg/API_LexiconAttributes.html
1032
+ # [1]: https://docs.aws.amazon.com/polly/latest/dg/API_LexiconAttributes.html
983
1033
  #
984
1034
  # @!attribute [rw] message
985
1035
  # @return [String]
@@ -1026,6 +1076,11 @@ module Aws::Polly
1026
1076
  # parameter would show the code `hi-IN`.
1027
1077
  # @return [Array<String>]
1028
1078
  #
1079
+ # @!attribute [rw] supported_engines
1080
+ # Specifies which engines (`standard` or `neural`) that are supported
1081
+ # by a given voice.
1082
+ # @return [Array<String>]
1083
+ #
1029
1084
  # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/Voice AWS API Documentation
1030
1085
  #
1031
1086
  class Voice < Struct.new(
@@ -1034,7 +1089,8 @@ module Aws::Polly
1034
1089
  :language_code,
1035
1090
  :language_name,
1036
1091
  :name,
1037
- :additional_language_codes)
1092
+ :additional_language_codes,
1093
+ :supported_engines)
1038
1094
  include Aws::Structure
1039
1095
  end
1040
1096
 
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.25.0
4
+ version: 1.26.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: 2019-07-25 00:00:00.000000000 Z
11
+ date: 2019-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core