Interface TextToSpeechGrpc.AsyncService (2.48.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
Name Description
request ListVoicesRequest
responseObserver io.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
Name Description
request SynthesizeSpeechRequest
responseObserver io.grpc.stub.StreamObserver<SynthesizeSpeechResponse>