Class: Google::Cloud::Texttospeech::V1::SynthesisInput

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/text_to_speech/v1/doc/google/cloud/texttospeech/v1/cloud_tts.rb

Overview

Contains text input to be synthesized. Either +text+ or +ssml+ must be supplied. Supplying both or neither returns Rpc::Code::INVALID_ARGUMENT. The input size is limited to 5000 characters.

Instance Attribute Summary collapse

Instance Attribute Details

#ssmlString

Returns The SSML document to be synthesized. The SSML document must be valid and well-formed. Otherwise the RPC will fail and return Rpc::Code::INVALID_ARGUMENT. For more information, see SSML.

Returns:

  • (String)

    The SSML document to be synthesized. The SSML document must be valid and well-formed. Otherwise the RPC will fail and return Rpc::Code::INVALID_ARGUMENT. For more information, see SSML.



80
# File 'lib/google/cloud/text_to_speech/v1/doc/google/cloud/texttospeech/v1/cloud_tts.rb', line 80

class SynthesisInput; end

#textString

Returns The raw text to be synthesized.

Returns:

  • (String)

    The raw text to be synthesized.



80
# File 'lib/google/cloud/text_to_speech/v1/doc/google/cloud/texttospeech/v1/cloud_tts.rb', line 80

class SynthesisInput; end