aws-sdk-polly 1.0.0.rc2 → 1.0.0.rc3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8bda5f8ce52db8ebd61cf6c91487a518799fffdf
4
- data.tar.gz: 6cdb641d229003a8c1f6ce2594a45a948f120aae
3
+ metadata.gz: c5e5d7267ddc5d3407e163aa59c281632c8729f2
4
+ data.tar.gz: e6d250d33b9dc232ad53a2d31eead0bebc422657
5
5
  SHA512:
6
- metadata.gz: 0b15b89e991aa5a24c40b69a18a77f1e07b379cccc62edc1dabcf06b8a875a0275eec4cd89dbf7cd35534848ce4eb9d6d4e19faade160a639cdbc3d0a659e013
7
- data.tar.gz: c9485bcb0690828f1f2c3c2ff6661fdf5354fe92a2fac955dcfb1a6d011c9aec6123d342cff29cad1e0936aaa0af93e181bcb2c4a001fd39afa3fe543b99e2a6
6
+ metadata.gz: 4b964cbf96519044ffd50c1a6d2b192be887e0570894c4bf4fb70f5f4b51330f86c6d0a4245ded079a6646466a7e62905b48059c5784749b64fc4c2c06b86882
7
+ data.tar.gz: e58fcd7311a0a0ea20444df361ce5c97ac62c087ef8f0900f2fd893890933134c79bf4a44bdb5ec89c0bd47a61aa6c1a964960600d46e1c45583c9e98a37697b
@@ -1,6 +1,6 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
@@ -1,6 +1,6 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
@@ -23,401 +23,448 @@ require 'aws-sdk-core/plugins/protocols/rest_json.rb'
23
23
 
24
24
  Aws::Plugins::GlobalConfiguration.add_identifier(:polly)
25
25
 
26
- module Aws
27
- module Polly
28
- class Client < Seahorse::Client::Base
26
+ module Aws::Polly
27
+ class Client < Seahorse::Client::Base
29
28
 
30
- include Aws::ClientStubs
29
+ include Aws::ClientStubs
31
30
 
32
- @identifier = :polly
31
+ @identifier = :polly
33
32
 
34
- set_api(ClientApi::API)
33
+ set_api(ClientApi::API)
35
34
 
36
- add_plugin(Seahorse::Client::Plugins::ContentLength)
37
- add_plugin(Aws::Plugins::CredentialsConfiguration)
38
- add_plugin(Aws::Plugins::Logging)
39
- add_plugin(Aws::Plugins::ParamConverter)
40
- add_plugin(Aws::Plugins::ParamValidator)
41
- add_plugin(Aws::Plugins::UserAgent)
42
- add_plugin(Aws::Plugins::HelpfulSocketErrors)
43
- add_plugin(Aws::Plugins::RetryErrors)
44
- add_plugin(Aws::Plugins::GlobalConfiguration)
45
- add_plugin(Aws::Plugins::RegionalEndpoint)
46
- add_plugin(Aws::Plugins::ResponsePaging)
47
- add_plugin(Aws::Plugins::StubResponses)
48
- add_plugin(Aws::Plugins::IdempotencyToken)
49
- add_plugin(Aws::Plugins::SignatureV4)
50
- add_plugin(Aws::Plugins::Protocols::RestJson)
35
+ add_plugin(Seahorse::Client::Plugins::ContentLength)
36
+ add_plugin(Aws::Plugins::CredentialsConfiguration)
37
+ add_plugin(Aws::Plugins::Logging)
38
+ add_plugin(Aws::Plugins::ParamConverter)
39
+ add_plugin(Aws::Plugins::ParamValidator)
40
+ add_plugin(Aws::Plugins::UserAgent)
41
+ add_plugin(Aws::Plugins::HelpfulSocketErrors)
42
+ add_plugin(Aws::Plugins::RetryErrors)
43
+ add_plugin(Aws::Plugins::GlobalConfiguration)
44
+ add_plugin(Aws::Plugins::RegionalEndpoint)
45
+ add_plugin(Aws::Plugins::ResponsePaging)
46
+ add_plugin(Aws::Plugins::StubResponses)
47
+ add_plugin(Aws::Plugins::IdempotencyToken)
48
+ add_plugin(Aws::Plugins::SignatureV4)
49
+ add_plugin(Aws::Plugins::Protocols::RestJson)
51
50
 
52
- # @option options [required, Aws::CredentialProvider] :credentials
53
- # Your AWS credentials. This can be an instance of any one of the
54
- # following classes:
55
- #
56
- # * `Aws::Credentials` - Used for configuring static, non-refreshing
57
- # credentials.
58
- #
59
- # * `Aws::InstanceProfileCredentials` - Used for loading credentials
60
- # from an EC2 IMDS on an EC2 instance.
61
- #
62
- # * `Aws::SharedCredentials` - Used for loading credentials from a
63
- # shared file, such as `~/.aws/config`.
64
- #
65
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
66
- #
67
- # When `:credentials` are not configured directly, the following
68
- # locations will be searched for credentials:
69
- #
70
- # * `Aws.config[:credentials]`
71
- # * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
72
- # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
73
- # * `~/.aws/credentials`
74
- # * `~/.aws/config`
75
- # * EC2 IMDS instance profile - When used by default, the timeouts are
76
- # very aggressive. Construct and pass an instance of
77
- # `Aws::InstanceProfileCredentails` to enable retries and extended
78
- # timeouts.
79
- # @option options [required, String] :region
80
- # The AWS region to connect to. The configured `:region` is
81
- # used to determine the service `:endpoint`. When not passed,
82
- # a default `:region` is search for in the following locations:
83
- #
84
- # * `Aws.config[:region]`
85
- # * `ENV['AWS_REGION']`
86
- # * `ENV['AMAZON_REGION']`
87
- # * `ENV['AWS_DEFAULT_REGION']`
88
- # * `~/.aws/credentials`
89
- # * `~/.aws/config`
90
- # @option options [String] :access_key_id
91
- # @option options [Boolean] :convert_params (true)
92
- # When `true`, an attempt is made to coerce request parameters into
93
- # the required types.
94
- # @option options [String] :endpoint
95
- # The client endpoint is normally constructed from the `:region`
96
- # option. You should only configure an `:endpoint` when connecting
97
- # to test endpoints. This should be avalid HTTP(S) URI.
98
- # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
99
- # The log formatter.
100
- # @option options [Symbol] :log_level (:info)
101
- # The log level to send messages to the `:logger` at.
102
- # @option options [Logger] :logger
103
- # The Logger instance to send log messages to. If this option
104
- # is not set, logging will be disabled.
105
- # @option options [String] :profile ("default")
106
- # Used when loading credentials from the shared credentials file
107
- # at HOME/.aws/credentials. When not specified, 'default' is used.
108
- # @option options [Integer] :retry_limit (3)
109
- # The maximum number of times to retry failed requests. Only
110
- # ~ 500 level server errors and certain ~ 400 level client errors
111
- # are retried. Generally, these are throttling errors, data
112
- # checksum errors, networking errors, timeout errors and auth
113
- # errors from expired credentials.
114
- # @option options [String] :secret_access_key
115
- # @option options [String] :session_token
116
- # @option options [Boolean] :stub_responses (false)
117
- # Causes the client to return stubbed responses. By default
118
- # fake responses are generated and returned. You can specify
119
- # the response data to return or errors to raise by calling
120
- # {ClientStubs#stub_responses}. See {ClientStubs} for more information.
121
- #
122
- # ** Please note ** When response stubbing is enabled, no HTTP
123
- # requests are made, and retries are disabled.
124
- # @option options [Boolean] :validate_params (true)
125
- # When `true`, request parameters are validated before
126
- # sending the request.
127
- def initialize(*args)
128
- super
129
- end
130
-
131
- # @!group API Operations
51
+ # @option options [required, Aws::CredentialProvider] :credentials
52
+ # Your AWS credentials. This can be an instance of any one of the
53
+ # following classes:
54
+ #
55
+ # * `Aws::Credentials` - Used for configuring static, non-refreshing
56
+ # credentials.
57
+ #
58
+ # * `Aws::InstanceProfileCredentials` - Used for loading credentials
59
+ # from an EC2 IMDS on an EC2 instance.
60
+ #
61
+ # * `Aws::SharedCredentials` - Used for loading credentials from a
62
+ # shared file, such as `~/.aws/config`.
63
+ #
64
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
65
+ #
66
+ # When `:credentials` are not configured directly, the following
67
+ # locations will be searched for credentials:
68
+ #
69
+ # * `Aws.config[:credentials]`
70
+ # * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
71
+ # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
72
+ # * `~/.aws/credentials`
73
+ # * `~/.aws/config`
74
+ # * EC2 IMDS instance profile - When used by default, the timeouts are
75
+ # very aggressive. Construct and pass an instance of
76
+ # `Aws::InstanceProfileCredentails` to enable retries and extended
77
+ # timeouts.
78
+ #
79
+ # @option options [required, String] :region
80
+ # The AWS region to connect to. The configured `:region` is
81
+ # used to determine the service `:endpoint`. When not passed,
82
+ # a default `:region` is search for in the following locations:
83
+ #
84
+ # * `Aws.config[:region]`
85
+ # * `ENV['AWS_REGION']`
86
+ # * `ENV['AMAZON_REGION']`
87
+ # * `ENV['AWS_DEFAULT_REGION']`
88
+ # * `~/.aws/credentials`
89
+ # * `~/.aws/config`
90
+ #
91
+ # @option options [String] :access_key_id
92
+ #
93
+ # @option options [Boolean] :convert_params (true)
94
+ # When `true`, an attempt is made to coerce request parameters into
95
+ # the required types.
96
+ #
97
+ # @option options [String] :endpoint
98
+ # The client endpoint is normally constructed from the `:region`
99
+ # option. You should only configure an `:endpoint` when connecting
100
+ # to test endpoints. This should be avalid HTTP(S) URI.
101
+ #
102
+ # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
103
+ # The log formatter.
104
+ #
105
+ # @option options [Symbol] :log_level (:info)
106
+ # The log level to send messages to the `:logger` at.
107
+ #
108
+ # @option options [Logger] :logger
109
+ # The Logger instance to send log messages to. If this option
110
+ # is not set, logging will be disabled.
111
+ #
112
+ # @option options [String] :profile ("default")
113
+ # Used when loading credentials from the shared credentials file
114
+ # at HOME/.aws/credentials. When not specified, 'default' is used.
115
+ #
116
+ # @option options [Integer] :retry_limit (3)
117
+ # The maximum number of times to retry failed requests. Only
118
+ # ~ 500 level server errors and certain ~ 400 level client errors
119
+ # are retried. Generally, these are throttling errors, data
120
+ # checksum errors, networking errors, timeout errors and auth
121
+ # errors from expired credentials.
122
+ #
123
+ # @option options [String] :secret_access_key
124
+ #
125
+ # @option options [String] :session_token
126
+ #
127
+ # @option options [Boolean] :stub_responses (false)
128
+ # Causes the client to return stubbed responses. By default
129
+ # fake responses are generated and returned. You can specify
130
+ # the response data to return or errors to raise by calling
131
+ # {ClientStubs#stub_responses}. See {ClientStubs} for more information.
132
+ #
133
+ # ** Please note ** When response stubbing is enabled, no HTTP
134
+ # requests are made, and retries are disabled.
135
+ #
136
+ # @option options [Boolean] :validate_params (true)
137
+ # When `true`, request parameters are validated before
138
+ # sending the request.
139
+ #
140
+ def initialize(*args)
141
+ super
142
+ end
132
143
 
133
- # Deletes the specified pronunciation lexicon stored in an AWS Region. A
134
- # lexicon which has been deleted is not available for speech synthesis,
135
- # nor is it possible to retrieve it using either the `GetLexicon` or
136
- # `ListLexicon` APIs.
137
- #
138
- # For more information, see [Managing Lexicons][1].
139
- #
140
- #
141
- #
142
- # [1]: http://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html
143
- # @option params [required, String] :name
144
- # The name of the lexicon to delete. Must be an existing lexicon in the
145
- # region.
146
- # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
147
- #
148
- # @example Request syntax with placeholder values
149
- # resp = client.delete_lexicon({
150
- # name: "LexiconName", # required
151
- # })
152
- # @overload delete_lexicon(params = {})
153
- # @param [Hash] params ({})
154
- def delete_lexicon(params = {}, options = {})
155
- req = build_request(:delete_lexicon, params)
156
- req.send_request(options)
157
- end
144
+ # @!group API Operations
158
145
 
159
- # Returns the list of voices that are available for use when requesting
160
- # speech synthesis. Each voice speaks a specified language, is either
161
- # male or female, and is identified by an ID, which is the ASCII version
162
- # of the voice name.
163
- #
164
- # When synthesizing speech ( `SynthesizeSpeech` ), you provide the voice
165
- # ID for the voice you want from the list of voices returned by
166
- # `DescribeVoices`.
167
- #
168
- # For example, you want your news reader application to read news in a
169
- # specific language, but giving a user the option to choose the voice.
170
- # Using the `DescribeVoices` operation you can provide the user with a
171
- # list of available voices to select from.
172
- #
173
- # You can optionally specify a language code to filter the available
174
- # voices. For example, if you specify `en-US`, the operation returns a
175
- # list of all available US English voices.
176
- #
177
- # This operation requires permissions to perform the
178
- # `polly:DescribeVoices` action.
179
- # @option params [String] :language_code
180
- # The language identification tag (ISO 639 code for the language
181
- # name-ISO 3166 country code) for filtering the list of voices returned.
182
- # If you don't specify this optional parameter, all available voices
183
- # are returned.
184
- # @option params [String] :next_token
185
- # An opaque pagination token returned from the previous `DescribeVoices`
186
- # operation. If present, this indicates where to continue the listing.
187
- # @return [Types::DescribeVoicesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
188
- #
189
- # * {Types::DescribeVoicesOutput#voices #Voices} => Array&lt;Types::Voice&gt;
190
- # * {Types::DescribeVoicesOutput#next_token #NextToken} => String
191
- #
192
- # @example Request syntax with placeholder values
193
- # resp = client.describe_voices({
194
- # language_code: "cy-GB", # accepts cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS, en-IN, en-US, es-ES, es-US, fr-CA, fr-FR, is-IS, it-IT, ja-JP, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR
195
- # next_token: "NextToken",
196
- # })
197
- #
198
- # @example Response structure
199
- # resp.voices #=> Array
200
- # resp.voices[0].gender #=> String, one of "Female", "Male"
201
- # resp.voices[0].id #=> String, one of "Geraint", "Gwyneth", "Mads", "Naja", "Hans", "Marlene", "Nicole", "Russell", "Amy", "Brian", "Emma", "Raveena", "Ivy", "Joanna", "Joey", "Justin", "Kendra", "Kimberly", "Salli", "Conchita", "Enrique", "Miguel", "Penelope", "Chantal", "Celine", "Mathieu", "Dora", "Karl", "Carla", "Giorgio", "Mizuki", "Liv", "Lotte", "Ruben", "Ewa", "Jacek", "Jan", "Maja", "Ricardo", "Vitoria", "Cristiano", "Ines", "Carmen", "Maxim", "Tatyana", "Astrid", "Filiz"
202
- # resp.voices[0].language_code #=> String, one of "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "es-US", "fr-CA", "fr-FR", "is-IS", "it-IT", "ja-JP", "nb-NO", "nl-NL", "pl-PL", "pt-BR", "pt-PT", "ro-RO", "ru-RU", "sv-SE", "tr-TR"
203
- # resp.voices[0].language_name #=> String
204
- # resp.voices[0].name #=> String
205
- # resp.next_token #=> String
206
- # @overload describe_voices(params = {})
207
- # @param [Hash] params ({})
208
- def describe_voices(params = {}, options = {})
209
- req = build_request(:describe_voices, params)
210
- req.send_request(options)
211
- end
146
+ # Deletes the specified pronunciation lexicon stored in an AWS Region. A
147
+ # lexicon which has been deleted is not available for speech synthesis,
148
+ # nor is it possible to retrieve it using either the `GetLexicon` or
149
+ # `ListLexicon` APIs.
150
+ #
151
+ # For more information, see [Managing Lexicons][1].
152
+ #
153
+ #
154
+ #
155
+ # [1]: http://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html
156
+ #
157
+ # @option params [required, String] :name
158
+ # The name of the lexicon to delete. Must be an existing lexicon in the
159
+ # region.
160
+ #
161
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
162
+ #
163
+ # @example Request syntax with placeholder values
164
+ #
165
+ # resp = client.delete_lexicon({
166
+ # name: "LexiconName", # required
167
+ # })
168
+ #
169
+ # @overload delete_lexicon(params = {})
170
+ # @param [Hash] params ({})
171
+ def delete_lexicon(params = {}, options = {})
172
+ req = build_request(:delete_lexicon, params)
173
+ req.send_request(options)
174
+ end
212
175
 
213
- # Returns the content of the specified pronunciation lexicon stored in
214
- # an AWS Region. For more information, see [Managing Lexicons][1].
215
- #
216
- #
217
- #
218
- # [1]: http://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html
219
- # @option params [required, String] :name
220
- # Name of the lexicon.
221
- # @return [Types::GetLexiconOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
222
- #
223
- # * {Types::GetLexiconOutput#lexicon #Lexicon} => Types::Lexicon
224
- # * {Types::GetLexiconOutput#lexicon_attributes #LexiconAttributes} => Types::LexiconAttributes
225
- #
226
- # @example Request syntax with placeholder values
227
- # resp = client.get_lexicon({
228
- # name: "LexiconName", # required
229
- # })
230
- #
231
- # @example Response structure
232
- # resp.lexicon.content #=> String
233
- # resp.lexicon.name #=> String
234
- # resp.lexicon_attributes.alphabet #=> String
235
- # resp.lexicon_attributes.language_code #=> String, one of "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "es-US", "fr-CA", "fr-FR", "is-IS", "it-IT", "ja-JP", "nb-NO", "nl-NL", "pl-PL", "pt-BR", "pt-PT", "ro-RO", "ru-RU", "sv-SE", "tr-TR"
236
- # resp.lexicon_attributes.last_modified #=> Time
237
- # resp.lexicon_attributes.lexicon_arn #=> String
238
- # resp.lexicon_attributes.lexemes_count #=> Integer
239
- # resp.lexicon_attributes.size #=> Integer
240
- # @overload get_lexicon(params = {})
241
- # @param [Hash] params ({})
242
- def get_lexicon(params = {}, options = {})
243
- req = build_request(:get_lexicon, params)
244
- req.send_request(options)
245
- end
176
+ # Returns the list of voices that are available for use when requesting
177
+ # speech synthesis. Each voice speaks a specified language, is either
178
+ # male or female, and is identified by an ID, which is the ASCII version
179
+ # of the voice name.
180
+ #
181
+ # When synthesizing speech ( `SynthesizeSpeech` ), you provide the voice
182
+ # ID for the voice you want from the list of voices returned by
183
+ # `DescribeVoices`.
184
+ #
185
+ # For example, you want your news reader application to read news in a
186
+ # specific language, but giving a user the option to choose the voice.
187
+ # Using the `DescribeVoices` operation you can provide the user with a
188
+ # list of available voices to select from.
189
+ #
190
+ # You can optionally specify a language code to filter the available
191
+ # voices. For example, if you specify `en-US`, the operation returns a
192
+ # list of all available US English voices.
193
+ #
194
+ # This operation requires permissions to perform the
195
+ # `polly:DescribeVoices` action.
196
+ #
197
+ # @option params [String] :language_code
198
+ # The language identification tag (ISO 639 code for the language
199
+ # name-ISO 3166 country code) for filtering the list of voices returned.
200
+ # If you don't specify this optional parameter, all available voices
201
+ # are returned.
202
+ #
203
+ # @option params [String] :next_token
204
+ # An opaque pagination token returned from the previous `DescribeVoices`
205
+ # operation. If present, this indicates where to continue the listing.
206
+ #
207
+ # @return [Types::DescribeVoicesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
208
+ #
209
+ # * {Types::DescribeVoicesOutput#voices #voices} => Array&lt;Types::Voice&gt;
210
+ # * {Types::DescribeVoicesOutput#next_token #next_token} => String
211
+ #
212
+ # @example Request syntax with placeholder values
213
+ #
214
+ # resp = client.describe_voices({
215
+ # language_code: "cy-GB", # accepts cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS, en-IN, en-US, es-ES, es-US, fr-CA, fr-FR, is-IS, it-IT, ja-JP, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR
216
+ # next_token: "NextToken",
217
+ # })
218
+ #
219
+ # @example Response structure
220
+ #
221
+ # resp.voices #=> Array
222
+ # resp.voices[0].gender #=> String, one of "Female", "Male"
223
+ # resp.voices[0].id #=> String, one of "Geraint", "Gwyneth", "Mads", "Naja", "Hans", "Marlene", "Nicole", "Russell", "Amy", "Brian", "Emma", "Raveena", "Ivy", "Joanna", "Joey", "Justin", "Kendra", "Kimberly", "Salli", "Conchita", "Enrique", "Miguel", "Penelope", "Chantal", "Celine", "Mathieu", "Dora", "Karl", "Carla", "Giorgio", "Mizuki", "Liv", "Lotte", "Ruben", "Ewa", "Jacek", "Jan", "Maja", "Ricardo", "Vitoria", "Cristiano", "Ines", "Carmen", "Maxim", "Tatyana", "Astrid", "Filiz"
224
+ # resp.voices[0].language_code #=> String, one of "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "es-US", "fr-CA", "fr-FR", "is-IS", "it-IT", "ja-JP", "nb-NO", "nl-NL", "pl-PL", "pt-BR", "pt-PT", "ro-RO", "ru-RU", "sv-SE", "tr-TR"
225
+ # resp.voices[0].language_name #=> String
226
+ # resp.voices[0].name #=> String
227
+ # resp.next_token #=> String
228
+ #
229
+ # @overload describe_voices(params = {})
230
+ # @param [Hash] params ({})
231
+ def describe_voices(params = {}, options = {})
232
+ req = build_request(:describe_voices, params)
233
+ req.send_request(options)
234
+ end
246
235
 
247
- # Returns a list of pronunciation lexicons stored in an AWS Region. For
248
- # more information, see [Managing Lexicons][1].
249
- #
250
- #
251
- #
252
- # [1]: http://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html
253
- # @option params [String] :next_token
254
- # An opaque pagination token returned from previous `ListLexicons`
255
- # operation. If present, indicates where to continue the list of
256
- # lexicons.
257
- # @return [Types::ListLexiconsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
258
- #
259
- # * {Types::ListLexiconsOutput#lexicons #Lexicons} => Array&lt;Types::LexiconDescription&gt;
260
- # * {Types::ListLexiconsOutput#next_token #NextToken} => String
261
- #
262
- # @example Request syntax with placeholder values
263
- # resp = client.list_lexicons({
264
- # next_token: "NextToken",
265
- # })
266
- #
267
- # @example Response structure
268
- # resp.lexicons #=> Array
269
- # resp.lexicons[0].name #=> String
270
- # resp.lexicons[0].attributes.alphabet #=> String
271
- # resp.lexicons[0].attributes.language_code #=> String, one of "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "es-US", "fr-CA", "fr-FR", "is-IS", "it-IT", "ja-JP", "nb-NO", "nl-NL", "pl-PL", "pt-BR", "pt-PT", "ro-RO", "ru-RU", "sv-SE", "tr-TR"
272
- # resp.lexicons[0].attributes.last_modified #=> Time
273
- # resp.lexicons[0].attributes.lexicon_arn #=> String
274
- # resp.lexicons[0].attributes.lexemes_count #=> Integer
275
- # resp.lexicons[0].attributes.size #=> Integer
276
- # resp.next_token #=> String
277
- # @overload list_lexicons(params = {})
278
- # @param [Hash] params ({})
279
- def list_lexicons(params = {}, options = {})
280
- req = build_request(:list_lexicons, params)
281
- req.send_request(options)
282
- end
236
+ # Returns the content of the specified pronunciation lexicon stored in
237
+ # an AWS Region. For more information, see [Managing Lexicons][1].
238
+ #
239
+ #
240
+ #
241
+ # [1]: http://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html
242
+ #
243
+ # @option params [required, String] :name
244
+ # Name of the lexicon.
245
+ #
246
+ # @return [Types::GetLexiconOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
247
+ #
248
+ # * {Types::GetLexiconOutput#lexicon #lexicon} => Types::Lexicon
249
+ # * {Types::GetLexiconOutput#lexicon_attributes #lexicon_attributes} => Types::LexiconAttributes
250
+ #
251
+ # @example Request syntax with placeholder values
252
+ #
253
+ # resp = client.get_lexicon({
254
+ # name: "LexiconName", # required
255
+ # })
256
+ #
257
+ # @example Response structure
258
+ #
259
+ # resp.lexicon.content #=> String
260
+ # resp.lexicon.name #=> String
261
+ # resp.lexicon_attributes.alphabet #=> String
262
+ # resp.lexicon_attributes.language_code #=> String, one of "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "es-US", "fr-CA", "fr-FR", "is-IS", "it-IT", "ja-JP", "nb-NO", "nl-NL", "pl-PL", "pt-BR", "pt-PT", "ro-RO", "ru-RU", "sv-SE", "tr-TR"
263
+ # resp.lexicon_attributes.last_modified #=> Time
264
+ # resp.lexicon_attributes.lexicon_arn #=> String
265
+ # resp.lexicon_attributes.lexemes_count #=> Integer
266
+ # resp.lexicon_attributes.size #=> Integer
267
+ #
268
+ # @overload get_lexicon(params = {})
269
+ # @param [Hash] params ({})
270
+ def get_lexicon(params = {}, options = {})
271
+ req = build_request(:get_lexicon, params)
272
+ req.send_request(options)
273
+ end
283
274
 
284
- # Stores a pronunciation lexicon in an AWS Region. If a lexicon with the
285
- # same name already exists in the region, it is overwritten by the new
286
- # lexicon. Lexicon operations have eventual consistency, therefore, it
287
- # might take some time before the lexicon is available to the
288
- # SynthesizeSpeech operation.
289
- #
290
- # For more information, see [Managing Lexicons][1].
291
- #
292
- #
293
- #
294
- # [1]: http://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html
295
- # @option params [required, String] :name
296
- # Name of the lexicon. The name must follow the regular express format
297
- # \[0-9A-Za-z\]\\\{1,20\\}. That is, the name is a case-sensitive
298
- # alphanumeric string up to 20 characters long.
299
- # @option params [required, String] :content
300
- # Content of the PLS lexicon as string data.
301
- # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
302
- #
303
- # @example Request syntax with placeholder values
304
- # resp = client.put_lexicon({
305
- # name: "LexiconName", # required
306
- # content: "LexiconContent", # required
307
- # })
308
- # @overload put_lexicon(params = {})
309
- # @param [Hash] params ({})
310
- def put_lexicon(params = {}, options = {})
311
- req = build_request(:put_lexicon, params)
312
- req.send_request(options)
313
- end
275
+ # Returns a list of pronunciation lexicons stored in an AWS Region. For
276
+ # more information, see [Managing Lexicons][1].
277
+ #
278
+ #
279
+ #
280
+ # [1]: http://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html
281
+ #
282
+ # @option params [String] :next_token
283
+ # An opaque pagination token returned from previous `ListLexicons`
284
+ # operation. If present, indicates where to continue the list of
285
+ # lexicons.
286
+ #
287
+ # @return [Types::ListLexiconsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
288
+ #
289
+ # * {Types::ListLexiconsOutput#lexicons #lexicons} => Array&lt;Types::LexiconDescription&gt;
290
+ # * {Types::ListLexiconsOutput#next_token #next_token} => String
291
+ #
292
+ # @example Request syntax with placeholder values
293
+ #
294
+ # resp = client.list_lexicons({
295
+ # next_token: "NextToken",
296
+ # })
297
+ #
298
+ # @example Response structure
299
+ #
300
+ # resp.lexicons #=> Array
301
+ # resp.lexicons[0].name #=> String
302
+ # resp.lexicons[0].attributes.alphabet #=> String
303
+ # resp.lexicons[0].attributes.language_code #=> String, one of "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "es-US", "fr-CA", "fr-FR", "is-IS", "it-IT", "ja-JP", "nb-NO", "nl-NL", "pl-PL", "pt-BR", "pt-PT", "ro-RO", "ru-RU", "sv-SE", "tr-TR"
304
+ # resp.lexicons[0].attributes.last_modified #=> Time
305
+ # resp.lexicons[0].attributes.lexicon_arn #=> String
306
+ # resp.lexicons[0].attributes.lexemes_count #=> Integer
307
+ # resp.lexicons[0].attributes.size #=> Integer
308
+ # resp.next_token #=> String
309
+ #
310
+ # @overload list_lexicons(params = {})
311
+ # @param [Hash] params ({})
312
+ def list_lexicons(params = {}, options = {})
313
+ req = build_request(:list_lexicons, params)
314
+ req.send_request(options)
315
+ end
314
316
 
315
- # Synthesizes UTF-8 input, plain text or SSML, to a stream of bytes.
316
- # SSML input must be valid, well-formed SSML. Some alphabets might not
317
- # be available with all the voices (for example, Cyrillic might not be
318
- # read at all by English voices) unless phoneme mapping is used. For
319
- # more information, see [How it Works][1].
320
- #
321
- #
322
- #
323
- # [1]: http://docs.aws.amazon.com/polly/latest/dg/how-text-to-speech-works.html
324
- # @option params [Array<String>] :lexicon_names
325
- # List of one or more pronunciation lexicon names you want the service
326
- # to apply during synthesis. Lexicons are applied only if the language
327
- # of the lexicon is the same as the language of the voice. For
328
- # information about storing lexicons, see [PutLexicon][1].
329
- #
330
- #
331
- #
332
- # [1]: http://docs.aws.amazon.com/polly/latest/dg/API_PutLexicon.html
333
- # @option params [required, String] :output_format
334
- # The audio format in which the resulting stream will be encoded.
335
- # @option params [String] :sample_rate
336
- # The audio frequency specified in Hz.
337
- #
338
- # The valid values for `mp3` and `ogg_vorbis` are "8000", "16000",
339
- # and "22050". The default value is "22050".
340
- #
341
- # Valid values for `pcm` are "8000" and "16000" The default value is
342
- # "16000".
343
- # @option params [required, String] :text
344
- # Input text to synthesize. If you specify `ssml` as the `TextType`,
345
- # follow the SSML format for the input text.
346
- # @option params [String] :text_type
347
- # Specifies whether the input text is plain text or SSML. The default
348
- # value is plain text. For more information, see [Using SSML][1].
349
- #
350
- #
351
- #
352
- # [1]: http://docs.aws.amazon.com/polly/latest/dg/ssml.html
353
- # @option params [required, String] :voice_id
354
- # Voice ID to use for the synthesis. You can get a list of available
355
- # voice IDs by calling the [DescribeVoices][1] operation.
356
- #
357
- #
358
- #
359
- # [1]: http://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html
360
- # @return [Types::SynthesizeSpeechOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
361
- #
362
- # * {Types::SynthesizeSpeechOutput#audio_stream #AudioStream} => IO
363
- # * {Types::SynthesizeSpeechOutput#content_type #ContentType} => String
364
- # * {Types::SynthesizeSpeechOutput#request_characters #RequestCharacters} => Integer
365
- #
366
- # @example Request syntax with placeholder values
367
- # resp = client.synthesize_speech({
368
- # lexicon_names: ["LexiconName"],
369
- # output_format: "mp3", # required, accepts mp3, ogg_vorbis, pcm
370
- # sample_rate: "SampleRate",
371
- # text: "Text", # required
372
- # text_type: "ssml", # accepts ssml, text
373
- # voice_id: "Geraint", # required, accepts Geraint, Gwyneth, Mads, Naja, Hans, Marlene, Nicole, Russell, Amy, Brian, Emma, Raveena, Ivy, Joanna, Joey, Justin, Kendra, Kimberly, Salli, Conchita, Enrique, Miguel, Penelope, Chantal, Celine, Mathieu, Dora, Karl, Carla, Giorgio, Mizuki, Liv, Lotte, Ruben, Ewa, Jacek, Jan, Maja, Ricardo, Vitoria, Cristiano, Ines, Carmen, Maxim, Tatyana, Astrid, Filiz
374
- # })
375
- #
376
- # @example Response structure
377
- # resp.audio_stream #=> IO
378
- # resp.content_type #=> String
379
- # resp.request_characters #=> Integer
380
- # @overload synthesize_speech(params = {})
381
- # @param [Hash] params ({})
382
- def synthesize_speech(params = {}, options = {})
383
- req = build_request(:synthesize_speech, params)
384
- req.send_request(options)
385
- end
317
+ # Stores a pronunciation lexicon in an AWS Region. If a lexicon with the
318
+ # same name already exists in the region, it is overwritten by the new
319
+ # lexicon. Lexicon operations have eventual consistency, therefore, it
320
+ # might take some time before the lexicon is available to the
321
+ # SynthesizeSpeech operation.
322
+ #
323
+ # For more information, see [Managing Lexicons][1].
324
+ #
325
+ #
326
+ #
327
+ # [1]: http://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html
328
+ #
329
+ # @option params [required, String] :name
330
+ # Name of the lexicon. The name must follow the regular express format
331
+ # \[0-9A-Za-z\]\\\{1,20\\}. That is, the name is a case-sensitive
332
+ # alphanumeric string up to 20 characters long.
333
+ #
334
+ # @option params [required, String] :content
335
+ # Content of the PLS lexicon as string data.
336
+ #
337
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
338
+ #
339
+ # @example Request syntax with placeholder values
340
+ #
341
+ # resp = client.put_lexicon({
342
+ # name: "LexiconName", # required
343
+ # content: "LexiconContent", # required
344
+ # })
345
+ #
346
+ # @overload put_lexicon(params = {})
347
+ # @param [Hash] params ({})
348
+ def put_lexicon(params = {}, options = {})
349
+ req = build_request(:put_lexicon, params)
350
+ req.send_request(options)
351
+ end
386
352
 
387
- # @!endgroup
353
+ # Synthesizes UTF-8 input, plain text or SSML, to a stream of bytes.
354
+ # SSML input must be valid, well-formed SSML. Some alphabets might not
355
+ # be available with all the voices (for example, Cyrillic might not be
356
+ # read at all by English voices) unless phoneme mapping is used. For
357
+ # more information, see [How it Works][1].
358
+ #
359
+ #
360
+ #
361
+ # [1]: http://docs.aws.amazon.com/polly/latest/dg/how-text-to-speech-works.html
362
+ #
363
+ # @option params [Array<String>] :lexicon_names
364
+ # List of one or more pronunciation lexicon names you want the service
365
+ # to apply during synthesis. Lexicons are applied only if the language
366
+ # of the lexicon is the same as the language of the voice. For
367
+ # information about storing lexicons, see [PutLexicon][1].
368
+ #
369
+ #
370
+ #
371
+ # [1]: http://docs.aws.amazon.com/polly/latest/dg/API_PutLexicon.html
372
+ #
373
+ # @option params [required, String] :output_format
374
+ # The audio format in which the resulting stream will be encoded.
375
+ #
376
+ # @option params [String] :sample_rate
377
+ # The audio frequency specified in Hz.
378
+ #
379
+ # The valid values for `mp3` and `ogg_vorbis` are "8000", "16000",
380
+ # and "22050". The default value is "22050".
381
+ #
382
+ # Valid values for `pcm` are "8000" and "16000" The default value is
383
+ # "16000".
384
+ #
385
+ # @option params [required, String] :text
386
+ # Input text to synthesize. If you specify `ssml` as the `TextType`,
387
+ # follow the SSML format for the input text.
388
+ #
389
+ # @option params [String] :text_type
390
+ # Specifies whether the input text is plain text or SSML. The default
391
+ # value is plain text. For more information, see [Using SSML][1].
392
+ #
393
+ #
394
+ #
395
+ # [1]: http://docs.aws.amazon.com/polly/latest/dg/ssml.html
396
+ #
397
+ # @option params [required, String] :voice_id
398
+ # Voice ID to use for the synthesis. You can get a list of available
399
+ # voice IDs by calling the [DescribeVoices][1] operation.
400
+ #
401
+ #
402
+ #
403
+ # [1]: http://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html
404
+ #
405
+ # @return [Types::SynthesizeSpeechOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
406
+ #
407
+ # * {Types::SynthesizeSpeechOutput#audio_stream #audio_stream} => IO
408
+ # * {Types::SynthesizeSpeechOutput#content_type #content_type} => String
409
+ # * {Types::SynthesizeSpeechOutput#request_characters #request_characters} => Integer
410
+ #
411
+ # @example Request syntax with placeholder values
412
+ #
413
+ # resp = client.synthesize_speech({
414
+ # lexicon_names: ["LexiconName"],
415
+ # output_format: "mp3", # required, accepts mp3, ogg_vorbis, pcm
416
+ # sample_rate: "SampleRate",
417
+ # text: "Text", # required
418
+ # text_type: "ssml", # accepts ssml, text
419
+ # voice_id: "Geraint", # required, accepts Geraint, Gwyneth, Mads, Naja, Hans, Marlene, Nicole, Russell, Amy, Brian, Emma, Raveena, Ivy, Joanna, Joey, Justin, Kendra, Kimberly, Salli, Conchita, Enrique, Miguel, Penelope, Chantal, Celine, Mathieu, Dora, Karl, Carla, Giorgio, Mizuki, Liv, Lotte, Ruben, Ewa, Jacek, Jan, Maja, Ricardo, Vitoria, Cristiano, Ines, Carmen, Maxim, Tatyana, Astrid, Filiz
420
+ # })
421
+ #
422
+ # @example Response structure
423
+ #
424
+ # resp.audio_stream #=> IO
425
+ # resp.content_type #=> String
426
+ # resp.request_characters #=> Integer
427
+ #
428
+ # @overload synthesize_speech(params = {})
429
+ # @param [Hash] params ({})
430
+ def synthesize_speech(params = {}, options = {})
431
+ req = build_request(:synthesize_speech, params)
432
+ req.send_request(options)
433
+ end
388
434
 
389
- # @param params ({})
390
- # @api private
391
- def build_request(operation_name, params = {})
392
- handlers = @handlers.for(operation_name)
393
- context = Seahorse::Client::RequestContext.new(
394
- operation_name: operation_name,
395
- operation: config.api.operation(operation_name),
396
- client: self,
397
- params: params,
398
- config: config)
399
- context[:gem_name] = 'aws-sdk-polly'
400
- context[:gem_version] = '1.0.0.rc2'
401
- Seahorse::Client::Request.new(handlers, context)
402
- end
435
+ # @!endgroup
403
436
 
404
- # @api private
405
- # @deprecated
406
- def waiter_names
407
- []
408
- end
437
+ # @param params ({})
438
+ # @api private
439
+ def build_request(operation_name, params = {})
440
+ handlers = @handlers.for(operation_name)
441
+ context = Seahorse::Client::RequestContext.new(
442
+ operation_name: operation_name,
443
+ operation: config.api.operation(operation_name),
444
+ client: self,
445
+ params: params,
446
+ config: config)
447
+ context[:gem_name] = 'aws-sdk-polly'
448
+ context[:gem_version] = '1.0.0.rc2'
449
+ Seahorse::Client::Request.new(handlers, context)
450
+ end
409
451
 
410
- class << self
452
+ # @api private
453
+ # @deprecated
454
+ def waiter_names
455
+ []
456
+ end
411
457
 
412
- # @api private
413
- attr_reader :identifier
458
+ class << self
414
459
 
415
- # @api private
416
- def errors_module
417
- Errors
418
- end
460
+ # @api private
461
+ attr_reader :identifier
419
462
 
463
+ # @api private
464
+ def errors_module
465
+ Errors
420
466
  end
467
+
421
468
  end
422
469
  end
423
470
  end