Class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ReplicatedVoiceConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/firebaseml_v2beta/classes.rb,
lib/google/apis/firebaseml_v2beta/representations.rb,
lib/google/apis/firebaseml_v2beta/representations.rb

Overview

The configuration for the replicated voice to use.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ReplicatedVoiceConfig

Returns a new instance of GoogleCloudAiplatformV1beta1ReplicatedVoiceConfig.



2867
2868
2869
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 2867

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)


2859
2860
2861
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 2859

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)


2865
2866
2867
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 2865

def voice_sample_audio
  @voice_sample_audio
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2872
2873
2874
2875
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 2872

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