Class: Google::Cloud::TextToSpeech::V1beta1::SynthesisInput

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/texttospeech/v1beta1/cloud_tts.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][google.rpc.Code.INVALID_ARGUMENT]. The input size is limited to 5000 bytes.

Instance Attribute Summary collapse

Instance Attribute Details

#ssml::String

Returns 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][google.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 [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For more information, see SSML.



109
110
111
112
# File 'proto_docs/google/cloud/texttospeech/v1beta1/cloud_tts.rb', line 109

class SynthesisInput
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#text::String

Returns The raw text to be synthesized.

Returns:

  • (::String)

    The raw text to be synthesized.



109
110
111
112
# File 'proto_docs/google/cloud/texttospeech/v1beta1/cloud_tts.rb', line 109

class SynthesisInput
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end