Class SynthesizeSpeechRequest (2.16.2)

SynthesizeSpeechRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

Attributes

NameDescription
input google.cloud.texttospeech_v1beta1.types.SynthesisInput
Required. The Synthesizer requires either plain text or SSML as input.
voice google.cloud.texttospeech_v1beta1.types.VoiceSelectionParams
Required. The desired voice of the synthesized audio.
audio_config google.cloud.texttospeech_v1beta1.types.AudioConfig
Required. The configuration of the synthesized audio.
enable_time_pointing MutableSequence[google.cloud.texttospeech_v1beta1.types.SynthesizeSpeechRequest.TimepointType]
Whether and what timepoints are returned in the response.

Classes

TimepointType

TimepointType(value)

The type of timepoint information that is returned in the response.

Values: TIMEPOINT_TYPE_UNSPECIFIED (0): Not specified. No timepoint information will be returned. SSML_MARK (1): Timepoint information of <mark> tags in SSML input will be returned.