Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SpeakerVoiceConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SpeakerVoiceConfig

Returns a new instance of GoogleCloudAiplatformV1beta1SpeakerVoiceConfig.



50887
50888
50889
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 50887

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#speakerString

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

Returns:

  • (String)


50880
50881
50882
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 50880

def speaker
  @speaker
end

#voice_configGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1VoiceConfig

Configuration for a voice. Corresponds to the JSON property voiceConfig



50885
50886
50887
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 50885

def voice_config
  @voice_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



50892
50893
50894
50895
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 50892

def update!(**args)
  @speaker = args[:speaker] if args.key?(:speaker)
  @voice_config = args[:voice_config] if args.key?(:voice_config)
end