Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SpeechConfig
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SpeechConfig
- 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
-
#language_code ⇒ String
Optional.
-
#voice_config ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VoiceConfig
The configuration for the voice to use.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1SpeechConfig
constructor
A new instance of GoogleCloudAiplatformV1SpeechConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1SpeechConfig
Returns a new instance of GoogleCloudAiplatformV1SpeechConfig.
33938 33939 33940 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 33938 def initialize(**args) update!(**args) end |
Instance Attribute Details
#language_code ⇒ String
Optional. Language code (ISO 639. e.g. en-US) for the speech synthesization.
Corresponds to the JSON property languageCode
33931 33932 33933 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 33931 def language_code @language_code end |
#voice_config ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VoiceConfig
The configuration for the voice to use.
Corresponds to the JSON property voiceConfig
33936 33937 33938 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 33936 def voice_config @voice_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
33943 33944 33945 33946 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 33943 def update!(**args) @language_code = args[:language_code] if args.key?(:language_code) @voice_config = args[:voice_config] if args.key?(:voice_config) end |