texttospeech/v1 library
Cloud Text-to-Speech API - v1
Synthesizes natural-sounding speech by applying powerful neural network models.
For more information, see cloud.google.com/text-to-speech/
Create an instance of TexttospeechApi to access these resources:
Classes
- AudioConfig
- Description of audio data to be synthesized.
- CustomVoiceParams
- Description of the custom voice to be synthesized.
- ListOperationsResponse
- The response message for Operations.ListOperations.
- ListVoicesResponse
-
The message returned to the client by the
ListVoices
method. - Operation
- This resource represents a long-running operation that is the result of a network API call.
- OperationsResource
- ProjectsLocationsOperationsResource
- ProjectsLocationsResource
- ProjectsResource
- SynthesisInput
- Contains text input to be synthesized.
- SynthesizeLongAudioRequest
-
The top-level message sent by the client for the
SynthesizeLongAudio
method. - SynthesizeSpeechRequest
-
The top-level message sent by the client for the
SynthesizeSpeech
method. - SynthesizeSpeechResponse
-
The message returned to the client by the
SynthesizeSpeech
method. - TextResource
- TexttospeechApi
- Synthesizes natural-sounding speech by applying powerful neural network models.
- Voice
- Description of a voice supported by the TTS service.
- VoiceSelectionParams
- Description of which voice to use for a synthesis request.
- VoicesResource
Typedefs
- CancelOperationRequest = $Empty
- The request message for Operations.CancelOperation.
- Empty = $Empty
- A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs.
- Status = $Status
-
The
Status
type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs.
Exceptions / Errors
- ApiRequestError
- Represents a general error reported by the API endpoint.
- DetailedApiRequestError
- Represents a specific error reported by the API endpoint.