Class: Google::Apis::TexttospeechV1beta1::SynthesizeSpeechResponse
- Inherits:
-
Object
- Object
- Google::Apis::TexttospeechV1beta1::SynthesizeSpeechResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/texttospeech_v1beta1/classes.rb,
generated/google/apis/texttospeech_v1beta1/representations.rb,
generated/google/apis/texttospeech_v1beta1/representations.rb
Overview
The message returned to the client by the SynthesizeSpeech
method.
Instance Attribute Summary collapse
-
#audio_config ⇒ Google::Apis::TexttospeechV1beta1::AudioConfig
Description of audio data to be synthesized.
-
#audio_content ⇒ 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).
-
#timepoints ⇒ Array<Google::Apis::TexttospeechV1beta1::Timepoint>
A link between a position in the original request input and a corresponding time in the output audio.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SynthesizeSpeechResponse
constructor
A new instance of SynthesizeSpeechResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SynthesizeSpeechResponse
Returns a new instance of SynthesizeSpeechResponse.
209 210 211 |
# File 'generated/google/apis/texttospeech_v1beta1/classes.rb', line 209 def initialize(**args) update!(**args) end |
Instance Attribute Details
#audio_config ⇒ Google::Apis::TexttospeechV1beta1::AudioConfig
Description of audio data to be synthesized.
Corresponds to the JSON property audioConfig
191 192 193 |
# File 'generated/google/apis/texttospeech_v1beta1/classes.rb', line 191 def audio_config @audio_config end |
#audio_content ⇒ 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.
Corresponds to the JSON property audioContent
NOTE: Values are automatically base64 encoded/decoded in the client library.
201 202 203 |
# File 'generated/google/apis/texttospeech_v1beta1/classes.rb', line 201 def audio_content @audio_content end |
#timepoints ⇒ Array<Google::Apis::TexttospeechV1beta1::Timepoint>
A link between a position in the original request input and a corresponding
time in the output audio. It's only supported via of SSML input.
Corresponds to the JSON property timepoints
207 208 209 |
# File 'generated/google/apis/texttospeech_v1beta1/classes.rb', line 207 def timepoints @timepoints end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
214 215 216 217 218 |
# File 'generated/google/apis/texttospeech_v1beta1/classes.rb', line 214 def update!(**args) @audio_config = args[:audio_config] if args.key?(:audio_config) @audio_content = args[:audio_content] if args.key?(:audio_content) @timepoints = args[:timepoints] if args.key?(:timepoints) end |