# Package types (2.37.0)

2.37.0 (latest) 2.36.0 2.35.0 2.34.0 2.33.0 2.32.0 2.31.0 2.30.0 2.29.0 2.28.0 2.27.0 2.26.0 2.25.0 2.24.0 2.23.0 2.22.0 2.21.1 2.20.0 2.19.0 2.18.0 2.17.2 2.16.5 2.15.1 2.14.2 2.13.0 2.12.3 2.11.1 2.10.2 2.9.1 2.8.0 2.7.1 2.6.0 2.5.3 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.0.3 0.5.0 API documentation for `texttospeech_v1beta1.types` package.

## Classes

### [AdvancedVoiceOptions](https://docs.cloud.google.com/python/docs/reference/texttospeech/latest/google.cloud.texttospeech_v1beta1.types.AdvancedVoiceOptions)

Used for advanced voice options.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### [AudioConfig](https://docs.cloud.google.com/python/docs/reference/texttospeech/latest/google.cloud.texttospeech_v1beta1.types.AudioConfig)

Description of audio data to be synthesized.

### [AudioEncoding](https://docs.cloud.google.com/python/docs/reference/texttospeech/latest/google.cloud.texttospeech_v1beta1.types.AudioEncoding)

Configuration to set up audio encoder. The encoding
determines the output audio format that we'd like.

### [CustomPronunciationParams](https://docs.cloud.google.com/python/docs/reference/texttospeech/latest/google.cloud.texttospeech_v1beta1.types.CustomPronunciationParams)

Pronunciation customization for a phrase.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### [CustomPronunciations](https://docs.cloud.google.com/python/docs/reference/texttospeech/latest/google.cloud.texttospeech_v1beta1.types.CustomPronunciations)

A collection of pronunciation customizations.

### [CustomVoiceParams](https://docs.cloud.google.com/python/docs/reference/texttospeech/latest/google.cloud.texttospeech_v1beta1.types.CustomVoiceParams)

Description of the custom voice to be synthesized.

### [ListVoicesRequest](https://docs.cloud.google.com/python/docs/reference/texttospeech/latest/google.cloud.texttospeech_v1beta1.types.ListVoicesRequest)

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

### [ListVoicesResponse](https://docs.cloud.google.com/python/docs/reference/texttospeech/latest/google.cloud.texttospeech_v1beta1.types.ListVoicesResponse)

The message returned to the client by the `ListVoices` method.

### [MultiSpeakerMarkup](https://docs.cloud.google.com/python/docs/reference/texttospeech/latest/google.cloud.texttospeech_v1beta1.types.MultiSpeakerMarkup)

A collection of turns for multi-speaker synthesis.

### [MultiSpeakerVoiceConfig](https://docs.cloud.google.com/python/docs/reference/texttospeech/latest/google.cloud.texttospeech_v1beta1.types.MultiSpeakerVoiceConfig)

Configuration for a multi-speaker text-to-speech setup.
Enables the use of up to two distinct voices in a single
synthesis request.

### [MultispeakerPrebuiltVoice](https://docs.cloud.google.com/python/docs/reference/texttospeech/latest/google.cloud.texttospeech_v1beta1.types.MultispeakerPrebuiltVoice)

Configuration for a single speaker in a Gemini TTS
multi-speaker setup. Enables dialogue between two speakers.

### [SsmlVoiceGender](https://docs.cloud.google.com/python/docs/reference/texttospeech/latest/google.cloud.texttospeech_v1beta1.types.SsmlVoiceGender)

Gender of the voice as described in `SSML voice
element <https://www.w3.org/TR/speech-synthesis11/#edef_voice>`__.

### [StreamingAudioConfig](https://docs.cloud.google.com/python/docs/reference/texttospeech/latest/google.cloud.texttospeech_v1beta1.types.StreamingAudioConfig)

Description of the desired output audio data.

### [StreamingSynthesisInput](https://docs.cloud.google.com/python/docs/reference/texttospeech/latest/google.cloud.texttospeech_v1beta1.types.StreamingSynthesisInput)

Input to be synthesized.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### [StreamingSynthesizeConfig](https://docs.cloud.google.com/python/docs/reference/texttospeech/latest/google.cloud.texttospeech_v1beta1.types.StreamingSynthesizeConfig)

Provides configuration information for the
StreamingSynthesize request.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### [StreamingSynthesizeRequest](https://docs.cloud.google.com/python/docs/reference/texttospeech/latest/google.cloud.texttospeech_v1beta1.types.StreamingSynthesizeRequest)

Request message for the `StreamingSynthesize` method. Multiple
`StreamingSynthesizeRequest` messages are sent in one call. The
first message must contain a `streaming_config` that fully
specifies the request configuration and must not contain `input`.
All subsequent messages must only have `input` set.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### [StreamingSynthesizeResponse](https://docs.cloud.google.com/python/docs/reference/texttospeech/latest/google.cloud.texttospeech_v1beta1.types.StreamingSynthesizeResponse)

`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.

### [SynthesisInput](https://docs.cloud.google.com/python/docs/reference/texttospeech/latest/google.cloud.texttospeech_v1beta1.types.SynthesisInput)

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

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### [SynthesizeLongAudioMetadata](https://docs.cloud.google.com/python/docs/reference/texttospeech/latest/google.cloud.texttospeech_v1beta1.types.SynthesizeLongAudioMetadata)

Metadata for response returned by the `SynthesizeLongAudio`
method.

### [SynthesizeLongAudioRequest](https://docs.cloud.google.com/python/docs/reference/texttospeech/latest/google.cloud.texttospeech_v1beta1.types.SynthesizeLongAudioRequest)

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

### [SynthesizeLongAudioResponse](https://docs.cloud.google.com/python/docs/reference/texttospeech/latest/google.cloud.texttospeech_v1beta1.types.SynthesizeLongAudioResponse)

The message returned to the client by the `SynthesizeLongAudio`
method.

### [SynthesizeSpeechRequest](https://docs.cloud.google.com/python/docs/reference/texttospeech/latest/google.cloud.texttospeech_v1beta1.types.SynthesizeSpeechRequest)

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

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### [SynthesizeSpeechResponse](https://docs.cloud.google.com/python/docs/reference/texttospeech/latest/google.cloud.texttospeech_v1beta1.types.SynthesizeSpeechResponse)

The message returned to the client by the `SynthesizeSpeech`
method.

### [Timepoint](https://docs.cloud.google.com/python/docs/reference/texttospeech/latest/google.cloud.texttospeech_v1beta1.types.Timepoint)

This contains a mapping between a certain point in the input
text and a corresponding time in the output audio.

### [Voice](https://docs.cloud.google.com/python/docs/reference/texttospeech/latest/google.cloud.texttospeech_v1beta1.types.Voice)

Description of a voice supported by the TTS service.

### [VoiceCloneParams](https://docs.cloud.google.com/python/docs/reference/texttospeech/latest/google.cloud.texttospeech_v1beta1.types.VoiceCloneParams)

The configuration of Voice Clone feature.

### [VoiceSelectionParams](https://docs.cloud.google.com/python/docs/reference/texttospeech/latest/google.cloud.texttospeech_v1beta1.types.VoiceSelectionParams)

Description of which voice to use for a synthesis request.