class Google::Apis::TexttospeechV1beta1::SynthesizeSpeechRequest

The top-level message sent by the client for 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]

enable_time_pointing[RW]

Whether and what timepoints are returned in the response. Corresponds to the JSON property `enableTimePointing` @return [Array<String>]

input[RW]

Contains text input to be synthesized. Either `text` or `ssml` must be supplied. Supplying both or neither returns google.rpc.Code.INVALID_ARGUMENT. The input size is limited to 5000 characters. Corresponds to the JSON property `input` @return [Google::Apis::TexttospeechV1beta1::SynthesisInput]

voice[RW]

Description of which voice to use for a synthesis request. Corresponds to the JSON property `voice` @return [Google::Apis::TexttospeechV1beta1::VoiceSelectionParams]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/texttospeech_v1beta1/classes.rb, line 171
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 176
def update!(**args)
  @audio_config = args[:audio_config] if args.key?(:audio_config)
  @enable_time_pointing = args[:enable_time_pointing] if args.key?(:enable_time_pointing)
  @input = args[:input] if args.key?(:input)
  @voice = args[:voice] if args.key?(:voice)
end