Class: Google::Apis::TexttospeechV1::CustomVoiceParams
- Inherits:
-
Object
- Object
- Google::Apis::TexttospeechV1::CustomVoiceParams
- 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
-
#model ⇒ String
Required.
-
#reported_usage ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomVoiceParams
constructor
A new instance of CustomVoiceParams.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#model ⇒ String
Required. The name of the AutoML model that synthesizes the custom voice.
Corresponds to the JSON property model
190 191 192 |
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 190 def model @model end |
#reported_usage ⇒ String
Optional. Deprecated. The usage of the synthesized audio to be reported.
Corresponds to the JSON property reportedUsage
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 |