Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1AudioContent
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1AudioContent
- 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
-
#channels ⇒ Fixnum
The number of audio channels.
-
#data ⇒ String
The audio content.
-
#mime_type_string ⇒ String
Flexible MIME type string of the audio, superseding mime_type = 1.
-
#sample_rate ⇒ Fixnum
The sample rate of the audio.
-
#uri ⇒ String
The URI of the audio.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GenaiVertexV1beta1AudioContent
constructor
A new instance of GenaiVertexV1beta1AudioContent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GenaiVertexV1beta1AudioContent
Returns a new instance of GenaiVertexV1beta1AudioContent.
1319 1320 1321 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1319 def initialize(**args) update!(**args) end |
Instance Attribute Details
#channels ⇒ Fixnum
The number of audio channels.
Corresponds to the JSON property channels
1294 1295 1296 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1294 def channels @channels end |
#data ⇒ String
The audio content.
Corresponds to the JSON property data
NOTE: Values are automatically base64 encoded/decoded in the client library.
1300 1301 1302 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1300 def data @data end |
#mime_type_string ⇒ String
Flexible MIME type string of the audio, superseding mime_type = 1. Note:
Bespoke logic in the GAOS parser/serializer maps this to the "mime_type" JSON
key.
Corresponds to the JSON property mimeTypeString
1307 1308 1309 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1307 def mime_type_string @mime_type_string end |
#sample_rate ⇒ Fixnum
The sample rate of the audio.
Corresponds to the JSON property sampleRate
1312 1313 1314 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1312 def sample_rate @sample_rate end |
#uri ⇒ String
The URI of the audio.
Corresponds to the JSON property uri
1317 1318 1319 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1317 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1324 1325 1326 1327 1328 1329 1330 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1324 def update!(**args) @channels = args[:channels] if args.key?(:channels) @data = args[:data] if args.key?(:data) @mime_type_string = args[:mime_type_string] if args.key?(:mime_type_string) @sample_rate = args[:sample_rate] if args.key?(:sample_rate) @uri = args[:uri] if args.key?(:uri) end |