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
The mime type of the audio.
-
#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.
1090 1091 1092 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1090 def initialize(**args) update!(**args) end |
Instance Attribute Details
#channels ⇒ Fixnum
The number of audio channels.
Corresponds to the JSON property channels
1067 1068 1069 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1067 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.
1073 1074 1075 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1073 def data @data end |
#mime_type ⇒ String
The mime type of the audio.
Corresponds to the JSON property mime_type
1078 1079 1080 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1078 def mime_type @mime_type end |
#sample_rate ⇒ Fixnum
The sample rate of the audio.
Corresponds to the JSON property sample_rate
1083 1084 1085 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1083 def sample_rate @sample_rate end |
#uri ⇒ String
The URI of the audio.
Corresponds to the JSON property uri
1088 1089 1090 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1088 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1095 1096 1097 1098 1099 1100 1101 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1095 def update!(**args) @channels = args[:channels] if args.key?(:channels) @data = args[:data] if args.key?(:data) @mime_type = args[:mime_type] if args.key?(:mime_type) @sample_rate = args[:sample_rate] if args.key?(:sample_rate) @uri = args[:uri] if args.key?(:uri) end |