class Google::Apis::TexttospeechV1beta1::SynthesizeSpeechRequest
The top-level message sent by the client for the `SynthesizeSpeech` method.
Attributes
Description of audio data to be synthesized. Corresponds to the JSON property `audioConfig` @return [Google::Apis::TexttospeechV1beta1::AudioConfig]
Whether and what timepoints are returned in the response. Corresponds to the JSON property `enableTimePointing` @return [Array<String>]
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]
Description of which voice to use for a synthesis request. Corresponds to the JSON property `voice` @return [Google::Apis::TexttospeechV1beta1::VoiceSelectionParams]
Public Class Methods
# File lib/google/apis/texttospeech_v1beta1/classes.rb, line 171 def initialize(**args) update!(**args) end
Public Instance Methods
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