aws-sdk-polly 1.6.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-polly.rb +1 -1
- data/lib/aws-sdk-polly/client.rb +200 -1
- data/lib/aws-sdk-polly/client_api.rb +114 -0
- data/lib/aws-sdk-polly/types.rb +267 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 474990ecb22f5c660fb825d9692bd7e95546284d
|
4
|
+
data.tar.gz: 5360cd40b93009097893a47f8a3630bffd60acdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 769f4eed57ca28298ee3f57e8ccce794925641482f367334da3d9dee7ded7faec50c2b62ca465375314b937f4f3438f6b905c4196f2fda0487a3435894ec36c1
|
7
|
+
data.tar.gz: 921ff54f8fcb49adc0eaf2b68f6b624221cb78e577b2c99533d304dd0998c14126af6a160ae5ba16979b16a12b78c838b0cc051c9a4223bd9bbae442769ec36f
|
data/lib/aws-sdk-polly.rb
CHANGED
data/lib/aws-sdk-polly/client.rb
CHANGED
@@ -366,6 +366,51 @@ module Aws::Polly
|
|
366
366
|
req.send_request(options)
|
367
367
|
end
|
368
368
|
|
369
|
+
# Retrieves a specific SpeechSynthesisTask object based on its TaskID.
|
370
|
+
# This object contains information about the given speech synthesis
|
371
|
+
# task, including the status of the task, and a link to the S3 bucket
|
372
|
+
# containing the output of the task.
|
373
|
+
#
|
374
|
+
# @option params [required, String] :task_id
|
375
|
+
# The Amazon Polly generated identifier for a speech synthesis task.
|
376
|
+
#
|
377
|
+
# @return [Types::GetSpeechSynthesisTaskOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
378
|
+
#
|
379
|
+
# * {Types::GetSpeechSynthesisTaskOutput#synthesis_task #synthesis_task} => Types::SynthesisTask
|
380
|
+
#
|
381
|
+
# @example Request syntax with placeholder values
|
382
|
+
#
|
383
|
+
# resp = client.get_speech_synthesis_task({
|
384
|
+
# task_id: "TaskId", # required
|
385
|
+
# })
|
386
|
+
#
|
387
|
+
# @example Response structure
|
388
|
+
#
|
389
|
+
# resp.synthesis_task.task_id #=> String
|
390
|
+
# resp.synthesis_task.task_status #=> String, one of "scheduled", "inProgress", "completed", "failed"
|
391
|
+
# resp.synthesis_task.task_status_reason #=> String
|
392
|
+
# resp.synthesis_task.output_uri #=> String
|
393
|
+
# resp.synthesis_task.creation_time #=> Time
|
394
|
+
# resp.synthesis_task.request_characters #=> Integer
|
395
|
+
# resp.synthesis_task.sns_topic_arn #=> String
|
396
|
+
# resp.synthesis_task.lexicon_names #=> Array
|
397
|
+
# resp.synthesis_task.lexicon_names[0] #=> String
|
398
|
+
# resp.synthesis_task.output_format #=> String, one of "json", "mp3", "ogg_vorbis", "pcm"
|
399
|
+
# resp.synthesis_task.sample_rate #=> String
|
400
|
+
# resp.synthesis_task.speech_mark_types #=> Array
|
401
|
+
# resp.synthesis_task.speech_mark_types[0] #=> String, one of "sentence", "ssml", "viseme", "word"
|
402
|
+
# resp.synthesis_task.text_type #=> String, one of "ssml", "text"
|
403
|
+
# resp.synthesis_task.voice_id #=> String, one of "Geraint", "Gwyneth", "Mads", "Naja", "Hans", "Marlene", "Nicole", "Russell", "Amy", "Brian", "Emma", "Raveena", "Ivy", "Joanna", "Joey", "Justin", "Kendra", "Kimberly", "Matthew", "Salli", "Conchita", "Enrique", "Miguel", "Penelope", "Chantal", "Celine", "Lea", "Mathieu", "Dora", "Karl", "Carla", "Giorgio", "Mizuki", "Liv", "Lotte", "Ruben", "Ewa", "Jacek", "Jan", "Maja", "Ricardo", "Vitoria", "Cristiano", "Ines", "Carmen", "Maxim", "Tatyana", "Astrid", "Filiz", "Vicki", "Takumi", "Seoyeon", "Aditi"
|
404
|
+
#
|
405
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/GetSpeechSynthesisTask AWS API Documentation
|
406
|
+
#
|
407
|
+
# @overload get_speech_synthesis_task(params = {})
|
408
|
+
# @param [Hash] params ({})
|
409
|
+
def get_speech_synthesis_task(params = {}, options = {})
|
410
|
+
req = build_request(:get_speech_synthesis_task, params)
|
411
|
+
req.send_request(options)
|
412
|
+
end
|
413
|
+
|
369
414
|
# Returns a list of pronunciation lexicons stored in an AWS Region. For
|
370
415
|
# more information, see [Managing Lexicons][1].
|
371
416
|
#
|
@@ -435,6 +480,62 @@ module Aws::Polly
|
|
435
480
|
req.send_request(options)
|
436
481
|
end
|
437
482
|
|
483
|
+
# Returns a list of SpeechSynthesisTask objects ordered by their
|
484
|
+
# creation date. This operation can filter the tasks by their status,
|
485
|
+
# for example, allowing users to list only tasks that are completed.
|
486
|
+
#
|
487
|
+
# @option params [Integer] :max_results
|
488
|
+
# Maximum number of speech synthesis tasks returned in a List operation.
|
489
|
+
#
|
490
|
+
# @option params [String] :next_token
|
491
|
+
# The pagination token to use in the next request to continue the
|
492
|
+
# listing of speech synthesis tasks.
|
493
|
+
#
|
494
|
+
# @option params [String] :status
|
495
|
+
# Status of the speech synthesis tasks returned in a List operation
|
496
|
+
#
|
497
|
+
# @return [Types::ListSpeechSynthesisTasksOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
498
|
+
#
|
499
|
+
# * {Types::ListSpeechSynthesisTasksOutput#next_token #next_token} => String
|
500
|
+
# * {Types::ListSpeechSynthesisTasksOutput#synthesis_tasks #synthesis_tasks} => Array<Types::SynthesisTask>
|
501
|
+
#
|
502
|
+
# @example Request syntax with placeholder values
|
503
|
+
#
|
504
|
+
# resp = client.list_speech_synthesis_tasks({
|
505
|
+
# max_results: 1,
|
506
|
+
# next_token: "NextToken",
|
507
|
+
# status: "scheduled", # accepts scheduled, inProgress, completed, failed
|
508
|
+
# })
|
509
|
+
#
|
510
|
+
# @example Response structure
|
511
|
+
#
|
512
|
+
# resp.next_token #=> String
|
513
|
+
# resp.synthesis_tasks #=> Array
|
514
|
+
# resp.synthesis_tasks[0].task_id #=> String
|
515
|
+
# resp.synthesis_tasks[0].task_status #=> String, one of "scheduled", "inProgress", "completed", "failed"
|
516
|
+
# resp.synthesis_tasks[0].task_status_reason #=> String
|
517
|
+
# resp.synthesis_tasks[0].output_uri #=> String
|
518
|
+
# resp.synthesis_tasks[0].creation_time #=> Time
|
519
|
+
# resp.synthesis_tasks[0].request_characters #=> Integer
|
520
|
+
# resp.synthesis_tasks[0].sns_topic_arn #=> String
|
521
|
+
# resp.synthesis_tasks[0].lexicon_names #=> Array
|
522
|
+
# resp.synthesis_tasks[0].lexicon_names[0] #=> String
|
523
|
+
# resp.synthesis_tasks[0].output_format #=> String, one of "json", "mp3", "ogg_vorbis", "pcm"
|
524
|
+
# resp.synthesis_tasks[0].sample_rate #=> String
|
525
|
+
# resp.synthesis_tasks[0].speech_mark_types #=> Array
|
526
|
+
# resp.synthesis_tasks[0].speech_mark_types[0] #=> String, one of "sentence", "ssml", "viseme", "word"
|
527
|
+
# resp.synthesis_tasks[0].text_type #=> String, one of "ssml", "text"
|
528
|
+
# resp.synthesis_tasks[0].voice_id #=> String, one of "Geraint", "Gwyneth", "Mads", "Naja", "Hans", "Marlene", "Nicole", "Russell", "Amy", "Brian", "Emma", "Raveena", "Ivy", "Joanna", "Joey", "Justin", "Kendra", "Kimberly", "Matthew", "Salli", "Conchita", "Enrique", "Miguel", "Penelope", "Chantal", "Celine", "Lea", "Mathieu", "Dora", "Karl", "Carla", "Giorgio", "Mizuki", "Liv", "Lotte", "Ruben", "Ewa", "Jacek", "Jan", "Maja", "Ricardo", "Vitoria", "Cristiano", "Ines", "Carmen", "Maxim", "Tatyana", "Astrid", "Filiz", "Vicki", "Takumi", "Seoyeon", "Aditi"
|
529
|
+
#
|
530
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/ListSpeechSynthesisTasks AWS API Documentation
|
531
|
+
#
|
532
|
+
# @overload list_speech_synthesis_tasks(params = {})
|
533
|
+
# @param [Hash] params ({})
|
534
|
+
def list_speech_synthesis_tasks(params = {}, options = {})
|
535
|
+
req = build_request(:list_speech_synthesis_tasks, params)
|
536
|
+
req.send_request(options)
|
537
|
+
end
|
538
|
+
|
438
539
|
# Stores a pronunciation lexicon in an AWS Region. If a lexicon with the
|
439
540
|
# same name already exists in the region, it is overwritten by the new
|
440
541
|
# lexicon. Lexicon operations have eventual consistency, therefore, it
|
@@ -487,6 +588,104 @@ module Aws::Polly
|
|
487
588
|
req.send_request(options)
|
488
589
|
end
|
489
590
|
|
591
|
+
# Allows the creation of an asynchronous synthesis task, by starting a
|
592
|
+
# new `SpeechSynthesisTask`. This operation requires all the standard
|
593
|
+
# information needed for speech synthesis, plus the name of an Amazon S3
|
594
|
+
# bucket for the service to store the output of the synthesis task and
|
595
|
+
# two optional parameters (OutputS3KeyPrefix and SnsTopicArn). Once the
|
596
|
+
# synthesis task is created, this operation will return a
|
597
|
+
# SpeechSynthesisTask object, which will include an identifier of this
|
598
|
+
# task as well as the current status.
|
599
|
+
#
|
600
|
+
# @option params [Array<String>] :lexicon_names
|
601
|
+
# List of one or more pronunciation lexicon names you want the service
|
602
|
+
# to apply during synthesis. Lexicons are applied only if the language
|
603
|
+
# of the lexicon is the same as the language of the voice.
|
604
|
+
#
|
605
|
+
# @option params [required, String] :output_format
|
606
|
+
# The format in which the returned output will be encoded. For audio
|
607
|
+
# stream, this will be mp3, ogg\_vorbis, or pcm. For speech marks, this
|
608
|
+
# will be json.
|
609
|
+
#
|
610
|
+
# @option params [required, String] :output_s3_bucket_name
|
611
|
+
# Amazon S3 bucket name to which the output file will be saved.
|
612
|
+
#
|
613
|
+
# @option params [String] :output_s3_key_prefix
|
614
|
+
# The Amazon S3 Key prefix for the output speech file.
|
615
|
+
#
|
616
|
+
# @option params [String] :sample_rate
|
617
|
+
# The audio frequency specified in Hz.
|
618
|
+
#
|
619
|
+
# The valid values for mp3 and ogg\_vorbis are "8000", "16000", and
|
620
|
+
# "22050". The default value is "22050".
|
621
|
+
#
|
622
|
+
# Valid values for pcm are "8000" and "16000" The default value is
|
623
|
+
# "16000".
|
624
|
+
#
|
625
|
+
# @option params [String] :sns_topic_arn
|
626
|
+
# ARN for the SNS topic optionally used for providing status
|
627
|
+
# notification for a speech synthesis task.
|
628
|
+
#
|
629
|
+
# @option params [Array<String>] :speech_mark_types
|
630
|
+
# The type of speech marks returned for the input text.
|
631
|
+
#
|
632
|
+
# @option params [required, String] :text
|
633
|
+
# The input text to synthesize. If you specify ssml as the TextType,
|
634
|
+
# follow the SSML format for the input text.
|
635
|
+
#
|
636
|
+
# @option params [String] :text_type
|
637
|
+
# Specifies whether the input text is plain text or SSML. The default
|
638
|
+
# value is plain text.
|
639
|
+
#
|
640
|
+
# @option params [required, String] :voice_id
|
641
|
+
# Voice ID to use for the synthesis.
|
642
|
+
#
|
643
|
+
# @return [Types::StartSpeechSynthesisTaskOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
644
|
+
#
|
645
|
+
# * {Types::StartSpeechSynthesisTaskOutput#synthesis_task #synthesis_task} => Types::SynthesisTask
|
646
|
+
#
|
647
|
+
# @example Request syntax with placeholder values
|
648
|
+
#
|
649
|
+
# resp = client.start_speech_synthesis_task({
|
650
|
+
# lexicon_names: ["LexiconName"],
|
651
|
+
# output_format: "json", # required, accepts json, mp3, ogg_vorbis, pcm
|
652
|
+
# output_s3_bucket_name: "OutputS3BucketName", # required
|
653
|
+
# output_s3_key_prefix: "OutputS3KeyPrefix",
|
654
|
+
# sample_rate: "SampleRate",
|
655
|
+
# sns_topic_arn: "SnsTopicArn",
|
656
|
+
# speech_mark_types: ["sentence"], # accepts sentence, ssml, viseme, word
|
657
|
+
# text: "Text", # required
|
658
|
+
# text_type: "ssml", # accepts ssml, text
|
659
|
+
# voice_id: "Geraint", # required, accepts Geraint, Gwyneth, Mads, Naja, Hans, Marlene, Nicole, Russell, Amy, Brian, Emma, Raveena, Ivy, Joanna, Joey, Justin, Kendra, Kimberly, Matthew, Salli, Conchita, Enrique, Miguel, Penelope, Chantal, Celine, Lea, Mathieu, Dora, Karl, Carla, Giorgio, Mizuki, Liv, Lotte, Ruben, Ewa, Jacek, Jan, Maja, Ricardo, Vitoria, Cristiano, Ines, Carmen, Maxim, Tatyana, Astrid, Filiz, Vicki, Takumi, Seoyeon, Aditi
|
660
|
+
# })
|
661
|
+
#
|
662
|
+
# @example Response structure
|
663
|
+
#
|
664
|
+
# resp.synthesis_task.task_id #=> String
|
665
|
+
# resp.synthesis_task.task_status #=> String, one of "scheduled", "inProgress", "completed", "failed"
|
666
|
+
# resp.synthesis_task.task_status_reason #=> String
|
667
|
+
# resp.synthesis_task.output_uri #=> String
|
668
|
+
# resp.synthesis_task.creation_time #=> Time
|
669
|
+
# resp.synthesis_task.request_characters #=> Integer
|
670
|
+
# resp.synthesis_task.sns_topic_arn #=> String
|
671
|
+
# resp.synthesis_task.lexicon_names #=> Array
|
672
|
+
# resp.synthesis_task.lexicon_names[0] #=> String
|
673
|
+
# resp.synthesis_task.output_format #=> String, one of "json", "mp3", "ogg_vorbis", "pcm"
|
674
|
+
# resp.synthesis_task.sample_rate #=> String
|
675
|
+
# resp.synthesis_task.speech_mark_types #=> Array
|
676
|
+
# resp.synthesis_task.speech_mark_types[0] #=> String, one of "sentence", "ssml", "viseme", "word"
|
677
|
+
# resp.synthesis_task.text_type #=> String, one of "ssml", "text"
|
678
|
+
# resp.synthesis_task.voice_id #=> String, one of "Geraint", "Gwyneth", "Mads", "Naja", "Hans", "Marlene", "Nicole", "Russell", "Amy", "Brian", "Emma", "Raveena", "Ivy", "Joanna", "Joey", "Justin", "Kendra", "Kimberly", "Matthew", "Salli", "Conchita", "Enrique", "Miguel", "Penelope", "Chantal", "Celine", "Lea", "Mathieu", "Dora", "Karl", "Carla", "Giorgio", "Mizuki", "Liv", "Lotte", "Ruben", "Ewa", "Jacek", "Jan", "Maja", "Ricardo", "Vitoria", "Cristiano", "Ines", "Carmen", "Maxim", "Tatyana", "Astrid", "Filiz", "Vicki", "Takumi", "Seoyeon", "Aditi"
|
679
|
+
#
|
680
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/StartSpeechSynthesisTask AWS API Documentation
|
681
|
+
#
|
682
|
+
# @overload start_speech_synthesis_task(params = {})
|
683
|
+
# @param [Hash] params ({})
|
684
|
+
def start_speech_synthesis_task(params = {}, options = {})
|
685
|
+
req = build_request(:start_speech_synthesis_task, params)
|
686
|
+
req.send_request(options)
|
687
|
+
end
|
688
|
+
|
490
689
|
# Synthesizes UTF-8 input, plain text or SSML, to a stream of bytes.
|
491
690
|
# SSML input must be valid, well-formed SSML. Some alphabets might not
|
492
691
|
# be available with all the voices (for example, Cyrillic might not be
|
@@ -613,7 +812,7 @@ module Aws::Polly
|
|
613
812
|
params: params,
|
614
813
|
config: config)
|
615
814
|
context[:gem_name] = 'aws-sdk-polly'
|
616
|
-
context[:gem_version] = '1.
|
815
|
+
context[:gem_version] = '1.7.0'
|
617
816
|
Seahorse::Client::Request.new(handlers, context)
|
618
817
|
end
|
619
818
|
|
@@ -14,6 +14,7 @@ module Aws::Polly
|
|
14
14
|
Alphabet = Shapes::StringShape.new(name: 'Alphabet')
|
15
15
|
AudioStream = Shapes::BlobShape.new(name: 'AudioStream')
|
16
16
|
ContentType = Shapes::StringShape.new(name: 'ContentType')
|
17
|
+
DateTime = Shapes::TimestampShape.new(name: 'DateTime')
|
17
18
|
DeleteLexiconInput = Shapes::StructureShape.new(name: 'DeleteLexiconInput')
|
18
19
|
DeleteLexiconOutput = Shapes::StructureShape.new(name: 'DeleteLexiconOutput')
|
19
20
|
DescribeVoicesInput = Shapes::StructureShape.new(name: 'DescribeVoicesInput')
|
@@ -22,10 +23,16 @@ module Aws::Polly
|
|
22
23
|
Gender = Shapes::StringShape.new(name: 'Gender')
|
23
24
|
GetLexiconInput = Shapes::StructureShape.new(name: 'GetLexiconInput')
|
24
25
|
GetLexiconOutput = Shapes::StructureShape.new(name: 'GetLexiconOutput')
|
26
|
+
GetSpeechSynthesisTaskInput = Shapes::StructureShape.new(name: 'GetSpeechSynthesisTaskInput')
|
27
|
+
GetSpeechSynthesisTaskOutput = Shapes::StructureShape.new(name: 'GetSpeechSynthesisTaskOutput')
|
25
28
|
InvalidLexiconException = Shapes::StructureShape.new(name: 'InvalidLexiconException')
|
26
29
|
InvalidNextTokenException = Shapes::StructureShape.new(name: 'InvalidNextTokenException')
|
30
|
+
InvalidS3BucketException = Shapes::StructureShape.new(name: 'InvalidS3BucketException')
|
31
|
+
InvalidS3KeyException = Shapes::StructureShape.new(name: 'InvalidS3KeyException')
|
27
32
|
InvalidSampleRateException = Shapes::StructureShape.new(name: 'InvalidSampleRateException')
|
33
|
+
InvalidSnsTopicArnException = Shapes::StructureShape.new(name: 'InvalidSnsTopicArnException')
|
28
34
|
InvalidSsmlException = Shapes::StructureShape.new(name: 'InvalidSsmlException')
|
35
|
+
InvalidTaskIdException = Shapes::StructureShape.new(name: 'InvalidTaskIdException')
|
29
36
|
LanguageCode = Shapes::StringShape.new(name: 'LanguageCode')
|
30
37
|
LanguageName = Shapes::StringShape.new(name: 'LanguageName')
|
31
38
|
LastModified = Shapes::TimestampShape.new(name: 'LastModified')
|
@@ -42,22 +49,37 @@ module Aws::Polly
|
|
42
49
|
LexiconSizeExceededException = Shapes::StructureShape.new(name: 'LexiconSizeExceededException')
|
43
50
|
ListLexiconsInput = Shapes::StructureShape.new(name: 'ListLexiconsInput')
|
44
51
|
ListLexiconsOutput = Shapes::StructureShape.new(name: 'ListLexiconsOutput')
|
52
|
+
ListSpeechSynthesisTasksInput = Shapes::StructureShape.new(name: 'ListSpeechSynthesisTasksInput')
|
53
|
+
ListSpeechSynthesisTasksOutput = Shapes::StructureShape.new(name: 'ListSpeechSynthesisTasksOutput')
|
45
54
|
MarksNotSupportedForFormatException = Shapes::StructureShape.new(name: 'MarksNotSupportedForFormatException')
|
46
55
|
MaxLexemeLengthExceededException = Shapes::StructureShape.new(name: 'MaxLexemeLengthExceededException')
|
47
56
|
MaxLexiconsNumberExceededException = Shapes::StructureShape.new(name: 'MaxLexiconsNumberExceededException')
|
57
|
+
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
48
58
|
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
49
59
|
OutputFormat = Shapes::StringShape.new(name: 'OutputFormat')
|
60
|
+
OutputS3BucketName = Shapes::StringShape.new(name: 'OutputS3BucketName')
|
61
|
+
OutputS3KeyPrefix = Shapes::StringShape.new(name: 'OutputS3KeyPrefix')
|
62
|
+
OutputUri = Shapes::StringShape.new(name: 'OutputUri')
|
50
63
|
PutLexiconInput = Shapes::StructureShape.new(name: 'PutLexiconInput')
|
51
64
|
PutLexiconOutput = Shapes::StructureShape.new(name: 'PutLexiconOutput')
|
52
65
|
RequestCharacters = Shapes::IntegerShape.new(name: 'RequestCharacters')
|
53
66
|
SampleRate = Shapes::StringShape.new(name: 'SampleRate')
|
54
67
|
ServiceFailureException = Shapes::StructureShape.new(name: 'ServiceFailureException')
|
55
68
|
Size = Shapes::IntegerShape.new(name: 'Size')
|
69
|
+
SnsTopicArn = Shapes::StringShape.new(name: 'SnsTopicArn')
|
56
70
|
SpeechMarkType = Shapes::StringShape.new(name: 'SpeechMarkType')
|
57
71
|
SpeechMarkTypeList = Shapes::ListShape.new(name: 'SpeechMarkTypeList')
|
58
72
|
SsmlMarksNotSupportedForTextTypeException = Shapes::StructureShape.new(name: 'SsmlMarksNotSupportedForTextTypeException')
|
73
|
+
StartSpeechSynthesisTaskInput = Shapes::StructureShape.new(name: 'StartSpeechSynthesisTaskInput')
|
74
|
+
StartSpeechSynthesisTaskOutput = Shapes::StructureShape.new(name: 'StartSpeechSynthesisTaskOutput')
|
75
|
+
SynthesisTask = Shapes::StructureShape.new(name: 'SynthesisTask')
|
76
|
+
SynthesisTaskNotFoundException = Shapes::StructureShape.new(name: 'SynthesisTaskNotFoundException')
|
77
|
+
SynthesisTasks = Shapes::ListShape.new(name: 'SynthesisTasks')
|
59
78
|
SynthesizeSpeechInput = Shapes::StructureShape.new(name: 'SynthesizeSpeechInput')
|
60
79
|
SynthesizeSpeechOutput = Shapes::StructureShape.new(name: 'SynthesizeSpeechOutput')
|
80
|
+
TaskId = Shapes::StringShape.new(name: 'TaskId')
|
81
|
+
TaskStatus = Shapes::StringShape.new(name: 'TaskStatus')
|
82
|
+
TaskStatusReason = Shapes::StringShape.new(name: 'TaskStatusReason')
|
61
83
|
Text = Shapes::StringShape.new(name: 'Text')
|
62
84
|
TextLengthExceededException = Shapes::StructureShape.new(name: 'TextLengthExceededException')
|
63
85
|
TextType = Shapes::StringShape.new(name: 'TextType')
|
@@ -88,6 +110,12 @@ module Aws::Polly
|
|
88
110
|
GetLexiconOutput.add_member(:lexicon_attributes, Shapes::ShapeRef.new(shape: LexiconAttributes, location_name: "LexiconAttributes"))
|
89
111
|
GetLexiconOutput.struct_class = Types::GetLexiconOutput
|
90
112
|
|
113
|
+
GetSpeechSynthesisTaskInput.add_member(:task_id, Shapes::ShapeRef.new(shape: TaskId, required: true, location: "uri", location_name: "TaskId"))
|
114
|
+
GetSpeechSynthesisTaskInput.struct_class = Types::GetSpeechSynthesisTaskInput
|
115
|
+
|
116
|
+
GetSpeechSynthesisTaskOutput.add_member(:synthesis_task, Shapes::ShapeRef.new(shape: SynthesisTask, location_name: "SynthesisTask"))
|
117
|
+
GetSpeechSynthesisTaskOutput.struct_class = Types::GetSpeechSynthesisTaskOutput
|
118
|
+
|
91
119
|
Lexicon.add_member(:content, Shapes::ShapeRef.new(shape: LexiconContent, location_name: "Content"))
|
92
120
|
Lexicon.add_member(:name, Shapes::ShapeRef.new(shape: LexiconName, location_name: "Name"))
|
93
121
|
Lexicon.struct_class = Types::Lexicon
|
@@ -115,6 +143,15 @@ module Aws::Polly
|
|
115
143
|
ListLexiconsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
116
144
|
ListLexiconsOutput.struct_class = Types::ListLexiconsOutput
|
117
145
|
|
146
|
+
ListSpeechSynthesisTasksInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "MaxResults"))
|
147
|
+
ListSpeechSynthesisTasksInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "NextToken"))
|
148
|
+
ListSpeechSynthesisTasksInput.add_member(:status, Shapes::ShapeRef.new(shape: TaskStatus, location: "querystring", location_name: "Status"))
|
149
|
+
ListSpeechSynthesisTasksInput.struct_class = Types::ListSpeechSynthesisTasksInput
|
150
|
+
|
151
|
+
ListSpeechSynthesisTasksOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
152
|
+
ListSpeechSynthesisTasksOutput.add_member(:synthesis_tasks, Shapes::ShapeRef.new(shape: SynthesisTasks, location_name: "SynthesisTasks"))
|
153
|
+
ListSpeechSynthesisTasksOutput.struct_class = Types::ListSpeechSynthesisTasksOutput
|
154
|
+
|
118
155
|
PutLexiconInput.add_member(:name, Shapes::ShapeRef.new(shape: LexiconName, required: true, location: "uri", location_name: "LexiconName"))
|
119
156
|
PutLexiconInput.add_member(:content, Shapes::ShapeRef.new(shape: LexiconContent, required: true, location_name: "Content"))
|
120
157
|
PutLexiconInput.struct_class = Types::PutLexiconInput
|
@@ -123,6 +160,38 @@ module Aws::Polly
|
|
123
160
|
|
124
161
|
SpeechMarkTypeList.member = Shapes::ShapeRef.new(shape: SpeechMarkType)
|
125
162
|
|
163
|
+
StartSpeechSynthesisTaskInput.add_member(:lexicon_names, Shapes::ShapeRef.new(shape: LexiconNameList, location_name: "LexiconNames"))
|
164
|
+
StartSpeechSynthesisTaskInput.add_member(:output_format, Shapes::ShapeRef.new(shape: OutputFormat, required: true, location_name: "OutputFormat"))
|
165
|
+
StartSpeechSynthesisTaskInput.add_member(:output_s3_bucket_name, Shapes::ShapeRef.new(shape: OutputS3BucketName, required: true, location_name: "OutputS3BucketName"))
|
166
|
+
StartSpeechSynthesisTaskInput.add_member(:output_s3_key_prefix, Shapes::ShapeRef.new(shape: OutputS3KeyPrefix, location_name: "OutputS3KeyPrefix"))
|
167
|
+
StartSpeechSynthesisTaskInput.add_member(:sample_rate, Shapes::ShapeRef.new(shape: SampleRate, location_name: "SampleRate"))
|
168
|
+
StartSpeechSynthesisTaskInput.add_member(:sns_topic_arn, Shapes::ShapeRef.new(shape: SnsTopicArn, location_name: "SnsTopicArn"))
|
169
|
+
StartSpeechSynthesisTaskInput.add_member(:speech_mark_types, Shapes::ShapeRef.new(shape: SpeechMarkTypeList, location_name: "SpeechMarkTypes"))
|
170
|
+
StartSpeechSynthesisTaskInput.add_member(:text, Shapes::ShapeRef.new(shape: Text, required: true, location_name: "Text"))
|
171
|
+
StartSpeechSynthesisTaskInput.add_member(:text_type, Shapes::ShapeRef.new(shape: TextType, location_name: "TextType"))
|
172
|
+
StartSpeechSynthesisTaskInput.add_member(:voice_id, Shapes::ShapeRef.new(shape: VoiceId, required: true, location_name: "VoiceId"))
|
173
|
+
StartSpeechSynthesisTaskInput.struct_class = Types::StartSpeechSynthesisTaskInput
|
174
|
+
|
175
|
+
StartSpeechSynthesisTaskOutput.add_member(:synthesis_task, Shapes::ShapeRef.new(shape: SynthesisTask, location_name: "SynthesisTask"))
|
176
|
+
StartSpeechSynthesisTaskOutput.struct_class = Types::StartSpeechSynthesisTaskOutput
|
177
|
+
|
178
|
+
SynthesisTask.add_member(:task_id, Shapes::ShapeRef.new(shape: TaskId, location_name: "TaskId"))
|
179
|
+
SynthesisTask.add_member(:task_status, Shapes::ShapeRef.new(shape: TaskStatus, location_name: "TaskStatus"))
|
180
|
+
SynthesisTask.add_member(:task_status_reason, Shapes::ShapeRef.new(shape: TaskStatusReason, location_name: "TaskStatusReason"))
|
181
|
+
SynthesisTask.add_member(:output_uri, Shapes::ShapeRef.new(shape: OutputUri, location_name: "OutputUri"))
|
182
|
+
SynthesisTask.add_member(:creation_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "CreationTime"))
|
183
|
+
SynthesisTask.add_member(:request_characters, Shapes::ShapeRef.new(shape: RequestCharacters, location_name: "RequestCharacters"))
|
184
|
+
SynthesisTask.add_member(:sns_topic_arn, Shapes::ShapeRef.new(shape: SnsTopicArn, location_name: "SnsTopicArn"))
|
185
|
+
SynthesisTask.add_member(:lexicon_names, Shapes::ShapeRef.new(shape: LexiconNameList, location_name: "LexiconNames"))
|
186
|
+
SynthesisTask.add_member(:output_format, Shapes::ShapeRef.new(shape: OutputFormat, location_name: "OutputFormat"))
|
187
|
+
SynthesisTask.add_member(:sample_rate, Shapes::ShapeRef.new(shape: SampleRate, location_name: "SampleRate"))
|
188
|
+
SynthesisTask.add_member(:speech_mark_types, Shapes::ShapeRef.new(shape: SpeechMarkTypeList, location_name: "SpeechMarkTypes"))
|
189
|
+
SynthesisTask.add_member(:text_type, Shapes::ShapeRef.new(shape: TextType, location_name: "TextType"))
|
190
|
+
SynthesisTask.add_member(:voice_id, Shapes::ShapeRef.new(shape: VoiceId, location_name: "VoiceId"))
|
191
|
+
SynthesisTask.struct_class = Types::SynthesisTask
|
192
|
+
|
193
|
+
SynthesisTasks.member = Shapes::ShapeRef.new(shape: SynthesisTask)
|
194
|
+
|
126
195
|
SynthesizeSpeechInput.add_member(:lexicon_names, Shapes::ShapeRef.new(shape: LexiconNameList, location_name: "LexiconNames"))
|
127
196
|
SynthesizeSpeechInput.add_member(:output_format, Shapes::ShapeRef.new(shape: OutputFormat, required: true, location_name: "OutputFormat"))
|
128
197
|
SynthesizeSpeechInput.add_member(:sample_rate, Shapes::ShapeRef.new(shape: SampleRate, location_name: "SampleRate"))
|
@@ -191,6 +260,17 @@ module Aws::Polly
|
|
191
260
|
o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
|
192
261
|
end)
|
193
262
|
|
263
|
+
api.add_operation(:get_speech_synthesis_task, Seahorse::Model::Operation.new.tap do |o|
|
264
|
+
o.name = "GetSpeechSynthesisTask"
|
265
|
+
o.http_method = "GET"
|
266
|
+
o.http_request_uri = "/v1/synthesisTasks/{TaskId}"
|
267
|
+
o.input = Shapes::ShapeRef.new(shape: GetSpeechSynthesisTaskInput)
|
268
|
+
o.output = Shapes::ShapeRef.new(shape: GetSpeechSynthesisTaskOutput)
|
269
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidTaskIdException)
|
270
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
|
271
|
+
o.errors << Shapes::ShapeRef.new(shape: SynthesisTaskNotFoundException)
|
272
|
+
end)
|
273
|
+
|
194
274
|
api.add_operation(:list_lexicons, Seahorse::Model::Operation.new.tap do |o|
|
195
275
|
o.name = "ListLexicons"
|
196
276
|
o.http_method = "GET"
|
@@ -201,6 +281,22 @@ module Aws::Polly
|
|
201
281
|
o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
|
202
282
|
end)
|
203
283
|
|
284
|
+
api.add_operation(:list_speech_synthesis_tasks, Seahorse::Model::Operation.new.tap do |o|
|
285
|
+
o.name = "ListSpeechSynthesisTasks"
|
286
|
+
o.http_method = "GET"
|
287
|
+
o.http_request_uri = "/v1/synthesisTasks"
|
288
|
+
o.input = Shapes::ShapeRef.new(shape: ListSpeechSynthesisTasksInput)
|
289
|
+
o.output = Shapes::ShapeRef.new(shape: ListSpeechSynthesisTasksOutput)
|
290
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
291
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
|
292
|
+
o[:pager] = Aws::Pager.new(
|
293
|
+
limit_key: "max_results",
|
294
|
+
tokens: {
|
295
|
+
"next_token" => "next_token"
|
296
|
+
}
|
297
|
+
)
|
298
|
+
end)
|
299
|
+
|
204
300
|
api.add_operation(:put_lexicon, Seahorse::Model::Operation.new.tap do |o|
|
205
301
|
o.name = "PutLexicon"
|
206
302
|
o.http_method = "PUT"
|
@@ -216,6 +312,24 @@ module Aws::Polly
|
|
216
312
|
o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
|
217
313
|
end)
|
218
314
|
|
315
|
+
api.add_operation(:start_speech_synthesis_task, Seahorse::Model::Operation.new.tap do |o|
|
316
|
+
o.name = "StartSpeechSynthesisTask"
|
317
|
+
o.http_method = "POST"
|
318
|
+
o.http_request_uri = "/v1/synthesisTasks"
|
319
|
+
o.input = Shapes::ShapeRef.new(shape: StartSpeechSynthesisTaskInput)
|
320
|
+
o.output = Shapes::ShapeRef.new(shape: StartSpeechSynthesisTaskOutput)
|
321
|
+
o.errors << Shapes::ShapeRef.new(shape: TextLengthExceededException)
|
322
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidS3BucketException)
|
323
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidS3KeyException)
|
324
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidSampleRateException)
|
325
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidSnsTopicArnException)
|
326
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidSsmlException)
|
327
|
+
o.errors << Shapes::ShapeRef.new(shape: LexiconNotFoundException)
|
328
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
|
329
|
+
o.errors << Shapes::ShapeRef.new(shape: MarksNotSupportedForFormatException)
|
330
|
+
o.errors << Shapes::ShapeRef.new(shape: SsmlMarksNotSupportedForTextTypeException)
|
331
|
+
end)
|
332
|
+
|
219
333
|
api.add_operation(:synthesize_speech, Seahorse::Model::Operation.new.tap do |o|
|
220
334
|
o.name = "SynthesizeSpeech"
|
221
335
|
o.http_method = "POST"
|
data/lib/aws-sdk-polly/types.rb
CHANGED
@@ -115,6 +115,37 @@ module Aws::Polly
|
|
115
115
|
include Aws::Structure
|
116
116
|
end
|
117
117
|
|
118
|
+
# @note When making an API call, you may pass GetSpeechSynthesisTaskInput
|
119
|
+
# data as a hash:
|
120
|
+
#
|
121
|
+
# {
|
122
|
+
# task_id: "TaskId", # required
|
123
|
+
# }
|
124
|
+
#
|
125
|
+
# @!attribute [rw] task_id
|
126
|
+
# The Amazon Polly generated identifier for a speech synthesis task.
|
127
|
+
# @return [String]
|
128
|
+
#
|
129
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/GetSpeechSynthesisTaskInput AWS API Documentation
|
130
|
+
#
|
131
|
+
class GetSpeechSynthesisTaskInput < Struct.new(
|
132
|
+
:task_id)
|
133
|
+
include Aws::Structure
|
134
|
+
end
|
135
|
+
|
136
|
+
# @!attribute [rw] synthesis_task
|
137
|
+
# SynthesisTask object that provides information from the requested
|
138
|
+
# task, including output format, creation time, task status, and so
|
139
|
+
# on.
|
140
|
+
# @return [Types::SynthesisTask]
|
141
|
+
#
|
142
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/GetSpeechSynthesisTaskOutput AWS API Documentation
|
143
|
+
#
|
144
|
+
class GetSpeechSynthesisTaskOutput < Struct.new(
|
145
|
+
:synthesis_task)
|
146
|
+
include Aws::Structure
|
147
|
+
end
|
148
|
+
|
118
149
|
# Provides lexicon name and lexicon content in string format. For more
|
119
150
|
# information, see [Pronunciation Lexicon Specification (PLS) Version
|
120
151
|
# 1.0][1].
|
@@ -243,6 +274,58 @@ module Aws::Polly
|
|
243
274
|
include Aws::Structure
|
244
275
|
end
|
245
276
|
|
277
|
+
# @note When making an API call, you may pass ListSpeechSynthesisTasksInput
|
278
|
+
# data as a hash:
|
279
|
+
#
|
280
|
+
# {
|
281
|
+
# max_results: 1,
|
282
|
+
# next_token: "NextToken",
|
283
|
+
# status: "scheduled", # accepts scheduled, inProgress, completed, failed
|
284
|
+
# }
|
285
|
+
#
|
286
|
+
# @!attribute [rw] max_results
|
287
|
+
# Maximum number of speech synthesis tasks returned in a List
|
288
|
+
# operation.
|
289
|
+
# @return [Integer]
|
290
|
+
#
|
291
|
+
# @!attribute [rw] next_token
|
292
|
+
# The pagination token to use in the next request to continue the
|
293
|
+
# listing of speech synthesis tasks.
|
294
|
+
# @return [String]
|
295
|
+
#
|
296
|
+
# @!attribute [rw] status
|
297
|
+
# Status of the speech synthesis tasks returned in a List operation
|
298
|
+
# @return [String]
|
299
|
+
#
|
300
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/ListSpeechSynthesisTasksInput AWS API Documentation
|
301
|
+
#
|
302
|
+
class ListSpeechSynthesisTasksInput < Struct.new(
|
303
|
+
:max_results,
|
304
|
+
:next_token,
|
305
|
+
:status)
|
306
|
+
include Aws::Structure
|
307
|
+
end
|
308
|
+
|
309
|
+
# @!attribute [rw] next_token
|
310
|
+
# An opaque pagination token returned from the previous List operation
|
311
|
+
# in this request. If present, this indicates where to continue the
|
312
|
+
# listing.
|
313
|
+
# @return [String]
|
314
|
+
#
|
315
|
+
# @!attribute [rw] synthesis_tasks
|
316
|
+
# SynthesisTask object that provides information from the specified
|
317
|
+
# task in the list request, including output format, creation time,
|
318
|
+
# task status, and so on.
|
319
|
+
# @return [Array<Types::SynthesisTask>]
|
320
|
+
#
|
321
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/ListSpeechSynthesisTasksOutput AWS API Documentation
|
322
|
+
#
|
323
|
+
class ListSpeechSynthesisTasksOutput < Struct.new(
|
324
|
+
:next_token,
|
325
|
+
:synthesis_tasks)
|
326
|
+
include Aws::Structure
|
327
|
+
end
|
328
|
+
|
246
329
|
# @note When making an API call, you may pass PutLexiconInput
|
247
330
|
# data as a hash:
|
248
331
|
#
|
@@ -273,6 +356,190 @@ module Aws::Polly
|
|
273
356
|
#
|
274
357
|
class PutLexiconOutput < Aws::EmptyStructure; end
|
275
358
|
|
359
|
+
# @note When making an API call, you may pass StartSpeechSynthesisTaskInput
|
360
|
+
# data as a hash:
|
361
|
+
#
|
362
|
+
# {
|
363
|
+
# lexicon_names: ["LexiconName"],
|
364
|
+
# output_format: "json", # required, accepts json, mp3, ogg_vorbis, pcm
|
365
|
+
# output_s3_bucket_name: "OutputS3BucketName", # required
|
366
|
+
# output_s3_key_prefix: "OutputS3KeyPrefix",
|
367
|
+
# sample_rate: "SampleRate",
|
368
|
+
# sns_topic_arn: "SnsTopicArn",
|
369
|
+
# speech_mark_types: ["sentence"], # accepts sentence, ssml, viseme, word
|
370
|
+
# text: "Text", # required
|
371
|
+
# text_type: "ssml", # accepts ssml, text
|
372
|
+
# voice_id: "Geraint", # required, accepts Geraint, Gwyneth, Mads, Naja, Hans, Marlene, Nicole, Russell, Amy, Brian, Emma, Raveena, Ivy, Joanna, Joey, Justin, Kendra, Kimberly, Matthew, Salli, Conchita, Enrique, Miguel, Penelope, Chantal, Celine, Lea, Mathieu, Dora, Karl, Carla, Giorgio, Mizuki, Liv, Lotte, Ruben, Ewa, Jacek, Jan, Maja, Ricardo, Vitoria, Cristiano, Ines, Carmen, Maxim, Tatyana, Astrid, Filiz, Vicki, Takumi, Seoyeon, Aditi
|
373
|
+
# }
|
374
|
+
#
|
375
|
+
# @!attribute [rw] lexicon_names
|
376
|
+
# List of one or more pronunciation lexicon names you want the service
|
377
|
+
# to apply during synthesis. Lexicons are applied only if the language
|
378
|
+
# of the lexicon is the same as the language of the voice.
|
379
|
+
# @return [Array<String>]
|
380
|
+
#
|
381
|
+
# @!attribute [rw] output_format
|
382
|
+
# The format in which the returned output will be encoded. For audio
|
383
|
+
# stream, this will be mp3, ogg\_vorbis, or pcm. For speech marks,
|
384
|
+
# this will be json.
|
385
|
+
# @return [String]
|
386
|
+
#
|
387
|
+
# @!attribute [rw] output_s3_bucket_name
|
388
|
+
# Amazon S3 bucket name to which the output file will be saved.
|
389
|
+
# @return [String]
|
390
|
+
#
|
391
|
+
# @!attribute [rw] output_s3_key_prefix
|
392
|
+
# The Amazon S3 Key prefix for the output speech file.
|
393
|
+
# @return [String]
|
394
|
+
#
|
395
|
+
# @!attribute [rw] sample_rate
|
396
|
+
# The audio frequency specified in Hz.
|
397
|
+
#
|
398
|
+
# The valid values for mp3 and ogg\_vorbis are "8000", "16000",
|
399
|
+
# and "22050". The default value is "22050".
|
400
|
+
#
|
401
|
+
# Valid values for pcm are "8000" and "16000" The default value is
|
402
|
+
# "16000".
|
403
|
+
# @return [String]
|
404
|
+
#
|
405
|
+
# @!attribute [rw] sns_topic_arn
|
406
|
+
# ARN for the SNS topic optionally used for providing status
|
407
|
+
# notification for a speech synthesis task.
|
408
|
+
# @return [String]
|
409
|
+
#
|
410
|
+
# @!attribute [rw] speech_mark_types
|
411
|
+
# The type of speech marks returned for the input text.
|
412
|
+
# @return [Array<String>]
|
413
|
+
#
|
414
|
+
# @!attribute [rw] text
|
415
|
+
# The input text to synthesize. If you specify ssml as the TextType,
|
416
|
+
# follow the SSML format for the input text.
|
417
|
+
# @return [String]
|
418
|
+
#
|
419
|
+
# @!attribute [rw] text_type
|
420
|
+
# Specifies whether the input text is plain text or SSML. The default
|
421
|
+
# value is plain text.
|
422
|
+
# @return [String]
|
423
|
+
#
|
424
|
+
# @!attribute [rw] voice_id
|
425
|
+
# Voice ID to use for the synthesis.
|
426
|
+
# @return [String]
|
427
|
+
#
|
428
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/StartSpeechSynthesisTaskInput AWS API Documentation
|
429
|
+
#
|
430
|
+
class StartSpeechSynthesisTaskInput < Struct.new(
|
431
|
+
:lexicon_names,
|
432
|
+
:output_format,
|
433
|
+
:output_s3_bucket_name,
|
434
|
+
:output_s3_key_prefix,
|
435
|
+
:sample_rate,
|
436
|
+
:sns_topic_arn,
|
437
|
+
:speech_mark_types,
|
438
|
+
:text,
|
439
|
+
:text_type,
|
440
|
+
:voice_id)
|
441
|
+
include Aws::Structure
|
442
|
+
end
|
443
|
+
|
444
|
+
# @!attribute [rw] synthesis_task
|
445
|
+
# SynthesisTask object that provides information and attributes about
|
446
|
+
# a newly submitted speech synthesis task.
|
447
|
+
# @return [Types::SynthesisTask]
|
448
|
+
#
|
449
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/StartSpeechSynthesisTaskOutput AWS API Documentation
|
450
|
+
#
|
451
|
+
class StartSpeechSynthesisTaskOutput < Struct.new(
|
452
|
+
:synthesis_task)
|
453
|
+
include Aws::Structure
|
454
|
+
end
|
455
|
+
|
456
|
+
# SynthesisTask object that provides information about a speech
|
457
|
+
# synthesis task.
|
458
|
+
#
|
459
|
+
# @!attribute [rw] task_id
|
460
|
+
# The Amazon Polly generated identifier for a speech synthesis task.
|
461
|
+
# @return [String]
|
462
|
+
#
|
463
|
+
# @!attribute [rw] task_status
|
464
|
+
# Current status of the individual speech synthesis task.
|
465
|
+
# @return [String]
|
466
|
+
#
|
467
|
+
# @!attribute [rw] task_status_reason
|
468
|
+
# Reason for the current status of a specific speech synthesis task,
|
469
|
+
# including errors if the task has failed.
|
470
|
+
# @return [String]
|
471
|
+
#
|
472
|
+
# @!attribute [rw] output_uri
|
473
|
+
# Pathway for the output speech file.
|
474
|
+
# @return [String]
|
475
|
+
#
|
476
|
+
# @!attribute [rw] creation_time
|
477
|
+
# Timestamp for the time the synthesis task was started.
|
478
|
+
# @return [Time]
|
479
|
+
#
|
480
|
+
# @!attribute [rw] request_characters
|
481
|
+
# Number of billable characters synthesized.
|
482
|
+
# @return [Integer]
|
483
|
+
#
|
484
|
+
# @!attribute [rw] sns_topic_arn
|
485
|
+
# ARN for the SNS topic optionally used for providing status
|
486
|
+
# notification for a speech synthesis task.
|
487
|
+
# @return [String]
|
488
|
+
#
|
489
|
+
# @!attribute [rw] lexicon_names
|
490
|
+
# List of one or more pronunciation lexicon names you want the service
|
491
|
+
# to apply during synthesis. Lexicons are applied only if the language
|
492
|
+
# of the lexicon is the same as the language of the voice.
|
493
|
+
# @return [Array<String>]
|
494
|
+
#
|
495
|
+
# @!attribute [rw] output_format
|
496
|
+
# The format in which the returned output will be encoded. For audio
|
497
|
+
# stream, this will be mp3, ogg\_vorbis, or pcm. For speech marks,
|
498
|
+
# this will be json.
|
499
|
+
# @return [String]
|
500
|
+
#
|
501
|
+
# @!attribute [rw] sample_rate
|
502
|
+
# The audio frequency specified in Hz.
|
503
|
+
#
|
504
|
+
# The valid values for mp3 and ogg\_vorbis are "8000", "16000",
|
505
|
+
# and "22050". The default value is "22050".
|
506
|
+
#
|
507
|
+
# Valid values for pcm are "8000" and "16000" The default value is
|
508
|
+
# "16000".
|
509
|
+
# @return [String]
|
510
|
+
#
|
511
|
+
# @!attribute [rw] speech_mark_types
|
512
|
+
# The type of speech marks returned for the input text.
|
513
|
+
# @return [Array<String>]
|
514
|
+
#
|
515
|
+
# @!attribute [rw] text_type
|
516
|
+
# Specifies whether the input text is plain text or SSML. The default
|
517
|
+
# value is plain text.
|
518
|
+
# @return [String]
|
519
|
+
#
|
520
|
+
# @!attribute [rw] voice_id
|
521
|
+
# Voice ID to use for the synthesis.
|
522
|
+
# @return [String]
|
523
|
+
#
|
524
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/SynthesisTask AWS API Documentation
|
525
|
+
#
|
526
|
+
class SynthesisTask < Struct.new(
|
527
|
+
:task_id,
|
528
|
+
:task_status,
|
529
|
+
:task_status_reason,
|
530
|
+
:output_uri,
|
531
|
+
:creation_time,
|
532
|
+
:request_characters,
|
533
|
+
:sns_topic_arn,
|
534
|
+
:lexicon_names,
|
535
|
+
:output_format,
|
536
|
+
:sample_rate,
|
537
|
+
:speech_mark_types,
|
538
|
+
:text_type,
|
539
|
+
:voice_id)
|
540
|
+
include Aws::Structure
|
541
|
+
end
|
542
|
+
|
276
543
|
# @note When making an API call, you may pass SynthesizeSpeechInput
|
277
544
|
# data as a hash:
|
278
545
|
#
|
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.7.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: 2018-
|
11
|
+
date: 2018-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|