Class: Aws::TranscribeService::Types::SyncMedia
- Inherits:
-
Struct
- Object
- Struct
- Aws::TranscribeService::Types::SyncMedia
- Defined in:
- gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/types.rb
Overview
SyncMedia is a union - when making an API calls you must set exactly one of the members.
The audio to transcribe. Specify exactly one of MediaBytes or
MediaFileUri.
Audio sent in the request (MediaBytes) can be up to 25 MB. Audio in
Amazon S3 (MediaFileUri) can be up to 500 MB.
Defined Under Namespace
Classes: MediaBytes, MediaFileUri, Unknown
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#media_bytes ⇒ String
Your audio file, provided inline in the request.
-
#media_file_uri ⇒ String
The Amazon S3 location of the media file you want to transcribe.
-
#unknown ⇒ Object
Returns the value of attribute unknown.
Instance Attribute Details
#media_bytes ⇒ String
Your audio file, provided inline in the request. The maximum size is 25 MB (26,214,400 bytes) of audio, measured before base64 encoding.
If you use an Amazon Web Services SDK, the SDK base64-encodes the bytes for you. If you call the API directly, base64-encode the bytes yourself.
5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 |
# File 'gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/types.rb', line 5286 class SyncMedia < Struct.new( :media_bytes, :media_file_uri, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class MediaBytes < SyncMedia; end class MediaFileUri < SyncMedia; end class Unknown < SyncMedia; end end |
#media_file_uri ⇒ String
The Amazon S3 location of the media file you want to transcribe. For example:
s3://amzn-s3-demo-bucket/my-media-file.flacs3://amzn-s3-demo-bucket/media-files/my-media-file.flac
The maximum file size is 500 MB. You must have read permission for the file.
The Amazon S3 bucket that contains your input media must be located in the same Amazon Web Services Region where you're making your transcription request.
5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 |
# File 'gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/types.rb', line 5286 class SyncMedia < Struct.new( :media_bytes, :media_file_uri, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class MediaBytes < SyncMedia; end class MediaFileUri < SyncMedia; end class Unknown < SyncMedia; end end |
#unknown ⇒ Object
Returns the value of attribute unknown
5286 5287 5288 |
# File 'gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/types.rb', line 5286 def unknown @unknown end |