Class: Google::Apis::TexttospeechV1beta1::SynthesizeSpeechRequest
- Inherits:
-
Object
- Object
- Google::Apis::TexttospeechV1beta1::SynthesizeSpeechRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/texttospeech_v1beta1/classes.rb,
lib/google/apis/texttospeech_v1beta1/representations.rb,
lib/google/apis/texttospeech_v1beta1/representations.rb
Overview
The top-level message sent by the client for the SynthesizeSpeech
method.
Instance Attribute Summary collapse
-
#audio_config ⇒ Google::Apis::TexttospeechV1beta1::AudioConfig
Description of audio data to be synthesized.
-
#enable_time_pointing ⇒ Array<String>
Whether and what timepoints are returned in the response.
-
#input ⇒ Google::Apis::TexttospeechV1beta1::SynthesisInput
Contains text input to be synthesized.
-
#voice ⇒ Google::Apis::TexttospeechV1beta1::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.
425 426 427 |
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 425 def initialize(**args) update!(**args) end |
Instance Attribute Details
#audio_config ⇒ Google::Apis::TexttospeechV1beta1::AudioConfig
Description of audio data to be synthesized.
Corresponds to the JSON property audioConfig
406 407 408 |
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 406 def audio_config @audio_config end |
#enable_time_pointing ⇒ Array<String>
Whether and what timepoints are returned in the response.
Corresponds to the JSON property enableTimePointing
411 412 413 |
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 411 def enable_time_pointing @enable_time_pointing end |
#input ⇒ Google::Apis::TexttospeechV1beta1::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 bytes.
Corresponds to the JSON property input
418 419 420 |
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 418 def input @input end |
#voice ⇒ Google::Apis::TexttospeechV1beta1::VoiceSelectionParams
Description of which voice to use for a synthesis request.
Corresponds to the JSON property voice
423 424 425 |
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 423 def voice @voice end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
430 431 432 433 434 435 |
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 430 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 |