Class: Google::Apis::TexttospeechV1::SynthesizeSpeechResponse
- Inherits:
-
Object
- Object
- Google::Apis::TexttospeechV1::SynthesizeSpeechResponse
- 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
-
#audio_content ⇒ String
The audio data bytes encoded as specified in the request, including the header (For LINEAR16 audio, we include the WAV header).
Instance Method Summary collapse
-
#initialize(**args) ⇒ SynthesizeSpeechResponse
constructor
A new instance of SynthesizeSpeechResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SynthesizeSpeechResponse
Returns a new instance of SynthesizeSpeechResponse
182 183 184 |
# File 'generated/google/apis/texttospeech_v1/classes.rb', line 182 def initialize(**args) update!(**args) end |
Instance Attribute Details
#audio_content ⇒ String
The audio data bytes encoded as specified in the request, including the
header (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.
180 181 182 |
# File 'generated/google/apis/texttospeech_v1/classes.rb', line 180 def audio_content @audio_content end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
187 188 189 |
# File 'generated/google/apis/texttospeech_v1/classes.rb', line 187 def update!(**args) @audio_content = args[:audio_content] if args.key?(:audio_content) end |