Class: Google::Apis::TexttospeechV1::GenerateVoiceCloningKeyRequest

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

Overview

Request message for the GenerateVoiceCloningKey method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenerateVoiceCloningKeyRequest

Returns a new instance of GenerateVoiceCloningKeyRequest.



253
254
255
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 253

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

Instance Attribute Details

Required. The script used for the voice talent statement. The script will be provided to the caller through other channels. It must be returned unchanged in this field. Corresponds to the JSON property consentScript

Returns:

  • (String)


233
234
235
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 233

def consent_script
  @consent_script
end

#language_codeString

Required. The language of the supplied audio as a BCP-47 language tag. Example: "en-US". See Language Support for a list of the currently supported language codes. Corresponds to the JSON property languageCode

Returns:

  • (String)


241
242
243
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 241

def language_code
  @language_code
end

#reference_audioGoogle::Apis::TexttospeechV1::InputAudio

Holds audio content and config. Corresponds to the JSON property referenceAudio



246
247
248
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 246

def reference_audio
  @reference_audio
end

Holds audio content and config. Corresponds to the JSON property voiceTalentConsent



251
252
253
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 251

def voice_talent_consent
  @voice_talent_consent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



258
259
260
261
262
263
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 258

def update!(**args)
  @consent_script = args[:consent_script] if args.key?(:consent_script)
  @language_code = args[:language_code] if args.key?(:language_code)
  @reference_audio = args[:reference_audio] if args.key?(:reference_audio)
  @voice_talent_consent = args[:voice_talent_consent] if args.key?(:voice_talent_consent)
end