Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReplicatedVoiceConfig

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 configuration for the replicated voice to use.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1ReplicatedVoiceConfig

Returns a new instance of GoogleCloudAiplatformV1ReplicatedVoiceConfig.



32967
32968
32969
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 32967

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

Instance Attribute Details

#mime_typeString

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

Returns:

  • (String)


32959
32960
32961
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 32959

def mime_type
  @mime_type
end

#voice_sample_audioString

Optional. The sample of the custom voice. Corresponds to the JSON property voiceSampleAudio NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


32965
32966
32967
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 32965

def voice_sample_audio
  @voice_sample_audio
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



32972
32973
32974
32975
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 32972

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