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.



968
969
970
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 968

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

Instance Attribute Details

#channelsFixnum

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

Returns:

  • (Fixnum)


945
946
947
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 945

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)


951
952
953
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 951

def data
  @data
end

#mime_typeString

The mime type of the audio. Corresponds to the JSON property mimeType

Returns:

  • (String)


956
957
958
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 956

def mime_type
  @mime_type
end

#sample_rateFixnum

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

Returns:

  • (Fixnum)


961
962
963
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 961

def sample_rate
  @sample_rate
end

#uriString

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

Returns:

  • (String)


966
967
968
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 966

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



973
974
975
976
977
978
979
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 973

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