class Google::Apis::TexttospeechV1beta1::SynthesizeSpeechResponse

The message returned to the client by the `SynthesizeSpeech` method.

Attributes

audio_config[RW]

Description of audio data to be synthesized. Corresponds to the JSON property `audioConfig` @return [Google::Apis::TexttospeechV1beta1::AudioConfig]

audio_content[RW]

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. @return [String]

timepoints[RW]

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` @return [Array<Google::Apis::TexttospeechV1beta1::Timepoint>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/texttospeech_v1beta1/classes.rb, line 209
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/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