Class: Google::Apis::TexttospeechV1::SynthesizeSpeechRequest
- Inherits:
-
Object
- Object
- Google::Apis::TexttospeechV1::SynthesizeSpeechRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/texttospeech_v1/classes.rb,
generated/google/apis/texttospeech_v1/representations.rb,
generated/google/apis/texttospeech_v1/representations.rb
Overview
The top-level message sent by the client for the SynthesizeSpeech
method.
Instance Attribute Summary collapse
-
#audio_config ⇒ Google::Apis::TexttospeechV1::AudioConfig
Description of audio data to be synthesized.
-
#input ⇒ Google::Apis::TexttospeechV1::SynthesisInput
Contains text input to be synthesized.
-
#voice ⇒ Google::Apis::TexttospeechV1::VoiceSelectionParams
Description of which voice to use for a synthesis request.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SynthesizeSpeechRequest
constructor
A new instance of SynthesizeSpeechRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SynthesizeSpeechRequest
Returns a new instance of SynthesizeSpeechRequest.
166 167 168 |
# File 'generated/google/apis/texttospeech_v1/classes.rb', line 166 def initialize(**args) update!(**args) end |
Instance Attribute Details
#audio_config ⇒ Google::Apis::TexttospeechV1::AudioConfig
Description of audio data to be synthesized.
Corresponds to the JSON property audioConfig
152 153 154 |
# File 'generated/google/apis/texttospeech_v1/classes.rb', line 152 def audio_config @audio_config end |
#input ⇒ Google::Apis::TexttospeechV1::SynthesisInput
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
159 160 161 |
# File 'generated/google/apis/texttospeech_v1/classes.rb', line 159 def input @input end |
#voice ⇒ Google::Apis::TexttospeechV1::VoiceSelectionParams
Description of which voice to use for a synthesis request.
Corresponds to the JSON property voice
164 165 166 |
# File 'generated/google/apis/texttospeech_v1/classes.rb', line 164 def voice @voice end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
171 172 173 174 175 |
# File 'generated/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 |