Class: Aws::Polly::Presigner
- Inherits:
-
Object
- Object
- Aws::Polly::Presigner
- Defined in:
- lib/aws-sdk-core/polly/presigner.rb
Overview
Allows you to create presigned URLs for ‘synthesize_speech`
Example Use:
signer = Aws::Polly::Presigner.new
url = signer.synthesize_speech_presigned_url(
output_format: 'mp3',
text: 'Hello World',
voice_id: 'Ewa'
)
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Presigner
constructor
A new instance of Presigner.
- #synthesize_speech_presigned_url(params = {}) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Presigner
Returns a new instance of Presigner.
33 34 35 36 |
# File 'lib/aws-sdk-core/polly/presigner.rb', line 33 def initialize( = {}) @credentials = .fetch(:credentials) @region = .fetch(:region) end |
Instance Method Details
#synthesize_speech_presigned_url(params = {}) ⇒ Object
39 40 41 42 |
# File 'lib/aws-sdk-core/polly/presigner.rb', line 39 def synthesize_speech_presigned_url(params = {}) input_shape = Client.api.operation(:synthesize_speech).input.shape sign_but_dont_send(input_shape, params) end |