Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SpeakerVoiceConfig
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SpeakerVoiceConfig
- 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 a single speaker in a multi-speaker setup.
Instance Attribute Summary collapse
-
#speaker ⇒ String
Required.
-
#voice_config ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1VoiceConfig
Configuration for a voice.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SpeakerVoiceConfig
constructor
A new instance of GoogleCloudAiplatformV1beta1SpeakerVoiceConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SpeakerVoiceConfig
Returns a new instance of GoogleCloudAiplatformV1beta1SpeakerVoiceConfig.
57389 57390 57391 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 57389 def initialize(**args) update!(**args) end |
Instance Attribute Details
#speaker ⇒ String
Required. The name of the speaker. This should be the same as the speaker name
used in the prompt.
Corresponds to the JSON property speaker
57382 57383 57384 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 57382 def speaker @speaker end |
#voice_config ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1VoiceConfig
Configuration for a voice.
Corresponds to the JSON property voiceConfig
57387 57388 57389 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 57387 def voice_config @voice_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
57394 57395 57396 57397 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 57394 def update!(**args) @speaker = args[:speaker] if args.key?(:speaker) @voice_config = args[:voice_config] if args.key?(:voice_config) end |