Class: Google::Apis::TexttospeechV1::SynthesizeLongAudioRequest
- Inherits:
-
Object
- Object
- Google::Apis::TexttospeechV1::SynthesizeLongAudioRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/texttospeech_v1/classes.rb,
lib/google/apis/texttospeech_v1/representations.rb,
lib/google/apis/texttospeech_v1/representations.rb
Overview
The top-level message sent by the client for the SynthesizeLongAudio 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.
-
#output_gcs_uri ⇒ String
Specifies a Cloud Storage URI for the synthesis results.
-
#voice ⇒ Google::Apis::TexttospeechV1::VoiceSelectionParams
Description of which voice to use for a synthesis request.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SynthesizeLongAudioRequest
constructor
A new instance of SynthesizeLongAudioRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SynthesizeLongAudioRequest
Returns a new instance of SynthesizeLongAudioRequest.
402 403 404 |
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 402 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
382 383 384 |
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 382 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 bytes.
Corresponds to the JSON property input
389 390 391 |
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 389 def input @input end |
#output_gcs_uri ⇒ String
Specifies a Cloud Storage URI for the synthesis results. Must be specified in
the format: gs://bucket_name/object_name, and the bucket must already exist.
Corresponds to the JSON property outputGcsUri
395 396 397 |
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 395 def output_gcs_uri @output_gcs_uri end |
#voice ⇒ Google::Apis::TexttospeechV1::VoiceSelectionParams
Description of which voice to use for a synthesis request.
Corresponds to the JSON property voice
400 401 402 |
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 400 def voice @voice end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
407 408 409 410 411 412 |
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 407 def update!(**args) @audio_config = args[:audio_config] if args.key?(:audio_config) @input = args[:input] if args.key?(:input) @output_gcs_uri = args[:output_gcs_uri] if args.key?(:output_gcs_uri) @voice = args[:voice] if args.key?(:voice) end |