Interface TextToSpeechGrpc.AsyncService (2.42.0)

public static interface TextToSpeechGrpc.AsyncService

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

Methods

listVoices(ListVoicesRequest request, StreamObserver<ListVoicesResponse> responseObserver)

public default 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 default 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>