Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1AudioResponseFormat
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1AudioResponseFormat
- 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
-
#bit_rate ⇒ Fixnum
Bit rate in bits per second (bps).
-
#delivery ⇒ String
The delivery mode for the audio output.
-
#mime_type ⇒ String
The MIME type of the audio output.
-
#sample_rate ⇒ Fixnum
Sample rate in Hz.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GenaiVertexV1beta1AudioResponseFormat
constructor
A new instance of GenaiVertexV1beta1AudioResponseFormat.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GenaiVertexV1beta1AudioResponseFormat
Returns a new instance of GenaiVertexV1beta1AudioResponseFormat.
1121 1122 1123 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1121 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bit_rate ⇒ Fixnum
Bit rate in bits per second (bps). Only applicable for compressed formats (MP3,
Opus).
Corresponds to the JSON property bitRate
1104 1105 1106 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1104 def bit_rate @bit_rate end |
#delivery ⇒ String
The delivery mode for the audio output.
Corresponds to the JSON property delivery
1109 1110 1111 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1109 def delivery @delivery end |
#mime_type ⇒ String
The MIME type of the audio output.
Corresponds to the JSON property mimeType
1114 1115 1116 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1114 def mime_type @mime_type end |
#sample_rate ⇒ Fixnum
Sample rate in Hz.
Corresponds to the JSON property sampleRate
1119 1120 1121 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1119 def sample_rate @sample_rate end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1126 1127 1128 1129 1130 1131 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1126 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 |