Reference documentation and code samples for the Cloud Text-to-Speech V1beta1 API class Google::Cloud::TextToSpeech::V1beta1::SynthesizeSpeechRequest.
The top-level message sent by the client for the SynthesizeSpeech
method.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#audio_config
def audio_config() -> ::Google::Cloud::TextToSpeech::V1beta1::AudioConfig
Returns
- (::Google::Cloud::TextToSpeech::V1beta1::AudioConfig) — Required. The configuration of the synthesized audio.
#audio_config=
def audio_config=(value) -> ::Google::Cloud::TextToSpeech::V1beta1::AudioConfig
Parameter
- value (::Google::Cloud::TextToSpeech::V1beta1::AudioConfig) — Required. The configuration of the synthesized audio.
Returns
- (::Google::Cloud::TextToSpeech::V1beta1::AudioConfig) — Required. The configuration of the synthesized audio.
#enable_time_pointing
def enable_time_pointing() -> ::Array<::Google::Cloud::TextToSpeech::V1beta1::SynthesizeSpeechRequest::TimepointType>
Returns
- (::Array<::Google::Cloud::TextToSpeech::V1beta1::SynthesizeSpeechRequest::TimepointType>) — Whether and what timepoints are returned in the response.
#enable_time_pointing=
def enable_time_pointing=(value) -> ::Array<::Google::Cloud::TextToSpeech::V1beta1::SynthesizeSpeechRequest::TimepointType>
Parameter
- value (::Array<::Google::Cloud::TextToSpeech::V1beta1::SynthesizeSpeechRequest::TimepointType>) — Whether and what timepoints are returned in the response.
Returns
- (::Array<::Google::Cloud::TextToSpeech::V1beta1::SynthesizeSpeechRequest::TimepointType>) — Whether and what timepoints are returned in the response.
#input
def input() -> ::Google::Cloud::TextToSpeech::V1beta1::SynthesisInput
Returns
- (::Google::Cloud::TextToSpeech::V1beta1::SynthesisInput) — Required. The Synthesizer requires either plain text or SSML as input.
#input=
def input=(value) -> ::Google::Cloud::TextToSpeech::V1beta1::SynthesisInput
Parameter
- value (::Google::Cloud::TextToSpeech::V1beta1::SynthesisInput) — Required. The Synthesizer requires either plain text or SSML as input.
Returns
- (::Google::Cloud::TextToSpeech::V1beta1::SynthesisInput) — Required. The Synthesizer requires either plain text or SSML as input.
#voice
def voice() -> ::Google::Cloud::TextToSpeech::V1beta1::VoiceSelectionParams
Returns
- (::Google::Cloud::TextToSpeech::V1beta1::VoiceSelectionParams) — Required. The desired voice of the synthesized audio.
#voice=
def voice=(value) -> ::Google::Cloud::TextToSpeech::V1beta1::VoiceSelectionParams
Parameter
- value (::Google::Cloud::TextToSpeech::V1beta1::VoiceSelectionParams) — Required. The desired voice of the synthesized audio.
Returns
- (::Google::Cloud::TextToSpeech::V1beta1::VoiceSelectionParams) — Required. The desired voice of the synthesized audio.