Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1AudioResponseFormat

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

Configuration for audio output format.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1AudioResponseFormat

Returns a new instance of GenaiVertexV1beta1AudioResponseFormat.



1179
1180
1181
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1179

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

Instance Attribute Details

#bit_rateFixnum

Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus). Corresponds to the JSON property bit_rate

Returns:

  • (Fixnum)


1162
1163
1164
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1162

def bit_rate
  @bit_rate
end

#deliveryString

The delivery mode for the audio output. Corresponds to the JSON property delivery

Returns:

  • (String)


1167
1168
1169
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1167

def delivery
  @delivery
end

#mime_typeString

The MIME type of the audio output. Corresponds to the JSON property mime_type

Returns:

  • (String)


1172
1173
1174
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1172

def mime_type
  @mime_type
end

#sample_rateFixnum

Sample rate in Hz. Corresponds to the JSON property sample_rate

Returns:

  • (Fixnum)


1177
1178
1179
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1177

def sample_rate
  @sample_rate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1184
1185
1186
1187
1188
1189
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1184

def update!(**args)
  @bit_rate = args[:bit_rate] if args.key?(:bit_rate)
  @delivery = args[:delivery] if args.key?(:delivery)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
  @sample_rate = args[:sample_rate] if args.key?(:sample_rate)
end