Class TextToSpeechGrpc.TextToSpeechImplBase (2.13.0)

public abstract static class TextToSpeechGrpc.TextToSpeechImplBase implements BindableService

Service that implements Google Cloud Text-to-Speech API.

Inheritance

java.lang.Object > TextToSpeechGrpc.TextToSpeechImplBase

Implements

io.grpc.BindableService

Constructors

TextToSpeechImplBase()

public TextToSpeechImplBase()

Methods

bindService()

public final ServerServiceDefinition bindService()
Returns
TypeDescription
io.grpc.ServerServiceDefinition

listVoices(ListVoicesRequest request, StreamObserver<ListVoicesResponse> responseObserver)

public void listVoices(ListVoicesRequest request, StreamObserver<ListVoicesResponse> responseObserver)

Returns a list of Voice supported for synthesis.

Parameters
NameDescription
requestListVoicesRequest
responseObserverio.grpc.stub.StreamObserver<ListVoicesResponse>

synthesizeSpeech(SynthesizeSpeechRequest request, StreamObserver<SynthesizeSpeechResponse> responseObserver)

public void synthesizeSpeech(SynthesizeSpeechRequest request, StreamObserver<SynthesizeSpeechResponse> responseObserver)

Synthesizes speech synchronously: receive results after all text input has been processed.

Parameters
NameDescription
requestSynthesizeSpeechRequest
responseObserverio.grpc.stub.StreamObserver<SynthesizeSpeechResponse>