Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AudioResponseFormat

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-specific output formatting.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1AudioResponseFormat

Returns a new instance of GoogleCloudAiplatformV1beta1AudioResponseFormat.



8157
8158
8159
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8157

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

Instance Attribute Details

#bit_rateFixnum

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

Returns:

  • (Fixnum)


8140
8141
8142
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8140

def bit_rate
  @bit_rate
end

#deliveryString

Optional. Delivery mode for the generated content. Corresponds to the JSON property delivery

Returns:

  • (String)


8145
8146
8147
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8145

def delivery
  @delivery
end

#mime_typeString

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

Returns:

  • (String)


8150
8151
8152
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8150

def mime_type
  @mime_type
end

#sample_rateFixnum

Optional. Sample rate for the generated audio in Hertz. Corresponds to the JSON property sampleRate

Returns:

  • (Fixnum)


8155
8156
8157
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8155

def sample_rate
  @sample_rate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8162
8163
8164
8165
8166
8167
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8162

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