Class TextToSpeechConnection (2.29.0-rc)

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
Type Description
Options

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

Parameter
Name Description
request google::cloud::texttospeech::v1::ListVoicesRequest const &
Returns
Type Description
StatusOr< google::cloud::texttospeech::v1::ListVoicesResponse >

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

Parameter
Name Description
request google::cloud::texttospeech::v1::SynthesizeSpeechRequest const &
Returns
Type Description
StatusOr< google::cloud::texttospeech::v1::SynthesizeSpeechResponse >

virtual AsyncStreamingSynthesize()

Returns
Type Description
std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< google::cloud::texttospeech::v1::StreamingSynthesizeRequest, google::cloud::texttospeech::v1::StreamingSynthesizeResponse > >