class Google::Apis::TexttospeechV1::SynthesisInput
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 characters.
Attributes
ssml[RW]
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](cloud.google.com/ text-to-speech/docs/ssml). Corresponds to the JSON property `ssml` @return [String]
text[RW]
The raw text to be synthesized. Corresponds to the JSON property `text` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/texttospeech_v1/classes.rb, line 134 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/texttospeech_v1/classes.rb, line 139 def update!(**args) @ssml = args[:ssml] if args.key?(:ssml) @text = args[:text] if args.key?(:text) end