Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1AudioContent

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

An audio content block.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1AudioContent

Returns a new instance of GenaiVertexV1beta1AudioContent.



1319
1320
1321
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1319

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#channelsFixnum

The number of audio channels. Corresponds to the JSON property channels

Returns:

  • (Fixnum)


1294
1295
1296
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1294

def channels
  @channels
end

#dataString

The audio content. Corresponds to the JSON property data NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


1300
1301
1302
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1300

def data
  @data
end

#mime_type_stringString

Flexible MIME type string of the audio, superseding mime_type = 1. Note: Bespoke logic in the GAOS parser/serializer maps this to the "mime_type" JSON key. Corresponds to the JSON property mimeTypeString

Returns:

  • (String)


1307
1308
1309
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1307

def mime_type_string
  @mime_type_string
end

#sample_rateFixnum

The sample rate of the audio. Corresponds to the JSON property sampleRate

Returns:

  • (Fixnum)


1312
1313
1314
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1312

def sample_rate
  @sample_rate
end

#uriString

The URI of the audio. Corresponds to the JSON property uri

Returns:

  • (String)


1317
1318
1319
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1317

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1324
1325
1326
1327
1328
1329
1330
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1324

def update!(**args)
  @channels = args[:channels] if args.key?(:channels)
  @data = args[:data] if args.key?(:data)
  @mime_type_string = args[:mime_type_string] if args.key?(:mime_type_string)
  @sample_rate = args[:sample_rate] if args.key?(:sample_rate)
  @uri = args[:uri] if args.key?(:uri)
end