Class SyncMedia
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SyncMedia.Builder,SyncMedia>
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.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SyncMedia.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.static SyncMediafromMediaBytes(SdkBytes mediaBytes) Create an instance of this class withmediaBytes()initialized to the given value.static SyncMediafromMediaFileUri(String mediaFileUri) Create an instance of this class withmediaFileUri()initialized to the given value.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final SdkBytesYour audio file, provided inline in the request.final StringThe Amazon S3 location of the media file you want to transcribe.static Class<? extends SyncMedia.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.type()Retrieve an enum value representing which member of this object is populated.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
mediaBytes
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.
- Returns:
- 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.
-
mediaFileUri
The Amazon S3 location of the media file you want to transcribe. For example:
-
s3://amzn-s3-demo-bucket/my-media-file.flac -
s3://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.
- Returns:
- The Amazon S3 location of the media file you want to transcribe. For example:
-
s3://amzn-s3-demo-bucket/my-media-file.flac -
s3://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.
-
-
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<SyncMedia.Builder,SyncMedia> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
fromMediaBytes
Create an instance of this class withmediaBytes()initialized to the given value.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.
- Parameters:
mediaBytes- 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.
-
fromMediaFileUri
Create an instance of this class withmediaFileUri()initialized to the given value.The Amazon S3 location of the media file you want to transcribe. For example:
-
s3://amzn-s3-demo-bucket/my-media-file.flac -
s3://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.
- Parameters:
mediaFileUri- The Amazon S3 location of the media file you want to transcribe. For example:-
s3://amzn-s3-demo-bucket/my-media-file.flac -
s3://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.
-
-
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beSyncMedia.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beSyncMedia.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-