@Generated("by gapic-generator-java")
Package com.google.cloud.texttospeech.v1beta1
A client to Cloud Text-to-Speech API
The interfaces provided are listed below, along with usage samples.
======================= TextToSpeechClient =======================
Service Description: Service that implements Google Cloud Text-to-Speech API.
Sample for TextToSpeechClient:
// 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()) {
String languageCode = "languageCode-2092349083";
ListVoicesResponse response = textToSpeechClient.listVoices(languageCode);
}
======================= TextToSpeechLongAudioSynthesizeClient =======================
Service Description: Service that implements Google Cloud Text-to-Speech API.
Sample for TextToSpeechLongAudioSynthesizeClient:
// 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 (TextToSpeechLongAudioSynthesizeClient textToSpeechLongAudioSynthesizeClient =
TextToSpeechLongAudioSynthesizeClient.create()) {
SynthesizeLongAudioRequest request =
SynthesizeLongAudioRequest.newBuilder()
.setParent("parent-995424086")
.setInput(SynthesisInput.newBuilder().build())
.setAudioConfig(AudioConfig.newBuilder().build())
.setOutputGcsUri("outputGcsUri-489598154")
.setVoice(VoiceSelectionParams.newBuilder().build())
.build();
SynthesizeLongAudioResponse response =
textToSpeechLongAudioSynthesizeClient.synthesizeLongAudioAsync(request).get();
}
-
Interface Summary Interface Description AudioConfigOrBuilder CustomVoiceParamsOrBuilder ListVoicesRequestOrBuilder ListVoicesResponseOrBuilder SynthesisInputOrBuilder SynthesizeLongAudioMetadataOrBuilder SynthesizeLongAudioRequestOrBuilder SynthesizeLongAudioResponseOrBuilder SynthesizeSpeechRequestOrBuilder SynthesizeSpeechResponseOrBuilder TextToSpeechGrpc.AsyncService Service that implements Google Cloud Text-to-Speech API.TextToSpeechLongAudioSynthesizeGrpc.AsyncService Service that implements Google Cloud Text-to-Speech API.TimepointOrBuilder VoiceOrBuilder VoiceSelectionParamsOrBuilder -
Class Summary Class Description AudioConfig Description of audio data to be synthesized.AudioConfig.Builder Description of audio data to be synthesized.CustomVoiceParams Description of the custom voice to be synthesized.CustomVoiceParams.Builder Description of the custom voice to be synthesized.ListVoicesRequest The top-level message sent by the client for the `ListVoices` method.ListVoicesRequest.Builder The top-level message sent by the client for the `ListVoices` method.ListVoicesResponse The message returned to the client by the `ListVoices` method.ListVoicesResponse.Builder The message returned to the client by the `ListVoices` method.SynthesisInput Contains text input to be synthesized.SynthesisInput.Builder Contains text input to be synthesized.SynthesizeLongAudioMetadata Metadata for response returned by the `SynthesizeLongAudio` method.SynthesizeLongAudioMetadata.Builder Metadata for response returned by the `SynthesizeLongAudio` method.SynthesizeLongAudioRequest The top-level message sent by the client for the `SynthesizeLongAudio` method.SynthesizeLongAudioRequest.Builder The top-level message sent by the client for the `SynthesizeLongAudio` method.SynthesizeLongAudioResponse The message returned to the client by the `SynthesizeLongAudio` method.SynthesizeLongAudioResponse.Builder The message returned to the client by the `SynthesizeLongAudio` method.SynthesizeSpeechRequest The top-level message sent by the client for the `SynthesizeSpeech` method.SynthesizeSpeechRequest.Builder The top-level message sent by the client for the `SynthesizeSpeech` method.SynthesizeSpeechResponse The message returned to the client by the `SynthesizeSpeech` method.SynthesizeSpeechResponse.Builder The message returned to the client by the `SynthesizeSpeech` method.TextToSpeechClient Service Description: Service that implements Google Cloud Text-to-Speech API.TextToSpeechGrpc Service that implements Google Cloud Text-to-Speech API.TextToSpeechGrpc.TextToSpeechBlockingStub A stub to allow clients to do synchronous rpc calls to service TextToSpeech.TextToSpeechGrpc.TextToSpeechFutureStub A stub to allow clients to do ListenableFuture-style rpc calls to service TextToSpeech.TextToSpeechGrpc.TextToSpeechImplBase Base class for the server implementation of the service TextToSpeech.TextToSpeechGrpc.TextToSpeechStub A stub to allow clients to do asynchronous rpc calls to service TextToSpeech.TextToSpeechLongAudioSynthesisProto TextToSpeechLongAudioSynthesizeClient Service Description: Service that implements Google Cloud Text-to-Speech API.TextToSpeechLongAudioSynthesizeGrpc Service that implements Google Cloud Text-to-Speech API.TextToSpeechLongAudioSynthesizeGrpc.TextToSpeechLongAudioSynthesizeBlockingStub A stub to allow clients to do synchronous rpc calls to service TextToSpeechLongAudioSynthesize.TextToSpeechLongAudioSynthesizeGrpc.TextToSpeechLongAudioSynthesizeFutureStub A stub to allow clients to do ListenableFuture-style rpc calls to service TextToSpeechLongAudioSynthesize.TextToSpeechLongAudioSynthesizeGrpc.TextToSpeechLongAudioSynthesizeImplBase Base class for the server implementation of the service TextToSpeechLongAudioSynthesize.TextToSpeechLongAudioSynthesizeGrpc.TextToSpeechLongAudioSynthesizeStub A stub to allow clients to do asynchronous rpc calls to service TextToSpeechLongAudioSynthesize.TextToSpeechLongAudioSynthesizeSettings Settings class to configure an instance ofTextToSpeechLongAudioSynthesizeClient
.TextToSpeechLongAudioSynthesizeSettings.Builder Builder for TextToSpeechLongAudioSynthesizeSettings.TextToSpeechProto TextToSpeechSettings Settings class to configure an instance ofTextToSpeechClient
.TextToSpeechSettings.Builder Builder for TextToSpeechSettings.Timepoint This contains a mapping between a certain point in the input text and a corresponding time in the output audio.Timepoint.Builder This contains a mapping between a certain point in the input text and a corresponding time in the output audio.Voice Description of a voice supported by the TTS service.Voice.Builder Description of a voice supported by the TTS service.VoiceSelectionParams Description of which voice to use for a synthesis request.VoiceSelectionParams.Builder Description of which voice to use for a synthesis request. -
Enum Summary Enum Description AudioEncoding Configuration to set up audio encoder.CustomVoiceParams.ReportedUsage The usage of the synthesized audio.SsmlVoiceGender Gender of the voice as described in [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).SynthesisInput.InputSourceCase SynthesizeSpeechRequest.TimepointType The type of timepoint information that is returned in the response.