Class: Google::Apis::TexttospeechV1::SynthesizeSpeechResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/texttospeech_v1/classes.rb,
generated/google/apis/texttospeech_v1/representations.rb,
generated/google/apis/texttospeech_v1/representations.rb

Overview

The message returned to the client by the SynthesizeSpeech method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SynthesizeSpeechResponse

Returns a new instance of SynthesizeSpeechResponse.



195
196
197
# File 'generated/google/apis/texttospeech_v1/classes.rb', line 195

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#audio_contentString

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. Corresponds to the JSON property audioContent NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


193
194
195
# File 'generated/google/apis/texttospeech_v1/classes.rb', line 193

def audio_content
  @audio_content
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



200
201
202
# File 'generated/google/apis/texttospeech_v1/classes.rb', line 200

def update!(**args)
  @audio_content = args[:audio_content] if args.key?(:audio_content)
end