Class: Aws::BedrockRuntime::Types::AudioSource
- Inherits:
-
Struct
- Object
- Struct
- Aws::BedrockRuntime::Types::AudioSource
- Includes:
- Structure, Structure::Union
- Defined in:
- lib/aws-sdk-bedrockruntime/types.rb
Overview
AudioSource is a union - when making an API calls you must set exactly one of the members.
AudioSource is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of AudioSource corresponding to the set member.
The source of audio data, which can be provided either as raw bytes or a reference to an S3 location.
Direct Known Subclasses
Defined Under Namespace
Classes: Bytes, S3Location, Unknown
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#bytes ⇒ String
Audio data encoded in base64.
-
#s3_location ⇒ Types::S3Location
A reference to audio data stored in an Amazon S3 bucket.
-
#unknown ⇒ Object
Returns the value of attribute unknown.
Instance Attribute Details
#bytes ⇒ String
Audio data encoded in base64.
315 316 317 318 319 320 321 322 323 324 325 326 |
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 315 class AudioSource < Struct.new( :bytes, :s3_location, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class Bytes < AudioSource; end class S3Location < AudioSource; end class Unknown < AudioSource; end end |
#s3_location ⇒ Types::S3Location
A reference to audio data stored in an Amazon S3 bucket. To see which models support S3 uploads, see [Supported models and features for Converse].
[1]: docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference-supported-models-features.html
315 316 317 318 319 320 321 322 323 324 325 326 |
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 315 class AudioSource < Struct.new( :bytes, :s3_location, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class Bytes < AudioSource; end class S3Location < AudioSource; end class Unknown < AudioSource; end end |
#unknown ⇒ Object
Returns the value of attribute unknown
315 316 317 |
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 315 def unknown @unknown end |