Class: Google::Apis::TexttospeechV1beta1::CustomVoiceParams

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/texttospeech_v1beta1/classes.rb,
lib/google/apis/texttospeech_v1beta1/representations.rb,
lib/google/apis/texttospeech_v1beta1/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.



110
111
112
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 110

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)


103
104
105
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 103

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)


108
109
110
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 108

def reported_usage
  @reported_usage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



115
116
117
118
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 115

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