Class StreamingAudioConfig (2.23.0)

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

Description of the desired output audio data.

Attributes

Name Description
audio_encoding google.cloud.texttospeech_v1beta1.types.AudioEncoding
Required. The format of the audio byte stream. For now, streaming only supports PCM and OGG_OPUS. All other encodings will return an error.
sample_rate_hertz int
Optional. The synthesis sample rate (in hertz) for this audio.