Class: Aws::Polly::Types::RecordingData

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb

Overview

The audio source of a recording. In a CreateVoice request, specify exactly one of S3Url and Bytes. In a response, a recording that Amazon Polly read from Amazon S3 includes its S3Url. A recording that you passed as Bytes includes neither field, because Amazon Polly doesn't return the audio.

Constant Summary collapse

SENSITIVE =
[:bytes]

Instance Attribute Summary collapse

Instance Attribute Details

#bytes ⇒ String

The audio data, passed directly in the request. The data must be in the format that Format specifies and can be up to 5 MB. Amazon Polly doesn't store the audio after it creates the voice, and doesn't return this field in responses.

Returns:

  • (String)


899
900
901
902
903
904
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 899

class RecordingData < Struct.new(
  :s3_url,
  :bytes)
  SENSITIVE = [:bytes]
  include Aws::Structure
end

#s3_url ⇒ String

The Amazon S3 URL of the audio object, in the form s3://bucket/key. You need s3:GetObject permission on the object.

Returns:

  • (String)


899
900
901
902
903
904
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 899

class RecordingData < Struct.new(
  :s3_url,
  :bytes)
  SENSITIVE = [:bytes]
  include Aws::Structure
end