Module types (1.0.3)

API documentation for texttospeech_v1beta1.types module.

Classes

AudioConfig

Description of audio data to be synthesized.

Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal native speed supported by the specific voice. 2.0 is twice as fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any other values < 0.25 or > 4.0 will return an error.

Optional. Input only. Volume gain (in dB) of the normal native volume supported by the specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB) will play at approximately half the amplitude of the normal native signal amplitude. A value of +6.0 (dB) will play at approximately twice the amplitude of the normal native signal amplitude. Strongly recommend not to exceed +10 (dB) as there's usually no effective increase in loudness for any value greater than that.

Optional. Input only. An identifier which selects 'audio effects' profiles that are applied on (post synthesized) text to speech. Effects are applied on top of each other in the order they are given. See audio profiles <https://cloud.google.com/text-to-speech/docs/audio- profiles>__ for current supported profile ids.

ListVoicesRequest

The top-level message sent by the client for the ListVoices method.

ListVoicesResponse

The message returned to the client by the ListVoices method.

SynthesisInput

Contains text input to be synthesized. Either text or ssml must be supplied. Supplying both or neither returns [google.rpc.Code.INVALID_ARGUMENT][]. The input size is limited to 5000 characters.

The raw text to be synthesized.

SynthesizeSpeechRequest

The top-level message sent by the client for the SynthesizeSpeech method.

Required. The desired voice of the synthesized audio.

SynthesizeSpeechResponse

The message returned to the client by the SynthesizeSpeech method.

Voice

Description of a voice supported by the TTS service.

The name of this voice. Each distinct voice has a unique name.

The natural sample rate (in hertz) for this voice.

VoiceSelectionParams

Description of which voice to use for a synthesis request.

The name of the voice. If not set, the service will choose a voice based on the other parameters such as language_code and gender.