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.



31541
31542
31543
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31541

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)


31533
31534
31535
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31533

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)


31539
31540
31541
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31539

def voice_sample_audio
  @voice_sample_audio
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



31546
31547
31548
31549
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31546

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