RecordingData - Amazon Polly
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

RecordingData

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.

Contents

Bytes

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.

Type: Base64-encoded binary data object

Length Constraints: Maximum length of 5242880.

Required: No

S3Url

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

Type: String

Length Constraints: Maximum length of 1024.

Pattern: ^s3://[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9]/.+$

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: