A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.aws.amazon.com/sdkforruby/api/Aws/Polly/Presigner.html below:

Presigner — AWS SDK for Ruby V2

You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Polly::Presigner
Inherits:
Object show all
Defined in:
aws-sdk-core/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' )

Attribute Summary collapse Instance Method Summary collapse Constructor Details #initialize(options = {}) ⇒ Presigner

Returns a new instance of Presigner.

33
34
35
36
# File 'aws-sdk-core/lib/aws-sdk-core/polly/presigner.rb', line 33

def initialize(options = {})
  @credentials = options.fetch(:credentials)
  @region = options.fetch(:region)
end
Instance Method Details #synthesize_speech_presigned_url(params = {}) ⇒ Object
39
40
41
42
# File 'aws-sdk-core/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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4