Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SpeechConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb

Overview

The speech generation config.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1SpeechConfig

Returns a new instance of GoogleCloudAiplatformV1SpeechConfig.



35023
35024
35025
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 35023

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

Instance Attribute Details

#language_codeString

Optional. Language code (ISO 639. e.g. en-US) for the speech synthesization. Corresponds to the JSON property languageCode

Returns:

  • (String)


35016
35017
35018
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 35016

def language_code
  @language_code
end

#voice_configGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1VoiceConfig

The configuration for the voice to use. Corresponds to the JSON property voiceConfig



35021
35022
35023
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 35021

def voice_config
  @voice_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



35028
35029
35030
35031
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 35028

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