class Google::Apis::TexttospeechV1::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::TexttospeechV1::AudioConfig]

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::TexttospeechV1::SynthesisInput]

voice[RW]

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

Public Class Methods

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