public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
    return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
        .addMethod(
            getListVoicesMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.texttospeech.v1.ListVoicesRequest,
                    com.google.cloud.texttospeech.v1.ListVoicesResponse>(
                    service, METHODID_LIST_VOICES)))
        .addMethod(
            getSynthesizeSpeechMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest,
                    com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse>(
                    service, METHODID_SYNTHESIZE_SPEECH)))
        .addMethod(
            getStreamingSynthesizeMethod(),
            io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
                new MethodHandlers<
                    com.google.cloud.texttospeech.v1.StreamingSynthesizeRequest,
                    com.google.cloud.texttospeech.v1.StreamingSynthesizeResponse>(
                    service, METHODID_STREAMING_SYNTHESIZE)))
        .build();
  }
<pre>
Synthesizes speech synchronously: receive results after all text input
has been processed.
</pre>
java-texttospeech/grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechGrpc.java