| GitHub Repository | RPC Documentation | REST Documentation |
This package is not the recommended entry point to using this client library!
For this library, we recommend using com.google.cloud.texttospeech.v1 for new applications.
Prerelease Implications
This package is a prerelease version! Use with caution.
Prerelease versions are considered unstable as they may be shut down and/or subject to breaking changes when upgrading. Use them only for testing or if you specifically need their experimental features.
Client Classes
Client classes are the main entry point to using a package. They contain several variations of Java methods for each of the API's methods.
| Client | Description |
|---|---|
| com. |
Service Description: Service that implements Google Cloud Text-to-Speech API.
This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started: |
| com. |
Service Description: Service that implements Google Cloud Text-to-Speech API.
This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started: |
Settings Classes
Settings classes can be used to configure credentials, endpoints, and retry settings for a Client.
| Settings | Description |
|---|---|
| com. |
Settings class to configure an instance of TextToSpeechLongAudioSynthesizeClient.
The default instance has everything set to sensible defaults: |
| com. |
Settings class to configure an instance of TextToSpeechClient.
The default instance has everything set to sensible defaults: |
Classes
| Class | Description |
|---|---|
| com. |
Used for advanced voice options. |
| com. |
Used for advanced voice options. |
| com. |
Description of audio data to be synthesized. |
| com. |
Description of audio data to be synthesized. |
| com. |
Pronunciation customization for a phrase. |
| com. |
Pronunciation customization for a phrase. |
| com. |
A collection of pronunciation customizations. |
| com. |
A collection of pronunciation customizations. |
| com. |
Description of the custom voice to be synthesized. |
| com. |
Description of the custom voice to be synthesized. |
| com. |
The top-level message sent by the client for the ListVoices method.
|
| com. |
The top-level message sent by the client for the ListVoices method.
|
| com. |
The message returned to the client by the ListVoices method.
|
| com. |
The message returned to the client by the ListVoices method.
|
| com. |
A collection of turns for multi-speaker synthesis. |
| com. |
A collection of turns for multi-speaker synthesis. |
| com. |
A multi-speaker turn. |
| com. |
A multi-speaker turn. |
| com. |
Configuration for a multi-speaker text-to-speech setup. Enables the use of up to two distinct voices in a single synthesis request. |
| com. |
Configuration for a multi-speaker text-to-speech setup. Enables the use of up to two distinct voices in a single synthesis request. |
| com. |
Configuration for a single speaker in a Gemini TTS multi-speaker setup. Enables dialogue between two speakers. |
| com. |
Configuration for a single speaker in a Gemini TTS multi-speaker setup. Enables dialogue between two speakers. |
| com. |
Description of the desired output audio data. |
| com. |
Description of the desired output audio data. |
| com. |
Input to be synthesized. |
| com. |
Input to be synthesized. |
| com. |
Provides configuration information for the StreamingSynthesize request. |
| com. |
Provides configuration information for the StreamingSynthesize request. |
| com. |
Request message for the StreamingSynthesize method. Multiple
StreamingSynthesizeRequest messages are sent in one call.
The first message must contain a streaming_config that |
| com. |
Request message for the StreamingSynthesize method. Multiple
StreamingSynthesizeRequest messages are sent in one call.
The first message must contain a streaming_config that |
| com. |
StreamingSynthesizeResponse is the only message returned to the
client by StreamingSynthesize method. A series of zero or more
StreamingSynthesizeResponse messages are streamed back to the client. |
| com. |
StreamingSynthesizeResponse is the only message returned to the
client by StreamingSynthesize method. A series of zero or more
StreamingSynthesizeResponse messages are streamed back to the client. |
| com. |
Contains text input to be synthesized. Either text or ssml must be
supplied. Supplying both or neither returns
google.rpc.Code.INVALID_ARGUMENT. The |
| com. |
Contains text input to be synthesized. Either text or ssml must be
supplied. Supplying both or neither returns
google.rpc.Code.INVALID_ARGUMENT. The |
| com. |
Metadata for response returned by the SynthesizeLongAudio method.
|
| com. |
Metadata for response returned by the SynthesizeLongAudio method.
|
| com. |
The top-level message sent by the client for the
SynthesizeLongAudio method.
|
| com. |
The top-level message sent by the client for the
SynthesizeLongAudio method.
|
| com. |
The message returned to the client by the SynthesizeLongAudio method.
|
| com. |
The message returned to the client by the SynthesizeLongAudio method.
|
| com. |
The top-level message sent by the client for the SynthesizeSpeech method.
|
| com. |
The top-level message sent by the client for the SynthesizeSpeech method.
|
| com. |
The message returned to the client by the SynthesizeSpeech method.
|
| com. |
The message returned to the client by the SynthesizeSpeech method.
|
| com. |
Service that implements Google Cloud Text-to-Speech API. |
| com. |
Base class for the server implementation of the service TextToSpeech. Service that implements Google Cloud Text-to-Speech API. |
| com. |
|
| com. |
Service that implements Google Cloud Text-to-Speech API. |
| com. |
Base class for the server implementation of the service TextToSpeechLongAudioSynthesize. Service that implements Google Cloud Text-to-Speech API. |
| com. |
Builder for TextToSpeechLongAudioSynthesizeSettings. |
| com. |
|
| com. |
Builder for TextToSpeechSettings. |
| com. |
This contains a mapping between a certain point in the input text and a corresponding time in the output audio. |
| com. |
This contains a mapping between a certain point in the input text and a corresponding time in the output audio. |
| com. |
Description of a voice supported by the TTS service. |
| com. |
Description of a voice supported by the TTS service. |
| com. |
The configuration of Voice Clone feature. |
| com. |
The configuration of Voice Clone feature. |
| com. |
Description of which voice to use for a synthesis request. |
| com. |
Description of which voice to use for a synthesis request. |
Interfaces
Enums
| Enum | Description |
|---|---|
| com. |
Configuration to set up audio encoder. The encoding determines the output audio format that we'd like. |
| com. |
The phonetic encoding of the phrase. |
| com. |
Deprecated. The usage of the synthesized audio. Usage does not affect billing. |
| com. |
Gender of the voice as described in SSML voice element. |
| com. |
|
| com. |
|
| com. |
|
| com. |
The type of timepoint information that is returned in the response. |