Class: Google::Cloud::TextToSpeech::V1beta1::SynthesizeSpeechResponse

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

The message returned to the client by the SynthesizeSpeech method.

Instance Attribute Summary collapse

Instance Attribute Details

#audio_config::Google::Cloud::TextToSpeech::V1beta1::AudioConfig

Returns The audio metadata of audio_content.

Returns:



240
241
242
243
# File 'proto_docs/google/cloud/texttospeech/v1beta1/cloud_tts.rb', line 240

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

#audio_content::String

Returns The audio data bytes encoded as specified in the request, including the header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS). For LINEAR16 audio, we include the WAV header. Note: as with all bytes fields, protobuffers use a pure binary representation, whereas JSON representations use base64.

Returns:

  • (::String)

    The audio data bytes encoded as specified in the request, including the header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS). For LINEAR16 audio, we include the WAV header. Note: as with all bytes fields, protobuffers use a pure binary representation, whereas JSON representations use base64.



240
241
242
243
# File 'proto_docs/google/cloud/texttospeech/v1beta1/cloud_tts.rb', line 240

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

#timepoints::Array<::Google::Cloud::TextToSpeech::V1beta1::Timepoint>

Returns A link between a position in the original request input and a corresponding time in the output audio. It's only supported via <mark> of SSML input.

Returns:



240
241
242
243
# File 'proto_docs/google/cloud/texttospeech/v1beta1/cloud_tts.rb', line 240

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