public final SynthesizeSpeechResponse synthesizeSpeech(
      SynthesisInput input, VoiceSelectionParams voice, AudioConfig audioConfig) {
    SynthesizeSpeechRequest request =
        SynthesizeSpeechRequest.newBuilder()
            .setInput(input)
            .setVoice(voice)
            .setAudioConfig(audioConfig)
            .build();
    return synthesizeSpeech(request);
  }
Synthesizes speech synchronously: receive results after all text input has been processed.

<p>Sample code:

<pre>{@code
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {
  SynthesisInput input = SynthesisInput.newBuilder().build();
  VoiceSelectionParams voice = VoiceSelectionParams.newBuilder().build();
  AudioConfig audioConfig = AudioConfig.newBuilder().build();
  SynthesizeSpeechResponse response =
      textToSpeechClient.synthesizeSpeech(input, voice, audioConfig);
}
}</pre>

@param input Required. The Synthesizer requires either plain text or SSML as input.
@param voice Required. The desired voice of the synthesized audio.
@param audioConfig Required. The configuration of the synthesized audio.
@throws com.google.api.gax.rpc.ApiException if the remote call fails
java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java