public static interface TextToSpeechGrpc.AsyncServiceService 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> |
streamingSynthesize(StreamObserver<StreamingSynthesizeResponse> responseObserver)
public default StreamObserver<StreamingSynthesizeRequest> streamingSynthesize(StreamObserver<StreamingSynthesizeResponse> responseObserver)Performs bidirectional streaming speech synthesis: receives audio while sending text.
| Parameter | |
|---|---|
| Name | Description |
responseObserver |
io.grpc.stub.StreamObserver<StreamingSynthesizeResponse> |
| Returns | |
|---|---|
| Type | Description |
io.grpc.stub.StreamObserver<StreamingSynthesizeRequest> |
|
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> |