Class: Google::Apis::TexttospeechV1beta1::SynthesisInput
- Inherits:
-
Object
- Object
- Google::Apis::TexttospeechV1beta1::SynthesisInput
- 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
Contains text input to be synthesized. Either text
or ssml
must be
supplied. Supplying both or neither returns google.rpc.Code.INVALID_ARGUMENT.
The input size is limited to 5000 bytes.
Instance Attribute Summary collapse
-
#ssml ⇒ String
The SSML document to be synthesized.
-
#text ⇒ String
The raw text to be synthesized.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SynthesisInput
constructor
A new instance of SynthesisInput.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SynthesisInput
Returns a new instance of SynthesisInput.
316 317 318 |
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 316 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ssml ⇒ String
The SSML document to be synthesized. The SSML document must be valid and well-
formed. Otherwise the RPC will fail and return google.rpc.Code.
INVALID_ARGUMENT. For more information, see SSML.
Corresponds to the JSON property ssml
309 310 311 |
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 309 def ssml @ssml end |
#text ⇒ String
The raw text to be synthesized.
Corresponds to the JSON property text
314 315 316 |
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 314 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
321 322 323 324 |
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 321 def update!(**args) @ssml = args[:ssml] if args.key?(:ssml) @text = args[:text] if args.key?(:text) end |