# Cloud Text-to-Speech V1 API - Class Google::Cloud::TextToSpeech::V1::TextToSpeech::Rest::ServiceStub (v1.19.0)

1.19.0 (latest) 1.18.0 1.17.0 1.16.0 1.15.1 1.14.0 1.13.0 1.12.0 1.11.0 1.10.0 1.9.0 1.8.1 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.13.0 0.12.2 0.11.1 0.10.1 0.9.1 0.8.0 0.7.0 0.6.0 0.5.2 Reference documentation and code samples for the Cloud Text-to-Speech V1 API class Google::Cloud::TextToSpeech::V1::TextToSpeech::Rest::ServiceStub.

REST service stub for the TextToSpeech service.
Service stub contains baseline method implementations
including transcoding, making the REST call, and deserialing the response.

## Inherits

- Object

## Methods

### #endpoint

    def endpoint() -> String

The effective endpoint
**Returns**

- (String)

### #list_voices

    def list_voices(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::TextToSpeech::V1::ListVoicesResponse

Baseline implementation for the list_voices REST call
**Parameters**

- **request_pb** ([::Google::Cloud::TextToSpeech::V1::ListVoicesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-text_to_speech-v1/latest/Google-Cloud-TextToSpeech-V1-ListVoicesRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::TextToSpeech::V1::ListVoicesResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-text_to_speech-v1/latest/Google-Cloud-TextToSpeech-V1-ListVoicesResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::TextToSpeech::V1::ListVoicesResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-text_to_speech-v1/latest/Google-Cloud-TextToSpeech-V1-ListVoicesResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #logger

    def logger(stub: false) -> Logger

The logger used for request/response debug logging.
**Returns**

- (Logger)

### #synthesize_speech

    def synthesize_speech(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::TextToSpeech::V1::SynthesizeSpeechResponse

Baseline implementation for the synthesize_speech REST call
**Parameters**

- **request_pb** ([::Google::Cloud::TextToSpeech::V1::SynthesizeSpeechRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-text_to_speech-v1/latest/Google-Cloud-TextToSpeech-V1-SynthesizeSpeechRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::TextToSpeech::V1::SynthesizeSpeechResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-text_to_speech-v1/latest/Google-Cloud-TextToSpeech-V1-SynthesizeSpeechResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::TextToSpeech::V1::SynthesizeSpeechResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-text_to_speech-v1/latest/Google-Cloud-TextToSpeech-V1-SynthesizeSpeechResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)