Class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1AudioResponseFormat
- Inherits:
-
Object
- Object
- Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1AudioResponseFormat
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/firebaseml_v2beta/classes.rb,
lib/google/apis/firebaseml_v2beta/representations.rb,
lib/google/apis/firebaseml_v2beta/representations.rb
Overview
Configuration for audio-specific output formatting.
Instance Attribute Summary collapse
-
#bit_rate ⇒ Fixnum
Optional.
-
#delivery ⇒ String
Optional.
-
#mime_type ⇒ String
Optional.
-
#sample_rate ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1AudioResponseFormat
constructor
A new instance of GoogleCloudAiplatformV1beta1AudioResponseFormat.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1AudioResponseFormat
Returns a new instance of GoogleCloudAiplatformV1beta1AudioResponseFormat.
137 138 139 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 137 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bit_rate ⇒ Fixnum
Optional. Bit rate in bits per second (bps). Only applicable for compressed
formats (MP3, Opus).
Corresponds to the JSON property bitRate
120 121 122 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 120 def bit_rate @bit_rate end |
#delivery ⇒ String
Optional. Delivery mode for the generated content.
Corresponds to the JSON property delivery
125 126 127 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 125 def delivery @delivery end |
#mime_type ⇒ String
Optional. The MIME type of the audio output.
Corresponds to the JSON property mimeType
130 131 132 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 130 def mime_type @mime_type end |
#sample_rate ⇒ Fixnum
Optional. Sample rate for the generated audio in Hertz.
Corresponds to the JSON property sampleRate
135 136 137 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 135 def sample_rate @sample_rate end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
142 143 144 145 146 147 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 142 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 |