Class: Google::Apis::TexttospeechV1::GenerateVoiceCloningKeyRequest
- Inherits:
-
Object
- Object
- Google::Apis::TexttospeechV1::GenerateVoiceCloningKeyRequest
- 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
-
#consent_script ⇒ String
Required.
-
#language_code ⇒ String
Required.
-
#reference_audio ⇒ Google::Apis::TexttospeechV1::InputAudio
Holds audio content and config.
-
#voice_talent_consent ⇒ Google::Apis::TexttospeechV1::InputAudio
Holds audio content and config.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GenerateVoiceCloningKeyRequest
constructor
A new instance of GenerateVoiceCloningKeyRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#consent_script ⇒ String
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
233 234 235 |
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 233 def @consent_script end |
#language_code ⇒ String
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
241 242 243 |
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 241 def language_code @language_code end |
#reference_audio ⇒ Google::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 |
#voice_talent_consent ⇒ Google::Apis::TexttospeechV1::InputAudio
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 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 |