Class TextToSpeechConnection (2.21.0)

This interface defines virtual methods for each of the user-facing overload sets in TextToSpeechClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type TextToSpeechClient.

To create a concrete instance, see MakeTextToSpeechConnection().

For mocking, see texttospeech_v1_mocks::MockTextToSpeechConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual ListVoices(google::cloud::texttospeech::v1::ListVoicesRequest const &)

Parameter
NameDescription
request google::cloud::texttospeech::v1::ListVoicesRequest const &
Returns
TypeDescription
StatusOr< google::cloud::texttospeech::v1::ListVoicesResponse >

virtual SynthesizeSpeech(google::cloud::texttospeech::v1::SynthesizeSpeechRequest const &)

Parameter
NameDescription
request google::cloud::texttospeech::v1::SynthesizeSpeechRequest const &
Returns
TypeDescription
StatusOr< google::cloud::texttospeech::v1::SynthesizeSpeechResponse >