aws-sdk-polly 1.27.0 → 1.32.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/aws-sdk-polly.rb +9 -4
- data/lib/aws-sdk-polly/client.rb +80 -20
- data/lib/aws-sdk-polly/client_api.rb +2 -0
- data/lib/aws-sdk-polly/errors.rb +45 -21
- data/lib/aws-sdk-polly/resource.rb +3 -0
- data/lib/aws-sdk-polly/types.rb +4 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d0cd65aa6a98da3380c22de302418658d5a18ad58e5e9346fddacc04f6878f79
|
4
|
+
data.tar.gz: d052b968ed907bb6a50b337025a0e3c358fc5c53ba22d17ed3813b1ab1675672
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d7dea80e29faf373af9838f06eece8a53bfea218ec82f2d67fa655f6543138bdc78196770c342351b195c9818a0c3cf726ba303df2aa62ed8fed1fe2b1f53e8
|
7
|
+
data.tar.gz: b681a2a194ce43d14ec4edfba21c8508fcc7cfee995d20c7529371e3350bc22e9959dd7c5342d9d6611f66f3839c4b506ecbaad1298b8783d9205ed5c26efa7b
|
data/lib/aws-sdk-polly.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -24,17 +26,20 @@ require_relative 'aws-sdk-polly/customizations'
|
|
24
26
|
# methods each accept a hash of request parameters and return a response
|
25
27
|
# structure.
|
26
28
|
#
|
29
|
+
# polly = Aws::Polly::Client.new
|
30
|
+
# resp = polly.delete_lexicon(params)
|
31
|
+
#
|
27
32
|
# See {Client} for more information.
|
28
33
|
#
|
29
34
|
# # Errors
|
30
35
|
#
|
31
|
-
# Errors returned from Amazon Polly
|
32
|
-
# extend {Errors::ServiceError}.
|
36
|
+
# Errors returned from Amazon Polly are defined in the
|
37
|
+
# {Errors} module and all extend {Errors::ServiceError}.
|
33
38
|
#
|
34
39
|
# begin
|
35
40
|
# # do stuff
|
36
41
|
# rescue Aws::Polly::Errors::ServiceError
|
37
|
-
# # rescues all
|
42
|
+
# # rescues all Amazon Polly API errors
|
38
43
|
# end
|
39
44
|
#
|
40
45
|
# See {Errors} for more information.
|
@@ -42,6 +47,6 @@ require_relative 'aws-sdk-polly/customizations'
|
|
42
47
|
# @service
|
43
48
|
module Aws::Polly
|
44
49
|
|
45
|
-
GEM_VERSION = '1.
|
50
|
+
GEM_VERSION = '1.32.0'
|
46
51
|
|
47
52
|
end
|
data/lib/aws-sdk-polly/client.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -24,12 +26,25 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
|
24
26
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
25
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
26
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
|
+
require 'aws-sdk-core/plugins/http_checksum.rb'
|
27
30
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
28
31
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
29
32
|
|
30
33
|
Aws::Plugins::GlobalConfiguration.add_identifier(:polly)
|
31
34
|
|
32
35
|
module Aws::Polly
|
36
|
+
# An API client for Polly. To construct a client, you need to configure a `:region` and `:credentials`.
|
37
|
+
#
|
38
|
+
# client = Aws::Polly::Client.new(
|
39
|
+
# region: region_name,
|
40
|
+
# credentials: credentials,
|
41
|
+
# # ...
|
42
|
+
# )
|
43
|
+
#
|
44
|
+
# For details on configuring region and credentials see
|
45
|
+
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
|
46
|
+
#
|
47
|
+
# See {#initialize} for a full list of supported configuration options.
|
33
48
|
class Client < Seahorse::Client::Base
|
34
49
|
|
35
50
|
include Aws::ClientStubs
|
@@ -57,6 +72,7 @@ module Aws::Polly
|
|
57
72
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
58
73
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
59
74
|
add_plugin(Aws::Plugins::TransferEncoding)
|
75
|
+
add_plugin(Aws::Plugins::HttpChecksum)
|
60
76
|
add_plugin(Aws::Plugins::SignatureV4)
|
61
77
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
62
78
|
|
@@ -93,7 +109,7 @@ module Aws::Polly
|
|
93
109
|
# @option options [required, String] :region
|
94
110
|
# The AWS region to connect to. The configured `:region` is
|
95
111
|
# used to determine the service `:endpoint`. When not passed,
|
96
|
-
# a default `:region` is
|
112
|
+
# a default `:region` is searched for in the following locations:
|
97
113
|
#
|
98
114
|
# * `Aws.config[:region]`
|
99
115
|
# * `ENV['AWS_REGION']`
|
@@ -108,6 +124,12 @@ module Aws::Polly
|
|
108
124
|
# When set to `true`, a thread polling for endpoints will be running in
|
109
125
|
# the background every 60 secs (default). Defaults to `false`.
|
110
126
|
#
|
127
|
+
# @option options [Boolean] :adaptive_retry_wait_to_fill (true)
|
128
|
+
# Used only in `adaptive` retry mode. When true, the request will sleep
|
129
|
+
# until there is sufficent client side capacity to retry the request.
|
130
|
+
# When false, the request will raise a `RetryCapacityNotAvailableError` and will
|
131
|
+
# not retry instead of sleeping.
|
132
|
+
#
|
111
133
|
# @option options [Boolean] :client_side_monitoring (false)
|
112
134
|
# When `true`, client-side metrics will be collected for all API requests from
|
113
135
|
# this client.
|
@@ -132,6 +154,10 @@ module Aws::Polly
|
|
132
154
|
# When `true`, an attempt is made to coerce request parameters into
|
133
155
|
# the required types.
|
134
156
|
#
|
157
|
+
# @option options [Boolean] :correct_clock_skew (true)
|
158
|
+
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
159
|
+
# a clock skew correction and retry requests with skewed client clocks.
|
160
|
+
#
|
135
161
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
136
162
|
# Set to true to disable SDK automatically adding host prefix
|
137
163
|
# to default service endpoint when available.
|
@@ -139,7 +165,7 @@ module Aws::Polly
|
|
139
165
|
# @option options [String] :endpoint
|
140
166
|
# The client endpoint is normally constructed from the `:region`
|
141
167
|
# option. You should only configure an `:endpoint` when connecting
|
142
|
-
# to test endpoints. This should be
|
168
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
143
169
|
#
|
144
170
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
145
171
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -154,7 +180,7 @@ module Aws::Polly
|
|
154
180
|
# requests fetching endpoints information. Defaults to 60 sec.
|
155
181
|
#
|
156
182
|
# @option options [Boolean] :endpoint_discovery (false)
|
157
|
-
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
183
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
158
184
|
#
|
159
185
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
160
186
|
# The log formatter.
|
@@ -166,15 +192,29 @@ module Aws::Polly
|
|
166
192
|
# The Logger instance to send log messages to. If this option
|
167
193
|
# is not set, logging will be disabled.
|
168
194
|
#
|
195
|
+
# @option options [Integer] :max_attempts (3)
|
196
|
+
# An integer representing the maximum number attempts that will be made for
|
197
|
+
# a single request, including the initial attempt. For example,
|
198
|
+
# setting this value to 5 will result in a request being retried up to
|
199
|
+
# 4 times. Used in `standard` and `adaptive` retry modes.
|
200
|
+
#
|
169
201
|
# @option options [String] :profile ("default")
|
170
202
|
# Used when loading credentials from the shared credentials file
|
171
203
|
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
172
204
|
#
|
205
|
+
# @option options [Proc] :retry_backoff
|
206
|
+
# A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
|
207
|
+
# This option is only used in the `legacy` retry mode.
|
208
|
+
#
|
173
209
|
# @option options [Float] :retry_base_delay (0.3)
|
174
|
-
# The base delay in seconds used by the default backoff function.
|
210
|
+
# The base delay in seconds used by the default backoff function. This option
|
211
|
+
# is only used in the `legacy` retry mode.
|
175
212
|
#
|
176
213
|
# @option options [Symbol] :retry_jitter (:none)
|
177
|
-
# A delay randomiser function used by the default backoff function.
|
214
|
+
# A delay randomiser function used by the default backoff function.
|
215
|
+
# Some predefined functions can be referenced by name - :none, :equal, :full,
|
216
|
+
# otherwise a Proc that takes and returns a number. This option is only used
|
217
|
+
# in the `legacy` retry mode.
|
178
218
|
#
|
179
219
|
# @see https://www.awsarchitectureblog.com/2015/03/backoff.html
|
180
220
|
#
|
@@ -182,11 +222,30 @@ module Aws::Polly
|
|
182
222
|
# The maximum number of times to retry failed requests. Only
|
183
223
|
# ~ 500 level server errors and certain ~ 400 level client errors
|
184
224
|
# are retried. Generally, these are throttling errors, data
|
185
|
-
# checksum errors, networking errors, timeout errors
|
186
|
-
# errors from expired credentials.
|
225
|
+
# checksum errors, networking errors, timeout errors, auth errors,
|
226
|
+
# endpoint discovery, and errors from expired credentials.
|
227
|
+
# This option is only used in the `legacy` retry mode.
|
187
228
|
#
|
188
229
|
# @option options [Integer] :retry_max_delay (0)
|
189
|
-
# The maximum number of seconds to delay between retries (0 for no limit)
|
230
|
+
# The maximum number of seconds to delay between retries (0 for no limit)
|
231
|
+
# used by the default backoff function. This option is only used in the
|
232
|
+
# `legacy` retry mode.
|
233
|
+
#
|
234
|
+
# @option options [String] :retry_mode ("legacy")
|
235
|
+
# Specifies which retry algorithm to use. Values are:
|
236
|
+
#
|
237
|
+
# * `legacy` - The pre-existing retry behavior. This is default value if
|
238
|
+
# no retry mode is provided.
|
239
|
+
#
|
240
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
241
|
+
# This includes support for retry quotas, which limit the number of
|
242
|
+
# unsuccessful retries a client can make.
|
243
|
+
#
|
244
|
+
# * `adaptive` - An experimental retry mode that includes all the
|
245
|
+
# functionality of `standard` mode along with automatic client side
|
246
|
+
# throttling. This is a provisional mode that may change behavior
|
247
|
+
# in the future.
|
248
|
+
#
|
190
249
|
#
|
191
250
|
# @option options [String] :secret_access_key
|
192
251
|
#
|
@@ -209,16 +268,15 @@ module Aws::Polly
|
|
209
268
|
# requests through. Formatted like 'http://proxy.com:123'.
|
210
269
|
#
|
211
270
|
# @option options [Float] :http_open_timeout (15) The number of
|
212
|
-
# seconds to wait when opening a HTTP session before
|
271
|
+
# seconds to wait when opening a HTTP session before raising a
|
213
272
|
# `Timeout::Error`.
|
214
273
|
#
|
215
274
|
# @option options [Integer] :http_read_timeout (60) The default
|
216
275
|
# number of seconds to wait for response data. This value can
|
217
|
-
# safely be set
|
218
|
-
# per-request on the session yeidled by {#session_for}.
|
276
|
+
# safely be set per-request on the session.
|
219
277
|
#
|
220
278
|
# @option options [Float] :http_idle_timeout (5) The number of
|
221
|
-
# seconds a connection is allowed to sit
|
279
|
+
# seconds a connection is allowed to sit idle before it is
|
222
280
|
# considered stale. Stale connections are closed and removed
|
223
281
|
# from the pool before making a request.
|
224
282
|
#
|
@@ -227,7 +285,7 @@ module Aws::Polly
|
|
227
285
|
# request body. This option has no effect unless the request has
|
228
286
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
229
287
|
# disables this behaviour. This value can safely be set per
|
230
|
-
# request on the session
|
288
|
+
# request on the session.
|
231
289
|
#
|
232
290
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
233
291
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -397,7 +455,7 @@ module Aws::Polly
|
|
397
455
|
#
|
398
456
|
# resp.voices #=> Array
|
399
457
|
# resp.voices[0].gender #=> String, one of "Female", "Male"
|
400
|
-
# resp.voices[0].id #=> String, one of "Aditi", "Amy", "Astrid", "Bianca", "Brian", "Camila", "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", "Lupe", "Mads", "Maja", "Marlene", "Mathieu", "Matthew", "Maxim", "Mia", "Miguel", "Mizuki", "Naja", "Nicole", "Penelope", "Raveena", "Ricardo", "Ruben", "Russell", "Salli", "Seoyeon", "Takumi", "Tatyana", "Vicki", "Vitoria", "Zeina", "Zhiyu"
|
458
|
+
# resp.voices[0].id #=> String, one of "Aditi", "Amy", "Astrid", "Bianca", "Brian", "Camila", "Carla", "Carmen", "Celine", "Chantal", "Conchita", "Cristiano", "Dora", "Emma", "Enrique", "Ewa", "Filiz", "Geraint", "Giorgio", "Gwyneth", "Hans", "Ines", "Ivy", "Jacek", "Jan", "Joanna", "Joey", "Justin", "Karl", "Kendra", "Kevin", "Kimberly", "Lea", "Liv", "Lotte", "Lucia", "Lupe", "Mads", "Maja", "Marlene", "Mathieu", "Matthew", "Maxim", "Mia", "Miguel", "Mizuki", "Naja", "Nicole", "Penelope", "Raveena", "Ricardo", "Ruben", "Russell", "Salli", "Seoyeon", "Takumi", "Tatyana", "Vicki", "Vitoria", "Zeina", "Zhiyu"
|
401
459
|
# resp.voices[0].language_code #=> 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"
|
402
460
|
# resp.voices[0].language_name #=> String
|
403
461
|
# resp.voices[0].name #=> String
|
@@ -517,7 +575,7 @@ module Aws::Polly
|
|
517
575
|
# resp.synthesis_task.speech_mark_types #=> Array
|
518
576
|
# resp.synthesis_task.speech_mark_types[0] #=> String, one of "sentence", "ssml", "viseme", "word"
|
519
577
|
# resp.synthesis_task.text_type #=> String, one of "ssml", "text"
|
520
|
-
# resp.synthesis_task.voice_id #=> String, one of "Aditi", "Amy", "Astrid", "Bianca", "Brian", "Camila", "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", "Lupe", "Mads", "Maja", "Marlene", "Mathieu", "Matthew", "Maxim", "Mia", "Miguel", "Mizuki", "Naja", "Nicole", "Penelope", "Raveena", "Ricardo", "Ruben", "Russell", "Salli", "Seoyeon", "Takumi", "Tatyana", "Vicki", "Vitoria", "Zeina", "Zhiyu"
|
578
|
+
# resp.synthesis_task.voice_id #=> String, one of "Aditi", "Amy", "Astrid", "Bianca", "Brian", "Camila", "Carla", "Carmen", "Celine", "Chantal", "Conchita", "Cristiano", "Dora", "Emma", "Enrique", "Ewa", "Filiz", "Geraint", "Giorgio", "Gwyneth", "Hans", "Ines", "Ivy", "Jacek", "Jan", "Joanna", "Joey", "Justin", "Karl", "Kendra", "Kevin", "Kimberly", "Lea", "Liv", "Lotte", "Lucia", "Lupe", "Mads", "Maja", "Marlene", "Mathieu", "Matthew", "Maxim", "Mia", "Miguel", "Mizuki", "Naja", "Nicole", "Penelope", "Raveena", "Ricardo", "Ruben", "Russell", "Salli", "Seoyeon", "Takumi", "Tatyana", "Vicki", "Vitoria", "Zeina", "Zhiyu"
|
521
579
|
# resp.synthesis_task.language_code #=> 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"
|
522
580
|
#
|
523
581
|
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/GetSpeechSynthesisTask AWS API Documentation
|
@@ -617,6 +675,8 @@ module Aws::Polly
|
|
617
675
|
# * {Types::ListSpeechSynthesisTasksOutput#next_token #next_token} => String
|
618
676
|
# * {Types::ListSpeechSynthesisTasksOutput#synthesis_tasks #synthesis_tasks} => Array<Types::SynthesisTask>
|
619
677
|
#
|
678
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
679
|
+
#
|
620
680
|
# @example Request syntax with placeholder values
|
621
681
|
#
|
622
682
|
# resp = client.list_speech_synthesis_tasks({
|
@@ -644,7 +704,7 @@ module Aws::Polly
|
|
644
704
|
# resp.synthesis_tasks[0].speech_mark_types #=> Array
|
645
705
|
# resp.synthesis_tasks[0].speech_mark_types[0] #=> String, one of "sentence", "ssml", "viseme", "word"
|
646
706
|
# resp.synthesis_tasks[0].text_type #=> String, one of "ssml", "text"
|
647
|
-
# resp.synthesis_tasks[0].voice_id #=> String, one of "Aditi", "Amy", "Astrid", "Bianca", "Brian", "Camila", "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", "Lupe", "Mads", "Maja", "Marlene", "Mathieu", "Matthew", "Maxim", "Mia", "Miguel", "Mizuki", "Naja", "Nicole", "Penelope", "Raveena", "Ricardo", "Ruben", "Russell", "Salli", "Seoyeon", "Takumi", "Tatyana", "Vicki", "Vitoria", "Zeina", "Zhiyu"
|
707
|
+
# resp.synthesis_tasks[0].voice_id #=> String, one of "Aditi", "Amy", "Astrid", "Bianca", "Brian", "Camila", "Carla", "Carmen", "Celine", "Chantal", "Conchita", "Cristiano", "Dora", "Emma", "Enrique", "Ewa", "Filiz", "Geraint", "Giorgio", "Gwyneth", "Hans", "Ines", "Ivy", "Jacek", "Jan", "Joanna", "Joey", "Justin", "Karl", "Kendra", "Kevin", "Kimberly", "Lea", "Liv", "Lotte", "Lucia", "Lupe", "Mads", "Maja", "Marlene", "Mathieu", "Matthew", "Maxim", "Mia", "Miguel", "Mizuki", "Naja", "Nicole", "Penelope", "Raveena", "Ricardo", "Ruben", "Russell", "Salli", "Seoyeon", "Takumi", "Tatyana", "Vicki", "Vitoria", "Zeina", "Zhiyu"
|
648
708
|
# resp.synthesis_tasks[0].language_code #=> 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"
|
649
709
|
#
|
650
710
|
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/ListSpeechSynthesisTasks AWS API Documentation
|
@@ -800,7 +860,7 @@ module Aws::Polly
|
|
800
860
|
# speech_mark_types: ["sentence"], # accepts sentence, ssml, viseme, word
|
801
861
|
# text: "Text", # required
|
802
862
|
# text_type: "ssml", # accepts ssml, text
|
803
|
-
# voice_id: "Aditi", # required, accepts Aditi, Amy, Astrid, Bianca, Brian, Camila, 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, Lupe, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel, Mizuki, Naja, Nicole, Penelope, Raveena, Ricardo, Ruben, Russell, Salli, Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu
|
863
|
+
# voice_id: "Aditi", # required, accepts Aditi, Amy, Astrid, Bianca, Brian, Camila, Carla, Carmen, Celine, Chantal, Conchita, Cristiano, Dora, Emma, Enrique, Ewa, Filiz, Geraint, Giorgio, Gwyneth, Hans, Ines, Ivy, Jacek, Jan, Joanna, Joey, Justin, Karl, Kendra, Kevin, Kimberly, Lea, Liv, Lotte, Lucia, Lupe, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel, Mizuki, Naja, Nicole, Penelope, Raveena, Ricardo, Ruben, Russell, Salli, Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu
|
804
864
|
# })
|
805
865
|
#
|
806
866
|
# @example Response structure
|
@@ -820,7 +880,7 @@ module Aws::Polly
|
|
820
880
|
# resp.synthesis_task.speech_mark_types #=> Array
|
821
881
|
# resp.synthesis_task.speech_mark_types[0] #=> String, one of "sentence", "ssml", "viseme", "word"
|
822
882
|
# resp.synthesis_task.text_type #=> String, one of "ssml", "text"
|
823
|
-
# resp.synthesis_task.voice_id #=> String, one of "Aditi", "Amy", "Astrid", "Bianca", "Brian", "Camila", "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", "Lupe", "Mads", "Maja", "Marlene", "Mathieu", "Matthew", "Maxim", "Mia", "Miguel", "Mizuki", "Naja", "Nicole", "Penelope", "Raveena", "Ricardo", "Ruben", "Russell", "Salli", "Seoyeon", "Takumi", "Tatyana", "Vicki", "Vitoria", "Zeina", "Zhiyu"
|
883
|
+
# resp.synthesis_task.voice_id #=> String, one of "Aditi", "Amy", "Astrid", "Bianca", "Brian", "Camila", "Carla", "Carmen", "Celine", "Chantal", "Conchita", "Cristiano", "Dora", "Emma", "Enrique", "Ewa", "Filiz", "Geraint", "Giorgio", "Gwyneth", "Hans", "Ines", "Ivy", "Jacek", "Jan", "Joanna", "Joey", "Justin", "Karl", "Kendra", "Kevin", "Kimberly", "Lea", "Liv", "Lotte", "Lucia", "Lupe", "Mads", "Maja", "Marlene", "Mathieu", "Matthew", "Maxim", "Mia", "Miguel", "Mizuki", "Naja", "Nicole", "Penelope", "Raveena", "Ricardo", "Ruben", "Russell", "Salli", "Seoyeon", "Takumi", "Tatyana", "Vicki", "Vitoria", "Zeina", "Zhiyu"
|
824
884
|
# resp.synthesis_task.language_code #=> 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"
|
825
885
|
#
|
826
886
|
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/StartSpeechSynthesisTask AWS API Documentation
|
@@ -954,7 +1014,7 @@ module Aws::Polly
|
|
954
1014
|
# speech_mark_types: ["sentence"], # accepts sentence, ssml, viseme, word
|
955
1015
|
# text: "Text", # required
|
956
1016
|
# text_type: "ssml", # accepts ssml, text
|
957
|
-
# voice_id: "Aditi", # required, accepts Aditi, Amy, Astrid, Bianca, Brian, Camila, 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, Lupe, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel, Mizuki, Naja, Nicole, Penelope, Raveena, Ricardo, Ruben, Russell, Salli, Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu
|
1017
|
+
# voice_id: "Aditi", # required, accepts Aditi, Amy, Astrid, Bianca, Brian, Camila, Carla, Carmen, Celine, Chantal, Conchita, Cristiano, Dora, Emma, Enrique, Ewa, Filiz, Geraint, Giorgio, Gwyneth, Hans, Ines, Ivy, Jacek, Jan, Joanna, Joey, Justin, Karl, Kendra, Kevin, Kimberly, Lea, Liv, Lotte, Lucia, Lupe, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel, Mizuki, Naja, Nicole, Penelope, Raveena, Ricardo, Ruben, Russell, Salli, Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu
|
958
1018
|
# })
|
959
1019
|
#
|
960
1020
|
# @example Response structure
|
@@ -985,7 +1045,7 @@ module Aws::Polly
|
|
985
1045
|
params: params,
|
986
1046
|
config: config)
|
987
1047
|
context[:gem_name] = 'aws-sdk-polly'
|
988
|
-
context[:gem_version] = '1.
|
1048
|
+
context[:gem_version] = '1.32.0'
|
989
1049
|
Seahorse::Client::Request.new(handlers, context)
|
990
1050
|
end
|
991
1051
|
|
data/lib/aws-sdk-polly/errors.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -6,6 +8,49 @@
|
|
6
8
|
# WARNING ABOUT GENERATED CODE
|
7
9
|
|
8
10
|
module Aws::Polly
|
11
|
+
|
12
|
+
# When Polly returns an error response, the Ruby SDK constructs and raises an error.
|
13
|
+
# These errors all extend Aws::Polly::Errors::ServiceError < {Aws::Errors::ServiceError}
|
14
|
+
#
|
15
|
+
# You can rescue all Polly errors using ServiceError:
|
16
|
+
#
|
17
|
+
# begin
|
18
|
+
# # do stuff
|
19
|
+
# rescue Aws::Polly::Errors::ServiceError
|
20
|
+
# # rescues all Polly API errors
|
21
|
+
# end
|
22
|
+
#
|
23
|
+
#
|
24
|
+
# ## Request Context
|
25
|
+
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
26
|
+
# information about the request that generated the error.
|
27
|
+
# See {Seahorse::Client::RequestContext} for more information.
|
28
|
+
#
|
29
|
+
# ## Error Classes
|
30
|
+
# * {EngineNotSupportedException}
|
31
|
+
# * {InvalidLexiconException}
|
32
|
+
# * {InvalidNextTokenException}
|
33
|
+
# * {InvalidS3BucketException}
|
34
|
+
# * {InvalidS3KeyException}
|
35
|
+
# * {InvalidSampleRateException}
|
36
|
+
# * {InvalidSnsTopicArnException}
|
37
|
+
# * {InvalidSsmlException}
|
38
|
+
# * {InvalidTaskIdException}
|
39
|
+
# * {LanguageNotSupportedException}
|
40
|
+
# * {LexiconNotFoundException}
|
41
|
+
# * {LexiconSizeExceededException}
|
42
|
+
# * {MarksNotSupportedForFormatException}
|
43
|
+
# * {MaxLexemeLengthExceededException}
|
44
|
+
# * {MaxLexiconsNumberExceededException}
|
45
|
+
# * {ServiceFailureException}
|
46
|
+
# * {SsmlMarksNotSupportedForTextTypeException}
|
47
|
+
# * {SynthesisTaskNotFoundException}
|
48
|
+
# * {TextLengthExceededException}
|
49
|
+
# * {UnsupportedPlsAlphabetException}
|
50
|
+
# * {UnsupportedPlsLanguageException}
|
51
|
+
#
|
52
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
53
|
+
# if they are not defined above.
|
9
54
|
module Errors
|
10
55
|
|
11
56
|
extend Aws::Errors::DynamicErrors
|
@@ -23,7 +68,6 @@ module Aws::Polly
|
|
23
68
|
def message
|
24
69
|
@message || @data[:message]
|
25
70
|
end
|
26
|
-
|
27
71
|
end
|
28
72
|
|
29
73
|
class InvalidLexiconException < ServiceError
|
@@ -39,7 +83,6 @@ module Aws::Polly
|
|
39
83
|
def message
|
40
84
|
@message || @data[:message]
|
41
85
|
end
|
42
|
-
|
43
86
|
end
|
44
87
|
|
45
88
|
class InvalidNextTokenException < ServiceError
|
@@ -55,7 +98,6 @@ module Aws::Polly
|
|
55
98
|
def message
|
56
99
|
@message || @data[:message]
|
57
100
|
end
|
58
|
-
|
59
101
|
end
|
60
102
|
|
61
103
|
class InvalidS3BucketException < ServiceError
|
@@ -71,7 +113,6 @@ module Aws::Polly
|
|
71
113
|
def message
|
72
114
|
@message || @data[:message]
|
73
115
|
end
|
74
|
-
|
75
116
|
end
|
76
117
|
|
77
118
|
class InvalidS3KeyException < ServiceError
|
@@ -87,7 +128,6 @@ module Aws::Polly
|
|
87
128
|
def message
|
88
129
|
@message || @data[:message]
|
89
130
|
end
|
90
|
-
|
91
131
|
end
|
92
132
|
|
93
133
|
class InvalidSampleRateException < ServiceError
|
@@ -103,7 +143,6 @@ module Aws::Polly
|
|
103
143
|
def message
|
104
144
|
@message || @data[:message]
|
105
145
|
end
|
106
|
-
|
107
146
|
end
|
108
147
|
|
109
148
|
class InvalidSnsTopicArnException < ServiceError
|
@@ -119,7 +158,6 @@ module Aws::Polly
|
|
119
158
|
def message
|
120
159
|
@message || @data[:message]
|
121
160
|
end
|
122
|
-
|
123
161
|
end
|
124
162
|
|
125
163
|
class InvalidSsmlException < ServiceError
|
@@ -135,7 +173,6 @@ module Aws::Polly
|
|
135
173
|
def message
|
136
174
|
@message || @data[:message]
|
137
175
|
end
|
138
|
-
|
139
176
|
end
|
140
177
|
|
141
178
|
class InvalidTaskIdException < ServiceError
|
@@ -151,7 +188,6 @@ module Aws::Polly
|
|
151
188
|
def message
|
152
189
|
@message || @data[:message]
|
153
190
|
end
|
154
|
-
|
155
191
|
end
|
156
192
|
|
157
193
|
class LanguageNotSupportedException < ServiceError
|
@@ -167,7 +203,6 @@ module Aws::Polly
|
|
167
203
|
def message
|
168
204
|
@message || @data[:message]
|
169
205
|
end
|
170
|
-
|
171
206
|
end
|
172
207
|
|
173
208
|
class LexiconNotFoundException < ServiceError
|
@@ -183,7 +218,6 @@ module Aws::Polly
|
|
183
218
|
def message
|
184
219
|
@message || @data[:message]
|
185
220
|
end
|
186
|
-
|
187
221
|
end
|
188
222
|
|
189
223
|
class LexiconSizeExceededException < ServiceError
|
@@ -199,7 +233,6 @@ module Aws::Polly
|
|
199
233
|
def message
|
200
234
|
@message || @data[:message]
|
201
235
|
end
|
202
|
-
|
203
236
|
end
|
204
237
|
|
205
238
|
class MarksNotSupportedForFormatException < ServiceError
|
@@ -215,7 +248,6 @@ module Aws::Polly
|
|
215
248
|
def message
|
216
249
|
@message || @data[:message]
|
217
250
|
end
|
218
|
-
|
219
251
|
end
|
220
252
|
|
221
253
|
class MaxLexemeLengthExceededException < ServiceError
|
@@ -231,7 +263,6 @@ module Aws::Polly
|
|
231
263
|
def message
|
232
264
|
@message || @data[:message]
|
233
265
|
end
|
234
|
-
|
235
266
|
end
|
236
267
|
|
237
268
|
class MaxLexiconsNumberExceededException < ServiceError
|
@@ -247,7 +278,6 @@ module Aws::Polly
|
|
247
278
|
def message
|
248
279
|
@message || @data[:message]
|
249
280
|
end
|
250
|
-
|
251
281
|
end
|
252
282
|
|
253
283
|
class ServiceFailureException < ServiceError
|
@@ -263,7 +293,6 @@ module Aws::Polly
|
|
263
293
|
def message
|
264
294
|
@message || @data[:message]
|
265
295
|
end
|
266
|
-
|
267
296
|
end
|
268
297
|
|
269
298
|
class SsmlMarksNotSupportedForTextTypeException < ServiceError
|
@@ -279,7 +308,6 @@ module Aws::Polly
|
|
279
308
|
def message
|
280
309
|
@message || @data[:message]
|
281
310
|
end
|
282
|
-
|
283
311
|
end
|
284
312
|
|
285
313
|
class SynthesisTaskNotFoundException < ServiceError
|
@@ -295,7 +323,6 @@ module Aws::Polly
|
|
295
323
|
def message
|
296
324
|
@message || @data[:message]
|
297
325
|
end
|
298
|
-
|
299
326
|
end
|
300
327
|
|
301
328
|
class TextLengthExceededException < ServiceError
|
@@ -311,7 +338,6 @@ module Aws::Polly
|
|
311
338
|
def message
|
312
339
|
@message || @data[:message]
|
313
340
|
end
|
314
|
-
|
315
341
|
end
|
316
342
|
|
317
343
|
class UnsupportedPlsAlphabetException < ServiceError
|
@@ -327,7 +353,6 @@ module Aws::Polly
|
|
327
353
|
def message
|
328
354
|
@message || @data[:message]
|
329
355
|
end
|
330
|
-
|
331
356
|
end
|
332
357
|
|
333
358
|
class UnsupportedPlsLanguageException < ServiceError
|
@@ -343,7 +368,6 @@ module Aws::Polly
|
|
343
368
|
def message
|
344
369
|
@message || @data[:message]
|
345
370
|
end
|
346
|
-
|
347
371
|
end
|
348
372
|
|
349
373
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -6,6 +8,7 @@
|
|
6
8
|
# WARNING ABOUT GENERATED CODE
|
7
9
|
|
8
10
|
module Aws::Polly
|
11
|
+
|
9
12
|
class Resource
|
10
13
|
|
11
14
|
# @param options ({})
|
data/lib/aws-sdk-polly/types.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -610,7 +612,7 @@ module Aws::Polly
|
|
610
612
|
# speech_mark_types: ["sentence"], # accepts sentence, ssml, viseme, word
|
611
613
|
# text: "Text", # required
|
612
614
|
# text_type: "ssml", # accepts ssml, text
|
613
|
-
# voice_id: "Aditi", # required, accepts Aditi, Amy, Astrid, Bianca, Brian, Camila, 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, Lupe, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel, Mizuki, Naja, Nicole, Penelope, Raveena, Ricardo, Ruben, Russell, Salli, Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu
|
615
|
+
# voice_id: "Aditi", # required, accepts Aditi, Amy, Astrid, Bianca, Brian, Camila, Carla, Carmen, Celine, Chantal, Conchita, Cristiano, Dora, Emma, Enrique, Ewa, Filiz, Geraint, Giorgio, Gwyneth, Hans, Ines, Ivy, Jacek, Jan, Joanna, Joey, Justin, Karl, Kendra, Kevin, Kimberly, Lea, Liv, Lotte, Lucia, Lupe, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel, Mizuki, Naja, Nicole, Penelope, Raveena, Ricardo, Ruben, Russell, Salli, Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu
|
614
616
|
# }
|
615
617
|
#
|
616
618
|
# @!attribute [rw] engine
|
@@ -859,7 +861,7 @@ module Aws::Polly
|
|
859
861
|
# speech_mark_types: ["sentence"], # accepts sentence, ssml, viseme, word
|
860
862
|
# text: "Text", # required
|
861
863
|
# text_type: "ssml", # accepts ssml, text
|
862
|
-
# voice_id: "Aditi", # required, accepts Aditi, Amy, Astrid, Bianca, Brian, Camila, 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, Lupe, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel, Mizuki, Naja, Nicole, Penelope, Raveena, Ricardo, Ruben, Russell, Salli, Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu
|
864
|
+
# voice_id: "Aditi", # required, accepts Aditi, Amy, Astrid, Bianca, Brian, Camila, Carla, Carmen, Celine, Chantal, Conchita, Cristiano, Dora, Emma, Enrique, Ewa, Filiz, Geraint, Giorgio, Gwyneth, Hans, Ines, Ivy, Jacek, Jan, Joanna, Joey, Justin, Karl, Kendra, Kevin, Kimberly, Lea, Liv, Lotte, Lucia, Lupe, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel, Mizuki, Naja, Nicole, Penelope, Raveena, Ricardo, Ruben, Russell, Salli, Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu
|
863
865
|
# }
|
864
866
|
#
|
865
867
|
# @!attribute [rw] engine
|
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.32.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:
|
11
|
+
date: 2020-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.99.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.99.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
version: '0'
|
83
83
|
requirements: []
|
84
84
|
rubyforge_project:
|
85
|
-
rubygems_version: 2.
|
85
|
+
rubygems_version: 2.7.6.2
|
86
86
|
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: AWS SDK for Ruby - Amazon Polly
|