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

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: c5e5d7267ddc5d3407e163aa59c281632c8729f2
4
- data.tar.gz: e6d250d33b9dc232ad53a2d31eead0bebc422657
3
+ metadata.gz: ea884798f43cdedf7eb51774be55fc1f111cb1b6
4
+ data.tar.gz: bab28476881ddf980b861c646bdc18da76ad596b
5
5
  SHA512:
6
- metadata.gz: 4b964cbf96519044ffd50c1a6d2b192be887e0570894c4bf4fb70f5f4b51330f86c6d0a4245ded079a6646466a7e62905b48059c5784749b64fc4c2c06b86882
7
- data.tar.gz: e58fcd7311a0a0ea20444df361ce5c97ac62c087ef8f0900f2fd893890933134c79bf4a44bdb5ec89c0bd47a61aa6c1a964960600d46e1c45583c9e98a37697b
6
+ metadata.gz: 45a07d346bc47b23e55e6d8a4f9bad26662d62ebe3beb6f126776a3b6a84f5ef5232a70b8ad82d51f242a726ea12c71662652dc8c341329d3c3974b8076a605e
7
+ data.tar.gz: f16530e366388616f83fd8bb4519f1b9b0f0c73289361e5a9934ff4f3fe2d474d5073a20b5d1e8ac04888d78364918e678c03751b9b01f5ce315c681239a6831
data/lib/aws-sdk-polly.rb CHANGED
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-polly/customizations'
42
42
  # @service
43
43
  module Aws::Polly
44
44
 
45
- GEM_VERSION = '1.0.0.rc2'
45
+ GEM_VERSION = '1.0.0.rc4'
46
46
 
47
47
  end
@@ -18,6 +18,7 @@ require 'aws-sdk-core/plugins/regional_endpoint.rb'
18
18
  require 'aws-sdk-core/plugins/response_paging.rb'
19
19
  require 'aws-sdk-core/plugins/stub_responses.rb'
20
20
  require 'aws-sdk-core/plugins/idempotency_token.rb'
21
+ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
21
22
  require 'aws-sdk-core/plugins/signature_v4.rb'
22
23
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
23
24
 
@@ -45,6 +46,7 @@ module Aws::Polly
45
46
  add_plugin(Aws::Plugins::ResponsePaging)
46
47
  add_plugin(Aws::Plugins::StubResponses)
47
48
  add_plugin(Aws::Plugins::IdempotencyToken)
49
+ add_plugin(Aws::Plugins::JsonvalueConverter)
48
50
  add_plugin(Aws::Plugins::SignatureV4)
49
51
  add_plugin(Aws::Plugins::Protocols::RestJson)
50
52
 
@@ -166,6 +168,8 @@ module Aws::Polly
166
168
  # name: "LexiconName", # required
167
169
  # })
168
170
  #
171
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/DeleteLexicon AWS API Documentation
172
+ #
169
173
  # @overload delete_lexicon(params = {})
170
174
  # @param [Hash] params ({})
171
175
  def delete_lexicon(params = {}, options = {})
@@ -226,6 +230,8 @@ module Aws::Polly
226
230
  # resp.voices[0].name #=> String
227
231
  # resp.next_token #=> String
228
232
  #
233
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/DescribeVoices AWS API Documentation
234
+ #
229
235
  # @overload describe_voices(params = {})
230
236
  # @param [Hash] params ({})
231
237
  def describe_voices(params = {}, options = {})
@@ -265,6 +271,8 @@ module Aws::Polly
265
271
  # resp.lexicon_attributes.lexemes_count #=> Integer
266
272
  # resp.lexicon_attributes.size #=> Integer
267
273
  #
274
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/GetLexicon AWS API Documentation
275
+ #
268
276
  # @overload get_lexicon(params = {})
269
277
  # @param [Hash] params ({})
270
278
  def get_lexicon(params = {}, options = {})
@@ -307,6 +315,8 @@ module Aws::Polly
307
315
  # resp.lexicons[0].attributes.size #=> Integer
308
316
  # resp.next_token #=> String
309
317
  #
318
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/ListLexicons AWS API Documentation
319
+ #
310
320
  # @overload list_lexicons(params = {})
311
321
  # @param [Hash] params ({})
312
322
  def list_lexicons(params = {}, options = {})
@@ -343,6 +353,8 @@ module Aws::Polly
343
353
  # content: "LexiconContent", # required
344
354
  # })
345
355
  #
356
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/PutLexicon AWS API Documentation
357
+ #
346
358
  # @overload put_lexicon(params = {})
347
359
  # @param [Hash] params ({})
348
360
  def put_lexicon(params = {}, options = {})
@@ -371,7 +383,9 @@ module Aws::Polly
371
383
  # [1]: http://docs.aws.amazon.com/polly/latest/dg/API_PutLexicon.html
372
384
  #
373
385
  # @option params [required, String] :output_format
374
- # The audio format in which the resulting stream will be encoded.
386
+ # The format in which the returned output will be encoded. For audio
387
+ # stream, this will be mp3, ogg\_vorbis, or pcm. For speech marks, this
388
+ # will be json.
375
389
  #
376
390
  # @option params [String] :sample_rate
377
391
  # The audio frequency specified in Hz.
@@ -382,6 +396,9 @@ module Aws::Polly
382
396
  # Valid values for `pcm` are "8000" and "16000" The default value is
383
397
  # "16000".
384
398
  #
399
+ # @option params [Array<String>] :speech_mark_types
400
+ # The type of speech marks returned for the input text.
401
+ #
385
402
  # @option params [required, String] :text
386
403
  # Input text to synthesize. If you specify `ssml` as the `TextType`,
387
404
  # follow the SSML format for the input text.
@@ -412,8 +429,9 @@ module Aws::Polly
412
429
  #
413
430
  # resp = client.synthesize_speech({
414
431
  # lexicon_names: ["LexiconName"],
415
- # output_format: "mp3", # required, accepts mp3, ogg_vorbis, pcm
432
+ # output_format: "json", # required, accepts json, mp3, ogg_vorbis, pcm
416
433
  # sample_rate: "SampleRate",
434
+ # speech_mark_types: ["sentence"], # accepts sentence, ssml, viseme, word
417
435
  # text: "Text", # required
418
436
  # text_type: "ssml", # accepts ssml, text
419
437
  # 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
@@ -425,6 +443,8 @@ module Aws::Polly
425
443
  # resp.content_type #=> String
426
444
  # resp.request_characters #=> Integer
427
445
  #
446
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/SynthesizeSpeech AWS API Documentation
447
+ #
428
448
  # @overload synthesize_speech(params = {})
429
449
  # @param [Hash] params ({})
430
450
  def synthesize_speech(params = {}, options = {})
@@ -445,7 +465,7 @@ module Aws::Polly
445
465
  params: params,
446
466
  config: config)
447
467
  context[:gem_name] = 'aws-sdk-polly'
448
- context[:gem_version] = '1.0.0.rc2'
468
+ context[:gem_version] = '1.0.0.rc4'
449
469
  Seahorse::Client::Request.new(handlers, context)
450
470
  end
451
471
 
@@ -42,6 +42,7 @@ module Aws::Polly
42
42
  LexiconSizeExceededException = Shapes::StructureShape.new(name: 'LexiconSizeExceededException')
43
43
  ListLexiconsInput = Shapes::StructureShape.new(name: 'ListLexiconsInput')
44
44
  ListLexiconsOutput = Shapes::StructureShape.new(name: 'ListLexiconsOutput')
45
+ MarksNotSupportedForFormatException = Shapes::StructureShape.new(name: 'MarksNotSupportedForFormatException')
45
46
  MaxLexemeLengthExceededException = Shapes::StructureShape.new(name: 'MaxLexemeLengthExceededException')
46
47
  MaxLexiconsNumberExceededException = Shapes::StructureShape.new(name: 'MaxLexiconsNumberExceededException')
47
48
  NextToken = Shapes::StringShape.new(name: 'NextToken')
@@ -52,6 +53,9 @@ module Aws::Polly
52
53
  SampleRate = Shapes::StringShape.new(name: 'SampleRate')
53
54
  ServiceFailureException = Shapes::StructureShape.new(name: 'ServiceFailureException')
54
55
  Size = Shapes::IntegerShape.new(name: 'Size')
56
+ SpeechMarkType = Shapes::StringShape.new(name: 'SpeechMarkType')
57
+ SpeechMarkTypeList = Shapes::ListShape.new(name: 'SpeechMarkTypeList')
58
+ SsmlMarksNotSupportedForTextTypeException = Shapes::StructureShape.new(name: 'SsmlMarksNotSupportedForTextTypeException')
55
59
  SynthesizeSpeechInput = Shapes::StructureShape.new(name: 'SynthesizeSpeechInput')
56
60
  SynthesizeSpeechOutput = Shapes::StructureShape.new(name: 'SynthesizeSpeechOutput')
57
61
  Text = Shapes::StringShape.new(name: 'Text')
@@ -117,9 +121,12 @@ module Aws::Polly
117
121
 
118
122
  PutLexiconOutput.struct_class = Types::PutLexiconOutput
119
123
 
124
+ SpeechMarkTypeList.member = Shapes::ShapeRef.new(shape: SpeechMarkType)
125
+
120
126
  SynthesizeSpeechInput.add_member(:lexicon_names, Shapes::ShapeRef.new(shape: LexiconNameList, location_name: "LexiconNames"))
121
127
  SynthesizeSpeechInput.add_member(:output_format, Shapes::ShapeRef.new(shape: OutputFormat, required: true, location_name: "OutputFormat"))
122
128
  SynthesizeSpeechInput.add_member(:sample_rate, Shapes::ShapeRef.new(shape: SampleRate, location_name: "SampleRate"))
129
+ SynthesizeSpeechInput.add_member(:speech_mark_types, Shapes::ShapeRef.new(shape: SpeechMarkTypeList, location_name: "SpeechMarkTypes"))
123
130
  SynthesizeSpeechInput.add_member(:text, Shapes::ShapeRef.new(shape: Text, required: true, location_name: "Text"))
124
131
  SynthesizeSpeechInput.add_member(:text_type, Shapes::ShapeRef.new(shape: TextType, location_name: "TextType"))
125
132
  SynthesizeSpeechInput.add_member(:voice_id, Shapes::ShapeRef.new(shape: VoiceId, required: true, location_name: "VoiceId"))
@@ -220,6 +227,8 @@ module Aws::Polly
220
227
  o.errors << Shapes::ShapeRef.new(shape: InvalidSsmlException)
221
228
  o.errors << Shapes::ShapeRef.new(shape: LexiconNotFoundException)
222
229
  o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
230
+ o.errors << Shapes::ShapeRef.new(shape: MarksNotSupportedForFormatException)
231
+ o.errors << Shapes::ShapeRef.new(shape: SsmlMarksNotSupportedForTextTypeException)
223
232
  end)
224
233
  end
225
234
 
@@ -20,11 +20,15 @@ module Aws::Polly
20
20
  # the region.
21
21
  # @return [String]
22
22
  #
23
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/DeleteLexiconInput AWS API Documentation
24
+ #
23
25
  class DeleteLexiconInput < Struct.new(
24
26
  :name)
25
27
  include Aws::Structure
26
28
  end
27
29
 
30
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/DeleteLexiconOutput AWS API Documentation
31
+ #
28
32
  class DeleteLexiconOutput < Aws::EmptyStructure; end
29
33
 
30
34
  # @note When making an API call, you may pass DescribeVoicesInput
@@ -48,6 +52,8 @@ module Aws::Polly
48
52
  # continue the listing.
49
53
  # @return [String]
50
54
  #
55
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/DescribeVoicesInput AWS API Documentation
56
+ #
51
57
  class DescribeVoicesInput < Struct.new(
52
58
  :language_code,
53
59
  :next_token)
@@ -64,6 +70,8 @@ module Aws::Polly
64
70
  # truncated.
65
71
  # @return [String]
66
72
  #
73
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/DescribeVoicesOutput AWS API Documentation
74
+ #
67
75
  class DescribeVoicesOutput < Struct.new(
68
76
  :voices,
69
77
  :next_token)
@@ -81,6 +89,8 @@ module Aws::Polly
81
89
  # Name of the lexicon.
82
90
  # @return [String]
83
91
  #
92
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/GetLexiconInput AWS API Documentation
93
+ #
84
94
  class GetLexiconInput < Struct.new(
85
95
  :name)
86
96
  include Aws::Structure
@@ -97,6 +107,8 @@ module Aws::Polly
97
107
  # lexicon, and size of lexicon in bytes.
98
108
  # @return [Types::LexiconAttributes]
99
109
  #
110
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/GetLexiconOutput AWS API Documentation
111
+ #
100
112
  class GetLexiconOutput < Struct.new(
101
113
  :lexicon,
102
114
  :lexicon_attributes)
@@ -120,6 +132,8 @@ module Aws::Polly
120
132
  # Name of the lexicon.
121
133
  # @return [String]
122
134
  #
135
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/Lexicon AWS API Documentation
136
+ #
123
137
  class Lexicon < Struct.new(
124
138
  :content,
125
139
  :name)
@@ -161,6 +175,8 @@ module Aws::Polly
161
175
  # Total size of the lexicon, in characters.
162
176
  # @return [Integer]
163
177
  #
178
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/LexiconAttributes AWS API Documentation
179
+ #
164
180
  class LexiconAttributes < Struct.new(
165
181
  :alphabet,
166
182
  :language_code,
@@ -181,6 +197,8 @@ module Aws::Polly
181
197
  # Provides lexicon metadata.
182
198
  # @return [Types::LexiconAttributes]
183
199
  #
200
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/LexiconDescription AWS API Documentation
201
+ #
184
202
  class LexiconDescription < Struct.new(
185
203
  :name,
186
204
  :attributes)
@@ -200,6 +218,8 @@ module Aws::Polly
200
218
  # lexicons.
201
219
  # @return [String]
202
220
  #
221
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/ListLexiconsInput AWS API Documentation
222
+ #
203
223
  class ListLexiconsInput < Struct.new(
204
224
  :next_token)
205
225
  include Aws::Structure
@@ -215,6 +235,8 @@ module Aws::Polly
215
235
  # truncated.
216
236
  # @return [String]
217
237
  #
238
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/ListLexiconsOutput AWS API Documentation
239
+ #
218
240
  class ListLexiconsOutput < Struct.new(
219
241
  :lexicons,
220
242
  :next_token)
@@ -239,12 +261,16 @@ module Aws::Polly
239
261
  # Content of the PLS lexicon as string data.
240
262
  # @return [String]
241
263
  #
264
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/PutLexiconInput AWS API Documentation
265
+ #
242
266
  class PutLexiconInput < Struct.new(
243
267
  :name,
244
268
  :content)
245
269
  include Aws::Structure
246
270
  end
247
271
 
272
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/PutLexiconOutput AWS API Documentation
273
+ #
248
274
  class PutLexiconOutput < Aws::EmptyStructure; end
249
275
 
250
276
  # @note When making an API call, you may pass SynthesizeSpeechInput
@@ -252,8 +278,9 @@ module Aws::Polly
252
278
  #
253
279
  # {
254
280
  # lexicon_names: ["LexiconName"],
255
- # output_format: "mp3", # required, accepts mp3, ogg_vorbis, pcm
281
+ # output_format: "json", # required, accepts json, mp3, ogg_vorbis, pcm
256
282
  # sample_rate: "SampleRate",
283
+ # speech_mark_types: ["sentence"], # accepts sentence, ssml, viseme, word
257
284
  # text: "Text", # required
258
285
  # text_type: "ssml", # accepts ssml, text
259
286
  # 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
@@ -271,7 +298,9 @@ module Aws::Polly
271
298
  # @return [Array<String>]
272
299
  #
273
300
  # @!attribute [rw] output_format
274
- # The audio format in which the resulting stream will be encoded.
301
+ # The format in which the returned output will be encoded. For audio
302
+ # stream, this will be mp3, ogg\_vorbis, or pcm. For speech marks,
303
+ # this will be json.
275
304
  # @return [String]
276
305
  #
277
306
  # @!attribute [rw] sample_rate
@@ -284,6 +313,10 @@ module Aws::Polly
284
313
  # is "16000".
285
314
  # @return [String]
286
315
  #
316
+ # @!attribute [rw] speech_mark_types
317
+ # The type of speech marks returned for the input text.
318
+ # @return [Array<String>]
319
+ #
287
320
  # @!attribute [rw] text
288
321
  # Input text to synthesize. If you specify `ssml` as the `TextType`,
289
322
  # follow the SSML format for the input text.
@@ -307,10 +340,13 @@ module Aws::Polly
307
340
  # [1]: http://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html
308
341
  # @return [String]
309
342
  #
343
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/SynthesizeSpeechInput AWS API Documentation
344
+ #
310
345
  class SynthesizeSpeechInput < Struct.new(
311
346
  :lexicon_names,
312
347
  :output_format,
313
348
  :sample_rate,
349
+ :speech_mark_types,
314
350
  :text,
315
351
  :text_type,
316
352
  :voice_id)
@@ -334,12 +370,17 @@ module Aws::Polly
334
370
  # * If you request `pcm` as the `OutputFormat`, the `ContentType`
335
371
  # returned is audio/pcm in a signed 16-bit, 1 channel (mono),
336
372
  # little-endian format.
373
+ #
374
+ # * If you request `json` as the `OutputFormat`, the `ContentType`
375
+ # returned is audio/json.
337
376
  # @return [String]
338
377
  #
339
378
  # @!attribute [rw] request_characters
340
379
  # Number of characters synthesized.
341
380
  # @return [Integer]
342
381
  #
382
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/SynthesizeSpeechOutput AWS API Documentation
383
+ #
343
384
  class SynthesizeSpeechOutput < Struct.new(
344
385
  :audio_stream,
345
386
  :content_type,
@@ -372,6 +413,8 @@ module Aws::Polly
372
413
  # application.
373
414
  # @return [String]
374
415
  #
416
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/Voice AWS API Documentation
417
+ #
375
418
  class Voice < Struct.new(
376
419
  :gender,
377
420
  :id,
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.0.0.rc3
4
+ version: 1.0.0.rc4
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: 2017-01-24 00:00:00.000000000 Z
11
+ date: 2017-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core