# Cloud Text-to-Speech V1beta1 API - Class Google::Cloud::TextToSpeech::V1beta1::SynthesizeSpeechRequest (v0.31.0)

0.31.0 (latest) 0.30.0 0.29.0 0.28.0 0.27.1 0.26.0 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.1 0.19.0 0.18.0 0.17.0 0.16.0 0.15.2 0.14.0 0.13.2 0.12.1 0.11.1 0.10.1 0.9.1 0.8.0 0.7.1 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

### #advanced_voice_options

    def advanced_voice_options() -> ::Google::Cloud::TextToSpeech::V1beta1::AdvancedVoiceOptions

**Returns**

- ([::Google::Cloud::TextToSpeech::V1beta1::AdvancedVoiceOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-text_to_speech-v1beta1/latest/Google-Cloud-TextToSpeech-V1beta1-AdvancedVoiceOptions)) --- Optional. Advanced voice options.

### #advanced_voice_options=

    def advanced_voice_options=(value) -> ::Google::Cloud::TextToSpeech::V1beta1::AdvancedVoiceOptions

**Parameter**

- **value** ([::Google::Cloud::TextToSpeech::V1beta1::AdvancedVoiceOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-text_to_speech-v1beta1/latest/Google-Cloud-TextToSpeech-V1beta1-AdvancedVoiceOptions)) --- Optional. Advanced voice options.
**Returns**

- ([::Google::Cloud::TextToSpeech::V1beta1::AdvancedVoiceOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-text_to_speech-v1beta1/latest/Google-Cloud-TextToSpeech-V1beta1-AdvancedVoiceOptions)) --- Optional. Advanced voice options.

### #audio_config

    def audio_config() -> ::Google::Cloud::TextToSpeech::V1beta1::AudioConfig

**Returns**

- ([::Google::Cloud::TextToSpeech::V1beta1::AudioConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-text_to_speech-v1beta1/latest/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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-text_to_speech-v1beta1/latest/Google-Cloud-TextToSpeech-V1beta1-AudioConfig)) --- Required. The configuration of the synthesized audio.
**Returns**

- ([::Google::Cloud::TextToSpeech::V1beta1::AudioConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-text_to_speech-v1beta1/latest/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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-text_to_speech-v1beta1/latest/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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-text_to_speech-v1beta1/latest/Google-Cloud-TextToSpeech-V1beta1-SynthesizeSpeechRequest-TimepointType)\>) --- Whether and what timepoints are returned in the response.
**Returns**

- (::Array\<[::Google::Cloud::TextToSpeech::V1beta1::SynthesizeSpeechRequest::TimepointType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-text_to_speech-v1beta1/latest/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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-text_to_speech-v1beta1/latest/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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-text_to_speech-v1beta1/latest/Google-Cloud-TextToSpeech-V1beta1-SynthesisInput)) --- Required. The Synthesizer requires either plain text or SSML as input.
**Returns**

- ([::Google::Cloud::TextToSpeech::V1beta1::SynthesisInput](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-text_to_speech-v1beta1/latest/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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-text_to_speech-v1beta1/latest/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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-text_to_speech-v1beta1/latest/Google-Cloud-TextToSpeech-V1beta1-VoiceSelectionParams)) --- Required. The desired voice of the synthesized audio.
**Returns**

- ([::Google::Cloud::TextToSpeech::V1beta1::VoiceSelectionParams](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-text_to_speech-v1beta1/latest/Google-Cloud-TextToSpeech-V1beta1-VoiceSelectionParams)) --- Required. The desired voice of the synthesized audio.