Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SpeechConfig
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SpeechConfig
- 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 speech generation.
Instance Attribute Summary collapse
-
#language_code ⇒ String
Optional.
-
#multi_speaker_voice_config ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MultiSpeakerVoiceConfig
Configuration for a multi-speaker text-to-speech request.
-
#voice_config ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1VoiceConfig
Configuration for a voice.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SpeechConfig
constructor
A new instance of GoogleCloudAiplatformV1beta1SpeechConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SpeechConfig
Returns a new instance of GoogleCloudAiplatformV1beta1SpeechConfig.
50884 50885 50886 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 50884 def initialize(**args) update!(**args) end |
Instance Attribute Details
#language_code ⇒ String
Optional. The language code (ISO 639-1) for the speech synthesis.
Corresponds to the JSON property languageCode
50872 50873 50874 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 50872 def language_code @language_code end |
#multi_speaker_voice_config ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MultiSpeakerVoiceConfig
Configuration for a multi-speaker text-to-speech request.
Corresponds to the JSON property multiSpeakerVoiceConfig
50877 50878 50879 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 50877 def multi_speaker_voice_config @multi_speaker_voice_config end |
#voice_config ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1VoiceConfig
Configuration for a voice.
Corresponds to the JSON property voiceConfig
50882 50883 50884 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 50882 def voice_config @voice_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
50889 50890 50891 50892 50893 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 50889 def update!(**args) @language_code = args[:language_code] if args.key?(:language_code) @multi_speaker_voice_config = args[:multi_speaker_voice_config] if args.key?(:multi_speaker_voice_config) @voice_config = args[:voice_config] if args.key?(:voice_config) end |