Class: Google::Apis::TexttospeechV1::CustomVoiceParams

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

Description of the custom voice to be synthesized.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomVoiceParams

Returns a new instance of CustomVoiceParams.



197
198
199
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 197

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

Instance Attribute Details

#modelString

Required. The name of the AutoML model that synthesizes the custom voice. Corresponds to the JSON property model

Returns:

  • (String)


190
191
192
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 190

def model
  @model
end

#reported_usageString

Optional. Deprecated. The usage of the synthesized audio to be reported. Corresponds to the JSON property reportedUsage

Returns:

  • (String)


195
196
197
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 195

def reported_usage
  @reported_usage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



202
203
204
205
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 202

def update!(**args)
  @model = args[:model] if args.key?(:model)
  @reported_usage = args[:reported_usage] if args.key?(:reported_usage)
end