Class: Aws::BedrockRuntime::Types::AudioBlock

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

Overview

An audio content block that contains audio data in various supported formats.

Constant Summary collapse

SENSITIVE =
[:source, :error]

Instance Attribute Summary collapse

Instance Attribute Details

#errorTypes::ErrorBlock

Error information if the audio block could not be processed or contains invalid data.

Returns:



284
285
286
287
288
289
290
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 284

class AudioBlock < Struct.new(
  :format,
  :source,
  :error)
  SENSITIVE = [:source, :error]
  include Aws::Structure
end

#formatString

The format of the audio data, such as MP3, WAV, FLAC, or other supported audio formats.

Returns:

  • (String)


284
285
286
287
288
289
290
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 284

class AudioBlock < Struct.new(
  :format,
  :source,
  :error)
  SENSITIVE = [:source, :error]
  include Aws::Structure
end

#sourceTypes::AudioSource

The source of the audio data, which can be provided as raw bytes or an S3 location.

Returns:



284
285
286
287
288
289
290
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 284

class AudioBlock < Struct.new(
  :format,
  :source,
  :error)
  SENSITIVE = [:source, :error]
  include Aws::Structure
end