Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReplicatedVoiceConfig
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReplicatedVoiceConfig
- 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
The configuration for the replicated voice to use.
Instance Attribute Summary collapse
-
#mime_type ⇒ String
Optional.
-
#voice_sample_audio ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ReplicatedVoiceConfig
constructor
A new instance of GoogleCloudAiplatformV1beta1ReplicatedVoiceConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ReplicatedVoiceConfig
Returns a new instance of GoogleCloudAiplatformV1beta1ReplicatedVoiceConfig.
39990 39991 39992 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 39990 def initialize(**args) update!(**args) end |
Instance Attribute Details
#mime_type ⇒ String
Optional. The mimetype of the voice sample. The only currently supported value
is audio/wav. This represents 16-bit signed little-endian wav data, with a
24kHz sampling rate. mime_type will default to audio/wav if not set.
Corresponds to the JSON property mimeType
39982 39983 39984 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 39982 def mime_type @mime_type end |
#voice_sample_audio ⇒ String
Optional. The sample of the custom voice.
Corresponds to the JSON property voiceSampleAudio
NOTE: Values are automatically base64 encoded/decoded in the client library.
39988 39989 39990 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 39988 def voice_sample_audio @voice_sample_audio end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
39995 39996 39997 39998 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 39995 def update!(**args) @mime_type = args[:mime_type] if args.key?(:mime_type) @voice_sample_audio = args[:voice_sample_audio] if args.key?(:voice_sample_audio) end |