aws-sdk-polly 1.0.0.rc7 → 1.0.0.rc8

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: ae9ab915d445b87bbe555c4c3c9cc6ed073240f4
4
- data.tar.gz: d38ab065c469d929898954a375bffaa63e91756d
3
+ metadata.gz: 4d40e73ac841a77e9363914a529c4713d31029c7
4
+ data.tar.gz: c1f537e2d52e56b34aa15983a44bb22a8d7a84ed
5
5
  SHA512:
6
- metadata.gz: 6e9acc2a0673269b540a900951bcaf0a2fe3d3b2d3eca1f9261f120d3a93036e0ab278e336788a51e751ecbf9d052932374b64590ac11ee51587e80a42b2cf30
7
- data.tar.gz: 9475727d3e9067f22ba9a3357cdd92a8b662befb20ad1230e70f6091e72890ce67660aa77fa3266ba2fc202e29365d11459e9024628771de9a1ea3258daa3bad
6
+ metadata.gz: 87a7733af211b3b4e8afc2862d102744714a023f100e263787eddc0beccb439156627f99ff2528bb72b3cd351d13b63dbf5aff7ad1b289b445e011065a5b687c
7
+ data.tar.gz: 735d1d60db7fa8ecc98d0bd84eb3f4d36d36ef3a25fd1a2a8a2631fea040b5760e7f9f3342580673b8671ccdb5f5ad473c22733dcc55db3040637620cfc84abc
@@ -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.rc7'
45
+ GEM_VERSION = '1.0.0.rc8'
46
46
 
47
47
  end
@@ -162,6 +162,19 @@ module Aws::Polly
162
162
  #
163
163
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
164
164
  #
165
+ #
166
+ # @example Example: To delete a lexicon
167
+ #
168
+ # # Deletes a specified pronunciation lexicon stored in an AWS Region.
169
+ #
170
+ # resp = client.delete_lexicon({
171
+ # name: "example",
172
+ # })
173
+ #
174
+ # resp.to_h outputs the following:
175
+ # {
176
+ # }
177
+ #
165
178
  # @example Request syntax with placeholder values
166
179
  #
167
180
  # resp = client.delete_lexicon({
@@ -213,6 +226,42 @@ module Aws::Polly
213
226
  # * {Types::DescribeVoicesOutput#voices #voices} => Array<Types::Voice>
214
227
  # * {Types::DescribeVoicesOutput#next_token #next_token} => String
215
228
  #
229
+ #
230
+ # @example Example: To describe available voices
231
+ #
232
+ # # Returns the list of voices that are available for use when requesting speech synthesis. Displayed languages are those within the specified language code. If no language code is specified, voices for all available languages are displayed.
233
+ #
234
+ # resp = client.describe_voices({
235
+ # language_code: "en-GB",
236
+ # })
237
+ #
238
+ # resp.to_h outputs the following:
239
+ # {
240
+ # voices: [
241
+ # {
242
+ # gender: "Female",
243
+ # id: "Emma",
244
+ # language_code: "en-GB",
245
+ # language_name: "British English",
246
+ # name: "Emma",
247
+ # },
248
+ # {
249
+ # gender: "Male",
250
+ # id: "Brian",
251
+ # language_code: "en-GB",
252
+ # language_name: "British English",
253
+ # name: "Brian",
254
+ # },
255
+ # {
256
+ # gender: "Female",
257
+ # id: "Amy",
258
+ # language_code: "en-GB",
259
+ # language_name: "British English",
260
+ # name: "Amy",
261
+ # },
262
+ # ],
263
+ # }
264
+ #
216
265
  # @example Request syntax with placeholder values
217
266
  #
218
267
  # resp = client.describe_voices({
@@ -254,6 +303,31 @@ module Aws::Polly
254
303
  # * {Types::GetLexiconOutput#lexicon #lexicon} => Types::Lexicon
255
304
  # * {Types::GetLexiconOutput#lexicon_attributes #lexicon_attributes} => Types::LexiconAttributes
256
305
  #
306
+ #
307
+ # @example Example: To retrieve a lexicon
308
+ #
309
+ # # Returns the content of the specified pronunciation lexicon stored in an AWS Region.
310
+ #
311
+ # resp = client.get_lexicon({
312
+ # name: "",
313
+ # })
314
+ #
315
+ # resp.to_h outputs the following:
316
+ # {
317
+ # lexicon: {
318
+ # content: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<lexicon version=\"1.0\" \r\n xmlns=\"http://www.w3.org/2005/01/pronunciation-lexicon\"\r\n xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \r\n xsi:schemaLocation=\"http://www.w3.org/2005/01/pronunciation-lexicon \r\n http://www.w3.org/TR/2007/CR-pronunciation-lexicon-20071212/pls.xsd\"\r\n alphabet=\"ipa\" \r\n xml:lang=\"en-US\">\r\n <lexeme>\r\n <grapheme>W3C</grapheme>\r\n <alias>World Wide Web Consortium</alias>\r\n </lexeme>\r\n</lexicon>",
319
+ # name: "example",
320
+ # },
321
+ # lexicon_attributes: {
322
+ # alphabet: "ipa",
323
+ # language_code: "en-US",
324
+ # last_modified: Time.parse(1478542980.117),
325
+ # lexemes_count: 1,
326
+ # lexicon_arn: "arn:aws:polly:us-east-1:123456789012:lexicon/example",
327
+ # size: 503,
328
+ # },
329
+ # }
330
+ #
257
331
  # @example Request syntax with placeholder values
258
332
  #
259
333
  # resp = client.get_lexicon({
@@ -297,6 +371,31 @@ module Aws::Polly
297
371
  # * {Types::ListLexiconsOutput#lexicons #lexicons} => Array&lt;Types::LexiconDescription&gt;
298
372
  # * {Types::ListLexiconsOutput#next_token #next_token} => String
299
373
  #
374
+ #
375
+ # @example Example: To list all lexicons in a region
376
+ #
377
+ # # Returns a list of pronunciation lexicons stored in an AWS Region.
378
+ #
379
+ # resp = client.list_lexicons({
380
+ # })
381
+ #
382
+ # resp.to_h outputs the following:
383
+ # {
384
+ # lexicons: [
385
+ # {
386
+ # attributes: {
387
+ # alphabet: "ipa",
388
+ # language_code: "en-US",
389
+ # last_modified: Time.parse(1478542980.117),
390
+ # lexemes_count: 1,
391
+ # lexicon_arn: "arn:aws:polly:us-east-1:123456789012:lexicon/example",
392
+ # size: 503,
393
+ # },
394
+ # name: "example",
395
+ # },
396
+ # ],
397
+ # }
398
+ #
300
399
  # @example Request syntax with placeholder values
301
400
  #
302
401
  # resp = client.list_lexicons({
@@ -346,6 +445,20 @@ module Aws::Polly
346
445
  #
347
446
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
348
447
  #
448
+ #
449
+ # @example Example: To save a lexicon
450
+ #
451
+ # # Stores a pronunciation lexicon in an AWS Region.
452
+ #
453
+ # resp = client.put_lexicon({
454
+ # content: "file://example.pls",
455
+ # name: "W3C",
456
+ # })
457
+ #
458
+ # resp.to_h outputs the following:
459
+ # {
460
+ # }
461
+ #
349
462
  # @example Request syntax with placeholder values
350
463
  #
351
464
  # resp = client.put_lexicon({
@@ -425,6 +538,29 @@ module Aws::Polly
425
538
  # * {Types::SynthesizeSpeechOutput#content_type #content_type} => String
426
539
  # * {Types::SynthesizeSpeechOutput#request_characters #request_characters} => Integer
427
540
  #
541
+ #
542
+ # @example Example: To synthesize speech
543
+ #
544
+ # # Synthesizes plain text or SSML into a file of human-like speech.
545
+ #
546
+ # resp = client.synthesize_speech({
547
+ # lexicon_names: [
548
+ # "example",
549
+ # ],
550
+ # output_format: "mp3",
551
+ # sample_rate: "8000",
552
+ # text: "All Gaul is divided into three parts",
553
+ # text_type: "text",
554
+ # voice_id: "Joanna",
555
+ # })
556
+ #
557
+ # resp.to_h outputs the following:
558
+ # {
559
+ # audio_stream: "TEXT",
560
+ # content_type: "audio/mpeg",
561
+ # request_characters: 37,
562
+ # }
563
+ #
428
564
  # @example Request syntax with placeholder values
429
565
  #
430
566
  # resp = client.synthesize_speech({
@@ -465,7 +601,7 @@ module Aws::Polly
465
601
  params: params,
466
602
  config: config)
467
603
  context[:gem_name] = 'aws-sdk-polly'
468
- context[:gem_version] = '1.0.0.rc7'
604
+ context[:gem_version] = '1.0.0.rc8'
469
605
  Seahorse::Client::Request.new(handlers, context)
470
606
  end
471
607
 
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.rc7
4
+ version: 1.0.0.rc8
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-05-23 00:00:00.000000000 Z
11
+ date: 2017-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 3.0.0.rc12
19
+ version: 3.0.0.rc14
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 3.0.0.rc12
26
+ version: 3.0.0.rc14
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: aws-sigv4
29
29
  requirement: !ruby/object:Gem::Requirement