aws-sdk-polly 1.25.0 → 1.30.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 +7 -4
- data/lib/aws-sdk-polly/client.rb +146 -66
- data/lib/aws-sdk-polly/client_api.rb +17 -2
- data/lib/aws-sdk-polly/errors.rb +58 -20
- data/lib/aws-sdk-polly/resource.rb +1 -0
- data/lib/aws-sdk-polly/types.rb +109 -53
- 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: 1798aebf951e31e914b67c0f2792982d4ee76a10b91ddefc465d316d2fad950a
|
4
|
+
data.tar.gz: 13c1f8158904a6db6548e514ac4674400067430972010c7b8ae7719f99048afa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 050dd923db1cb853a0f53319719fa43073c2a6a0074bed8947e0fce64a7d238295f72edee5b0dad9ff4170bc3954cc7a82be1e682821614dba1a608342b83d6e
|
7
|
+
data.tar.gz: bb99d05b977ca31a3379d8b2b3f41f10876cd3c138d442e212b9e7f10fc589828a0451e74bca23110e31310dfd5e0f62208d72dedf7cbd2525b7b140f208b431
|
data/lib/aws-sdk-polly.rb
CHANGED
@@ -24,17 +24,20 @@ require_relative 'aws-sdk-polly/customizations'
|
|
24
24
|
# methods each accept a hash of request parameters and return a response
|
25
25
|
# structure.
|
26
26
|
#
|
27
|
+
# polly = Aws::Polly::Client.new
|
28
|
+
# resp = polly.delete_lexicon(params)
|
29
|
+
#
|
27
30
|
# See {Client} for more information.
|
28
31
|
#
|
29
32
|
# # Errors
|
30
33
|
#
|
31
|
-
# Errors returned from Amazon Polly
|
32
|
-
# extend {Errors::ServiceError}.
|
34
|
+
# Errors returned from Amazon Polly are defined in the
|
35
|
+
# {Errors} module and all extend {Errors::ServiceError}.
|
33
36
|
#
|
34
37
|
# begin
|
35
38
|
# # do stuff
|
36
39
|
# rescue Aws::Polly::Errors::ServiceError
|
37
|
-
# # rescues all
|
40
|
+
# # rescues all Amazon Polly API errors
|
38
41
|
# end
|
39
42
|
#
|
40
43
|
# See {Errors} for more information.
|
@@ -42,6 +45,6 @@ require_relative 'aws-sdk-polly/customizations'
|
|
42
45
|
# @service
|
43
46
|
module Aws::Polly
|
44
47
|
|
45
|
-
GEM_VERSION = '1.
|
48
|
+
GEM_VERSION = '1.30.0'
|
46
49
|
|
47
50
|
end
|
data/lib/aws-sdk-polly/client.rb
CHANGED
@@ -30,6 +30,18 @@ require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
|
30
30
|
Aws::Plugins::GlobalConfiguration.add_identifier(:polly)
|
31
31
|
|
32
32
|
module Aws::Polly
|
33
|
+
# An API client for Polly. To construct a client, you need to configure a `:region` and `:credentials`.
|
34
|
+
#
|
35
|
+
# client = Aws::Polly::Client.new(
|
36
|
+
# region: region_name,
|
37
|
+
# credentials: credentials,
|
38
|
+
# # ...
|
39
|
+
# )
|
40
|
+
#
|
41
|
+
# For details on configuring region and credentials see
|
42
|
+
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
|
43
|
+
#
|
44
|
+
# See {#initialize} for a full list of supported configuration options.
|
33
45
|
class Client < Seahorse::Client::Base
|
34
46
|
|
35
47
|
include Aws::ClientStubs
|
@@ -93,7 +105,7 @@ module Aws::Polly
|
|
93
105
|
# @option options [required, String] :region
|
94
106
|
# The AWS region to connect to. The configured `:region` is
|
95
107
|
# used to determine the service `:endpoint`. When not passed,
|
96
|
-
# a default `:region` is
|
108
|
+
# a default `:region` is searched for in the following locations:
|
97
109
|
#
|
98
110
|
# * `Aws.config[:region]`
|
99
111
|
# * `ENV['AWS_REGION']`
|
@@ -108,6 +120,12 @@ module Aws::Polly
|
|
108
120
|
# When set to `true`, a thread polling for endpoints will be running in
|
109
121
|
# the background every 60 secs (default). Defaults to `false`.
|
110
122
|
#
|
123
|
+
# @option options [Boolean] :adaptive_retry_wait_to_fill (true)
|
124
|
+
# Used only in `adaptive` retry mode. When true, the request will sleep
|
125
|
+
# until there is sufficent client side capacity to retry the request.
|
126
|
+
# When false, the request will raise a `RetryCapacityNotAvailableError` and will
|
127
|
+
# not retry instead of sleeping.
|
128
|
+
#
|
111
129
|
# @option options [Boolean] :client_side_monitoring (false)
|
112
130
|
# When `true`, client-side metrics will be collected for all API requests from
|
113
131
|
# this client.
|
@@ -132,6 +150,10 @@ module Aws::Polly
|
|
132
150
|
# When `true`, an attempt is made to coerce request parameters into
|
133
151
|
# the required types.
|
134
152
|
#
|
153
|
+
# @option options [Boolean] :correct_clock_skew (true)
|
154
|
+
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
155
|
+
# a clock skew correction and retry requests with skewed client clocks.
|
156
|
+
#
|
135
157
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
136
158
|
# Set to true to disable SDK automatically adding host prefix
|
137
159
|
# to default service endpoint when available.
|
@@ -139,7 +161,7 @@ module Aws::Polly
|
|
139
161
|
# @option options [String] :endpoint
|
140
162
|
# The client endpoint is normally constructed from the `:region`
|
141
163
|
# option. You should only configure an `:endpoint` when connecting
|
142
|
-
# to test endpoints. This should be
|
164
|
+
# to test endpoints. This should be a valid HTTP(S) URI.
|
143
165
|
#
|
144
166
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
145
167
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -154,7 +176,7 @@ module Aws::Polly
|
|
154
176
|
# requests fetching endpoints information. Defaults to 60 sec.
|
155
177
|
#
|
156
178
|
# @option options [Boolean] :endpoint_discovery (false)
|
157
|
-
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
179
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
158
180
|
#
|
159
181
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
160
182
|
# The log formatter.
|
@@ -166,15 +188,29 @@ module Aws::Polly
|
|
166
188
|
# The Logger instance to send log messages to. If this option
|
167
189
|
# is not set, logging will be disabled.
|
168
190
|
#
|
191
|
+
# @option options [Integer] :max_attempts (3)
|
192
|
+
# An integer representing the maximum number attempts that will be made for
|
193
|
+
# a single request, including the initial attempt. For example,
|
194
|
+
# setting this value to 5 will result in a request being retried up to
|
195
|
+
# 4 times. Used in `standard` and `adaptive` retry modes.
|
196
|
+
#
|
169
197
|
# @option options [String] :profile ("default")
|
170
198
|
# Used when loading credentials from the shared credentials file
|
171
199
|
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
172
200
|
#
|
201
|
+
# @option options [Proc] :retry_backoff
|
202
|
+
# A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
|
203
|
+
# This option is only used in the `legacy` retry mode.
|
204
|
+
#
|
173
205
|
# @option options [Float] :retry_base_delay (0.3)
|
174
|
-
# The base delay in seconds used by the default backoff function.
|
206
|
+
# The base delay in seconds used by the default backoff function. This option
|
207
|
+
# is only used in the `legacy` retry mode.
|
175
208
|
#
|
176
209
|
# @option options [Symbol] :retry_jitter (:none)
|
177
|
-
# A delay randomiser function used by the default backoff function.
|
210
|
+
# A delay randomiser function used by the default backoff function.
|
211
|
+
# Some predefined functions can be referenced by name - :none, :equal, :full,
|
212
|
+
# otherwise a Proc that takes and returns a number. This option is only used
|
213
|
+
# in the `legacy` retry mode.
|
178
214
|
#
|
179
215
|
# @see https://www.awsarchitectureblog.com/2015/03/backoff.html
|
180
216
|
#
|
@@ -182,11 +218,30 @@ module Aws::Polly
|
|
182
218
|
# The maximum number of times to retry failed requests. Only
|
183
219
|
# ~ 500 level server errors and certain ~ 400 level client errors
|
184
220
|
# are retried. Generally, these are throttling errors, data
|
185
|
-
# checksum errors, networking errors, timeout errors
|
186
|
-
# errors from expired credentials.
|
221
|
+
# checksum errors, networking errors, timeout errors, auth errors,
|
222
|
+
# endpoint discovery, and errors from expired credentials.
|
223
|
+
# This option is only used in the `legacy` retry mode.
|
187
224
|
#
|
188
225
|
# @option options [Integer] :retry_max_delay (0)
|
189
|
-
# The maximum number of seconds to delay between retries (0 for no limit)
|
226
|
+
# The maximum number of seconds to delay between retries (0 for no limit)
|
227
|
+
# used by the default backoff function. This option is only used in the
|
228
|
+
# `legacy` retry mode.
|
229
|
+
#
|
230
|
+
# @option options [String] :retry_mode ("legacy")
|
231
|
+
# Specifies which retry algorithm to use. Values are:
|
232
|
+
#
|
233
|
+
# * `legacy` - The pre-existing retry behavior. This is default value if
|
234
|
+
# no retry mode is provided.
|
235
|
+
#
|
236
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
237
|
+
# This includes support for retry quotas, which limit the number of
|
238
|
+
# unsuccessful retries a client can make.
|
239
|
+
#
|
240
|
+
# * `adaptive` - An experimental retry mode that includes all the
|
241
|
+
# functionality of `standard` mode along with automatic client side
|
242
|
+
# throttling. This is a provisional mode that may change behavior
|
243
|
+
# in the future.
|
244
|
+
#
|
190
245
|
#
|
191
246
|
# @option options [String] :secret_access_key
|
192
247
|
#
|
@@ -209,16 +264,15 @@ module Aws::Polly
|
|
209
264
|
# requests through. Formatted like 'http://proxy.com:123'.
|
210
265
|
#
|
211
266
|
# @option options [Float] :http_open_timeout (15) The number of
|
212
|
-
# seconds to wait when opening a HTTP session before
|
267
|
+
# seconds to wait when opening a HTTP session before raising a
|
213
268
|
# `Timeout::Error`.
|
214
269
|
#
|
215
270
|
# @option options [Integer] :http_read_timeout (60) The default
|
216
271
|
# 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}.
|
272
|
+
# safely be set per-request on the session.
|
219
273
|
#
|
220
274
|
# @option options [Float] :http_idle_timeout (5) The number of
|
221
|
-
# seconds a connection is allowed to sit
|
275
|
+
# seconds a connection is allowed to sit idle before it is
|
222
276
|
# considered stale. Stale connections are closed and removed
|
223
277
|
# from the pool before making a request.
|
224
278
|
#
|
@@ -227,7 +281,7 @@ module Aws::Polly
|
|
227
281
|
# request body. This option has no effect unless the request has
|
228
282
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
229
283
|
# disables this behaviour. This value can safely be set per
|
230
|
-
# request on the session
|
284
|
+
# request on the session.
|
231
285
|
#
|
232
286
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
233
287
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -263,7 +317,7 @@ module Aws::Polly
|
|
263
317
|
#
|
264
318
|
#
|
265
319
|
#
|
266
|
-
# [1]:
|
320
|
+
# [1]: https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html
|
267
321
|
#
|
268
322
|
# @option params [required, String] :name
|
269
323
|
# The name of the lexicon to delete. Must be an existing lexicon in the
|
@@ -320,6 +374,10 @@ module Aws::Polly
|
|
320
374
|
# This operation requires permissions to perform the
|
321
375
|
# `polly:DescribeVoices` action.
|
322
376
|
#
|
377
|
+
# @option params [String] :engine
|
378
|
+
# Specifies the engine (`standard` or `neural`) used by Amazon Polly
|
379
|
+
# when processing input text for speech synthesis.
|
380
|
+
#
|
323
381
|
# @option params [String] :language_code
|
324
382
|
# The language identification tag (ISO 639 code for the language
|
325
383
|
# name-ISO 3166 country code) for filtering the list of voices returned.
|
@@ -383,6 +441,7 @@ module Aws::Polly
|
|
383
441
|
# @example Request syntax with placeholder values
|
384
442
|
#
|
385
443
|
# resp = client.describe_voices({
|
444
|
+
# engine: "standard", # accepts standard, neural
|
386
445
|
# 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
446
|
# include_additional_language_codes: false,
|
388
447
|
# next_token: "NextToken",
|
@@ -392,12 +451,14 @@ module Aws::Polly
|
|
392
451
|
#
|
393
452
|
# resp.voices #=> Array
|
394
453
|
# resp.voices[0].gender #=> String, one of "Female", "Male"
|
395
|
-
# resp.voices[0].id #=> String, one of "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"
|
454
|
+
# 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"
|
396
455
|
# 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"
|
397
456
|
# resp.voices[0].language_name #=> String
|
398
457
|
# resp.voices[0].name #=> String
|
399
458
|
# resp.voices[0].additional_language_codes #=> Array
|
400
459
|
# 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"
|
460
|
+
# resp.voices[0].supported_engines #=> Array
|
461
|
+
# resp.voices[0].supported_engines[0] #=> String, one of "standard", "neural"
|
401
462
|
# resp.next_token #=> String
|
402
463
|
#
|
403
464
|
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/DescribeVoices AWS API Documentation
|
@@ -414,7 +475,7 @@ module Aws::Polly
|
|
414
475
|
#
|
415
476
|
#
|
416
477
|
#
|
417
|
-
# [1]:
|
478
|
+
# [1]: https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html
|
418
479
|
#
|
419
480
|
# @option params [required, String] :name
|
420
481
|
# Name of the lexicon.
|
@@ -495,6 +556,7 @@ module Aws::Polly
|
|
495
556
|
#
|
496
557
|
# @example Response structure
|
497
558
|
#
|
559
|
+
# resp.synthesis_task.engine #=> String, one of "standard", "neural"
|
498
560
|
# resp.synthesis_task.task_id #=> String
|
499
561
|
# resp.synthesis_task.task_status #=> String, one of "scheduled", "inProgress", "completed", "failed"
|
500
562
|
# resp.synthesis_task.task_status_reason #=> String
|
@@ -509,7 +571,7 @@ module Aws::Polly
|
|
509
571
|
# resp.synthesis_task.speech_mark_types #=> Array
|
510
572
|
# resp.synthesis_task.speech_mark_types[0] #=> String, one of "sentence", "ssml", "viseme", "word"
|
511
573
|
# resp.synthesis_task.text_type #=> String, one of "ssml", "text"
|
512
|
-
# resp.synthesis_task.voice_id #=> String, one of "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"
|
574
|
+
# 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"
|
513
575
|
# 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"
|
514
576
|
#
|
515
577
|
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/GetSpeechSynthesisTask AWS API Documentation
|
@@ -526,7 +588,7 @@ module Aws::Polly
|
|
526
588
|
#
|
527
589
|
#
|
528
590
|
#
|
529
|
-
# [1]:
|
591
|
+
# [1]: https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html
|
530
592
|
#
|
531
593
|
# @option params [String] :next_token
|
532
594
|
# An opaque pagination token returned from previous `ListLexicons`
|
@@ -609,6 +671,8 @@ module Aws::Polly
|
|
609
671
|
# * {Types::ListSpeechSynthesisTasksOutput#next_token #next_token} => String
|
610
672
|
# * {Types::ListSpeechSynthesisTasksOutput#synthesis_tasks #synthesis_tasks} => Array<Types::SynthesisTask>
|
611
673
|
#
|
674
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
675
|
+
#
|
612
676
|
# @example Request syntax with placeholder values
|
613
677
|
#
|
614
678
|
# resp = client.list_speech_synthesis_tasks({
|
@@ -621,6 +685,7 @@ module Aws::Polly
|
|
621
685
|
#
|
622
686
|
# resp.next_token #=> String
|
623
687
|
# resp.synthesis_tasks #=> Array
|
688
|
+
# resp.synthesis_tasks[0].engine #=> String, one of "standard", "neural"
|
624
689
|
# resp.synthesis_tasks[0].task_id #=> String
|
625
690
|
# resp.synthesis_tasks[0].task_status #=> String, one of "scheduled", "inProgress", "completed", "failed"
|
626
691
|
# resp.synthesis_tasks[0].task_status_reason #=> String
|
@@ -635,7 +700,7 @@ module Aws::Polly
|
|
635
700
|
# resp.synthesis_tasks[0].speech_mark_types #=> Array
|
636
701
|
# resp.synthesis_tasks[0].speech_mark_types[0] #=> String, one of "sentence", "ssml", "viseme", "word"
|
637
702
|
# resp.synthesis_tasks[0].text_type #=> String, one of "ssml", "text"
|
638
|
-
# resp.synthesis_tasks[0].voice_id #=> String, one of "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"
|
703
|
+
# 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"
|
639
704
|
# 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"
|
640
705
|
#
|
641
706
|
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/ListSpeechSynthesisTasks AWS API Documentation
|
@@ -657,7 +722,7 @@ module Aws::Polly
|
|
657
722
|
#
|
658
723
|
#
|
659
724
|
#
|
660
|
-
# [1]:
|
725
|
+
# [1]: https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html
|
661
726
|
#
|
662
727
|
# @option params [required, String] :name
|
663
728
|
# Name of the lexicon. The name must follow the regular express format
|
@@ -708,6 +773,27 @@ module Aws::Polly
|
|
708
773
|
# SpeechSynthesisTask object, which will include an identifier of this
|
709
774
|
# task as well as the current status.
|
710
775
|
#
|
776
|
+
# @option params [String] :engine
|
777
|
+
# Specifies the engine (`standard` or `neural`) for Amazon Polly to use
|
778
|
+
# when processing input text for speech synthesis. Using a voice that is
|
779
|
+
# not supported for the engine selected will result in an error.
|
780
|
+
#
|
781
|
+
# @option params [String] :language_code
|
782
|
+
# Optional language code for the Speech Synthesis request. This is only
|
783
|
+
# necessary if using a bilingual voice, such as Aditi, which can be used
|
784
|
+
# for either Indian English (en-IN) or Hindi (hi-IN).
|
785
|
+
#
|
786
|
+
# If a bilingual voice is used and no language code is specified, Amazon
|
787
|
+
# Polly will use the default language of the bilingual voice. The
|
788
|
+
# default language for any voice is the one returned by the
|
789
|
+
# [DescribeVoices][1] operation for the `LanguageCode` parameter. For
|
790
|
+
# example, if no language code is specified, Aditi will use Indian
|
791
|
+
# English rather than Hindi.
|
792
|
+
#
|
793
|
+
#
|
794
|
+
#
|
795
|
+
# [1]: https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html
|
796
|
+
#
|
711
797
|
# @option params [Array<String>] :lexicon_names
|
712
798
|
# List of one or more pronunciation lexicon names you want the service
|
713
799
|
# to apply during synthesis. Lexicons are applied only if the language
|
@@ -727,8 +813,9 @@ module Aws::Polly
|
|
727
813
|
# @option params [String] :sample_rate
|
728
814
|
# The audio frequency specified in Hz.
|
729
815
|
#
|
730
|
-
# The valid values for mp3 and ogg\_vorbis are "8000", "16000",
|
731
|
-
# "22050". The default value is
|
816
|
+
# The valid values for mp3 and ogg\_vorbis are "8000", "16000",
|
817
|
+
# "22050", and "24000". The default value for standard voices is
|
818
|
+
# "22050". The default value for neural voices is "24000".
|
732
819
|
#
|
733
820
|
# Valid values for pcm are "8000" and "16000" The default value is
|
734
821
|
# "16000".
|
@@ -751,22 +838,6 @@ module Aws::Polly
|
|
751
838
|
# @option params [required, String] :voice_id
|
752
839
|
# Voice ID to use for the synthesis.
|
753
840
|
#
|
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
841
|
# @return [Types::StartSpeechSynthesisTaskOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
771
842
|
#
|
772
843
|
# * {Types::StartSpeechSynthesisTaskOutput#synthesis_task #synthesis_task} => Types::SynthesisTask
|
@@ -774,6 +845,8 @@ module Aws::Polly
|
|
774
845
|
# @example Request syntax with placeholder values
|
775
846
|
#
|
776
847
|
# resp = client.start_speech_synthesis_task({
|
848
|
+
# engine: "standard", # accepts standard, neural
|
849
|
+
# 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
850
|
# lexicon_names: ["LexiconName"],
|
778
851
|
# output_format: "json", # required, accepts json, mp3, ogg_vorbis, pcm
|
779
852
|
# output_s3_bucket_name: "OutputS3BucketName", # required
|
@@ -783,12 +856,12 @@ module Aws::Polly
|
|
783
856
|
# speech_mark_types: ["sentence"], # accepts sentence, ssml, viseme, word
|
784
857
|
# text: "Text", # required
|
785
858
|
# text_type: "ssml", # accepts ssml, text
|
786
|
-
# 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
|
859
|
+
# 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
|
788
860
|
# })
|
789
861
|
#
|
790
862
|
# @example Response structure
|
791
863
|
#
|
864
|
+
# resp.synthesis_task.engine #=> String, one of "standard", "neural"
|
792
865
|
# resp.synthesis_task.task_id #=> String
|
793
866
|
# resp.synthesis_task.task_status #=> String, one of "scheduled", "inProgress", "completed", "failed"
|
794
867
|
# resp.synthesis_task.task_status_reason #=> String
|
@@ -803,7 +876,7 @@ module Aws::Polly
|
|
803
876
|
# resp.synthesis_task.speech_mark_types #=> Array
|
804
877
|
# resp.synthesis_task.speech_mark_types[0] #=> String, one of "sentence", "ssml", "viseme", "word"
|
805
878
|
# resp.synthesis_task.text_type #=> String, one of "ssml", "text"
|
806
|
-
# resp.synthesis_task.voice_id #=> String, one of "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"
|
879
|
+
# 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"
|
807
880
|
# 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"
|
808
881
|
#
|
809
882
|
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/StartSpeechSynthesisTask AWS API Documentation
|
@@ -823,7 +896,28 @@ module Aws::Polly
|
|
823
896
|
#
|
824
897
|
#
|
825
898
|
#
|
826
|
-
# [1]:
|
899
|
+
# [1]: https://docs.aws.amazon.com/polly/latest/dg/how-text-to-speech-works.html
|
900
|
+
#
|
901
|
+
# @option params [String] :engine
|
902
|
+
# Specifies the engine (`standard` or `neural`) for Amazon Polly to use
|
903
|
+
# when processing input text for speech synthesis. Using a voice that is
|
904
|
+
# not supported for the engine selected will result in an error.
|
905
|
+
#
|
906
|
+
# @option params [String] :language_code
|
907
|
+
# Optional language code for the Synthesize Speech request. This is only
|
908
|
+
# necessary if using a bilingual voice, such as Aditi, which can be used
|
909
|
+
# for either Indian English (en-IN) or Hindi (hi-IN).
|
910
|
+
#
|
911
|
+
# If a bilingual voice is used and no language code is specified, Amazon
|
912
|
+
# Polly will use the default language of the bilingual voice. The
|
913
|
+
# default language for any voice is the one returned by the
|
914
|
+
# [DescribeVoices][1] operation for the `LanguageCode` parameter. For
|
915
|
+
# example, if no language code is specified, Aditi will use Indian
|
916
|
+
# English rather than Hindi.
|
917
|
+
#
|
918
|
+
#
|
919
|
+
#
|
920
|
+
# [1]: https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html
|
827
921
|
#
|
828
922
|
# @option params [Array<String>] :lexicon_names
|
829
923
|
# List of one or more pronunciation lexicon names you want the service
|
@@ -833,7 +927,7 @@ module Aws::Polly
|
|
833
927
|
#
|
834
928
|
#
|
835
929
|
#
|
836
|
-
# [1]:
|
930
|
+
# [1]: https://docs.aws.amazon.com/polly/latest/dg/API_PutLexicon.html
|
837
931
|
#
|
838
932
|
# @option params [required, String] :output_format
|
839
933
|
# The format in which the returned output will be encoded. For audio
|
@@ -846,10 +940,11 @@ module Aws::Polly
|
|
846
940
|
# @option params [String] :sample_rate
|
847
941
|
# The audio frequency specified in Hz.
|
848
942
|
#
|
849
|
-
# The valid values for
|
850
|
-
# and "
|
943
|
+
# The valid values for mp3 and ogg\_vorbis are "8000", "16000",
|
944
|
+
# "22050", and "24000". The default value for standard voices is
|
945
|
+
# "22050". The default value for neural voices is "24000".
|
851
946
|
#
|
852
|
-
# Valid values for
|
947
|
+
# Valid values for pcm are "8000" and "16000" The default value is
|
853
948
|
# "16000".
|
854
949
|
#
|
855
950
|
# @option params [Array<String>] :speech_mark_types
|
@@ -865,7 +960,7 @@ module Aws::Polly
|
|
865
960
|
#
|
866
961
|
#
|
867
962
|
#
|
868
|
-
# [1]:
|
963
|
+
# [1]: https://docs.aws.amazon.com/polly/latest/dg/ssml.html
|
869
964
|
#
|
870
965
|
# @option params [required, String] :voice_id
|
871
966
|
# Voice ID to use for the synthesis. You can get a list of available
|
@@ -873,22 +968,6 @@ module Aws::Polly
|
|
873
968
|
#
|
874
969
|
#
|
875
970
|
#
|
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
971
|
# [1]: https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html
|
893
972
|
#
|
894
973
|
# @return [Types::SynthesizeSpeechOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -923,14 +1002,15 @@ module Aws::Polly
|
|
923
1002
|
# @example Request syntax with placeholder values
|
924
1003
|
#
|
925
1004
|
# resp = client.synthesize_speech({
|
1005
|
+
# engine: "standard", # accepts standard, neural
|
1006
|
+
# 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
1007
|
# lexicon_names: ["LexiconName"],
|
927
1008
|
# output_format: "json", # required, accepts json, mp3, ogg_vorbis, pcm
|
928
1009
|
# sample_rate: "SampleRate",
|
929
1010
|
# speech_mark_types: ["sentence"], # accepts sentence, ssml, viseme, word
|
930
1011
|
# text: "Text", # required
|
931
1012
|
# text_type: "ssml", # accepts ssml, text
|
932
|
-
# 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
|
1013
|
+
# 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
|
934
1014
|
# })
|
935
1015
|
#
|
936
1016
|
# @example Response structure
|
@@ -961,7 +1041,7 @@ module Aws::Polly
|
|
961
1041
|
params: params,
|
962
1042
|
config: config)
|
963
1043
|
context[:gem_name] = 'aws-sdk-polly'
|
964
|
-
context[:gem_version] = '1.
|
1044
|
+
context[:gem_version] = '1.30.0'
|
965
1045
|
Seahorse::Client::Request.new(handlers, context)
|
966
1046
|
end
|
967
1047
|
|
@@ -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
|
|
data/lib/aws-sdk-polly/errors.rb
CHANGED
@@ -6,10 +6,68 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::Polly
|
9
|
+
|
10
|
+
# When Polly returns an error response, the Ruby SDK constructs and raises an error.
|
11
|
+
# These errors all extend Aws::Polly::Errors::ServiceError < {Aws::Errors::ServiceError}
|
12
|
+
#
|
13
|
+
# You can rescue all Polly errors using ServiceError:
|
14
|
+
#
|
15
|
+
# begin
|
16
|
+
# # do stuff
|
17
|
+
# rescue Aws::Polly::Errors::ServiceError
|
18
|
+
# # rescues all Polly API errors
|
19
|
+
# end
|
20
|
+
#
|
21
|
+
#
|
22
|
+
# ## Request Context
|
23
|
+
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
24
|
+
# information about the request that generated the error.
|
25
|
+
# See {Seahorse::Client::RequestContext} for more information.
|
26
|
+
#
|
27
|
+
# ## Error Classes
|
28
|
+
# * {EngineNotSupportedException}
|
29
|
+
# * {InvalidLexiconException}
|
30
|
+
# * {InvalidNextTokenException}
|
31
|
+
# * {InvalidS3BucketException}
|
32
|
+
# * {InvalidS3KeyException}
|
33
|
+
# * {InvalidSampleRateException}
|
34
|
+
# * {InvalidSnsTopicArnException}
|
35
|
+
# * {InvalidSsmlException}
|
36
|
+
# * {InvalidTaskIdException}
|
37
|
+
# * {LanguageNotSupportedException}
|
38
|
+
# * {LexiconNotFoundException}
|
39
|
+
# * {LexiconSizeExceededException}
|
40
|
+
# * {MarksNotSupportedForFormatException}
|
41
|
+
# * {MaxLexemeLengthExceededException}
|
42
|
+
# * {MaxLexiconsNumberExceededException}
|
43
|
+
# * {ServiceFailureException}
|
44
|
+
# * {SsmlMarksNotSupportedForTextTypeException}
|
45
|
+
# * {SynthesisTaskNotFoundException}
|
46
|
+
# * {TextLengthExceededException}
|
47
|
+
# * {UnsupportedPlsAlphabetException}
|
48
|
+
# * {UnsupportedPlsLanguageException}
|
49
|
+
#
|
50
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
51
|
+
# if they are not defined above.
|
9
52
|
module Errors
|
10
53
|
|
11
54
|
extend Aws::Errors::DynamicErrors
|
12
55
|
|
56
|
+
class EngineNotSupportedException < ServiceError
|
57
|
+
|
58
|
+
# @param [Seahorse::Client::RequestContext] context
|
59
|
+
# @param [String] message
|
60
|
+
# @param [Aws::Polly::Types::EngineNotSupportedException] data
|
61
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
62
|
+
super(context, message, data)
|
63
|
+
end
|
64
|
+
|
65
|
+
# @return [String]
|
66
|
+
def message
|
67
|
+
@message || @data[:message]
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
13
71
|
class InvalidLexiconException < ServiceError
|
14
72
|
|
15
73
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -23,7 +81,6 @@ module Aws::Polly
|
|
23
81
|
def message
|
24
82
|
@message || @data[:message]
|
25
83
|
end
|
26
|
-
|
27
84
|
end
|
28
85
|
|
29
86
|
class InvalidNextTokenException < ServiceError
|
@@ -39,7 +96,6 @@ module Aws::Polly
|
|
39
96
|
def message
|
40
97
|
@message || @data[:message]
|
41
98
|
end
|
42
|
-
|
43
99
|
end
|
44
100
|
|
45
101
|
class InvalidS3BucketException < ServiceError
|
@@ -55,7 +111,6 @@ module Aws::Polly
|
|
55
111
|
def message
|
56
112
|
@message || @data[:message]
|
57
113
|
end
|
58
|
-
|
59
114
|
end
|
60
115
|
|
61
116
|
class InvalidS3KeyException < ServiceError
|
@@ -71,7 +126,6 @@ module Aws::Polly
|
|
71
126
|
def message
|
72
127
|
@message || @data[:message]
|
73
128
|
end
|
74
|
-
|
75
129
|
end
|
76
130
|
|
77
131
|
class InvalidSampleRateException < ServiceError
|
@@ -87,7 +141,6 @@ module Aws::Polly
|
|
87
141
|
def message
|
88
142
|
@message || @data[:message]
|
89
143
|
end
|
90
|
-
|
91
144
|
end
|
92
145
|
|
93
146
|
class InvalidSnsTopicArnException < ServiceError
|
@@ -103,7 +156,6 @@ module Aws::Polly
|
|
103
156
|
def message
|
104
157
|
@message || @data[:message]
|
105
158
|
end
|
106
|
-
|
107
159
|
end
|
108
160
|
|
109
161
|
class InvalidSsmlException < ServiceError
|
@@ -119,7 +171,6 @@ module Aws::Polly
|
|
119
171
|
def message
|
120
172
|
@message || @data[:message]
|
121
173
|
end
|
122
|
-
|
123
174
|
end
|
124
175
|
|
125
176
|
class InvalidTaskIdException < ServiceError
|
@@ -135,7 +186,6 @@ module Aws::Polly
|
|
135
186
|
def message
|
136
187
|
@message || @data[:message]
|
137
188
|
end
|
138
|
-
|
139
189
|
end
|
140
190
|
|
141
191
|
class LanguageNotSupportedException < ServiceError
|
@@ -151,7 +201,6 @@ module Aws::Polly
|
|
151
201
|
def message
|
152
202
|
@message || @data[:message]
|
153
203
|
end
|
154
|
-
|
155
204
|
end
|
156
205
|
|
157
206
|
class LexiconNotFoundException < ServiceError
|
@@ -167,7 +216,6 @@ module Aws::Polly
|
|
167
216
|
def message
|
168
217
|
@message || @data[:message]
|
169
218
|
end
|
170
|
-
|
171
219
|
end
|
172
220
|
|
173
221
|
class LexiconSizeExceededException < ServiceError
|
@@ -183,7 +231,6 @@ module Aws::Polly
|
|
183
231
|
def message
|
184
232
|
@message || @data[:message]
|
185
233
|
end
|
186
|
-
|
187
234
|
end
|
188
235
|
|
189
236
|
class MarksNotSupportedForFormatException < ServiceError
|
@@ -199,7 +246,6 @@ module Aws::Polly
|
|
199
246
|
def message
|
200
247
|
@message || @data[:message]
|
201
248
|
end
|
202
|
-
|
203
249
|
end
|
204
250
|
|
205
251
|
class MaxLexemeLengthExceededException < ServiceError
|
@@ -215,7 +261,6 @@ module Aws::Polly
|
|
215
261
|
def message
|
216
262
|
@message || @data[:message]
|
217
263
|
end
|
218
|
-
|
219
264
|
end
|
220
265
|
|
221
266
|
class MaxLexiconsNumberExceededException < ServiceError
|
@@ -231,7 +276,6 @@ module Aws::Polly
|
|
231
276
|
def message
|
232
277
|
@message || @data[:message]
|
233
278
|
end
|
234
|
-
|
235
279
|
end
|
236
280
|
|
237
281
|
class ServiceFailureException < ServiceError
|
@@ -247,7 +291,6 @@ module Aws::Polly
|
|
247
291
|
def message
|
248
292
|
@message || @data[:message]
|
249
293
|
end
|
250
|
-
|
251
294
|
end
|
252
295
|
|
253
296
|
class SsmlMarksNotSupportedForTextTypeException < ServiceError
|
@@ -263,7 +306,6 @@ module Aws::Polly
|
|
263
306
|
def message
|
264
307
|
@message || @data[:message]
|
265
308
|
end
|
266
|
-
|
267
309
|
end
|
268
310
|
|
269
311
|
class SynthesisTaskNotFoundException < ServiceError
|
@@ -279,7 +321,6 @@ module Aws::Polly
|
|
279
321
|
def message
|
280
322
|
@message || @data[:message]
|
281
323
|
end
|
282
|
-
|
283
324
|
end
|
284
325
|
|
285
326
|
class TextLengthExceededException < ServiceError
|
@@ -295,7 +336,6 @@ module Aws::Polly
|
|
295
336
|
def message
|
296
337
|
@message || @data[:message]
|
297
338
|
end
|
298
|
-
|
299
339
|
end
|
300
340
|
|
301
341
|
class UnsupportedPlsAlphabetException < ServiceError
|
@@ -311,7 +351,6 @@ module Aws::Polly
|
|
311
351
|
def message
|
312
352
|
@message || @data[:message]
|
313
353
|
end
|
314
|
-
|
315
354
|
end
|
316
355
|
|
317
356
|
class UnsupportedPlsLanguageException < ServiceError
|
@@ -327,7 +366,6 @@ module Aws::Polly
|
|
327
366
|
def message
|
328
367
|
@message || @data[:message]
|
329
368
|
end
|
330
|
-
|
331
369
|
end
|
332
370
|
|
333
371
|
end
|
data/lib/aws-sdk-polly/types.rb
CHANGED
@@ -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]:
|
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
|
@@ -587,10 +610,33 @@ module Aws::Polly
|
|
587
610
|
# speech_mark_types: ["sentence"], # accepts sentence, ssml, viseme, word
|
588
611
|
# text: "Text", # required
|
589
612
|
# text_type: "ssml", # accepts ssml, text
|
590
|
-
# 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
|
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
|
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 "
|
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 "
|
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,16 +851,41 @@ 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",
|
817
859
|
# speech_mark_types: ["sentence"], # accepts sentence, ssml, viseme, word
|
818
860
|
# text: "Text", # required
|
819
861
|
# text_type: "ssml", # accepts ssml, text
|
820
|
-
# 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
|
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
|
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]:
|
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
|
848
|
-
# and "
|
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
|
851
|
-
#
|
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]:
|
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]:
|
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.
|
4
|
+
version: 1.30.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-05-28 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.71.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.71.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
|