Interface StreamingAudioConfigOrBuilder (2.57.0)

public interface StreamingAudioConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAudioEncoding()

public abstract AudioEncoding getAudioEncoding()

Required. The format of the audio byte stream. For now, streaming only supports PCM and OGG_OPUS. All other encodings will return an error.

.google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AudioEncoding

The audioEncoding.

getAudioEncodingValue()

public abstract int getAudioEncodingValue()

Required. The format of the audio byte stream. For now, streaming only supports PCM and OGG_OPUS. All other encodings will return an error.

.google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for audioEncoding.

getSampleRateHertz()

public abstract int getSampleRateHertz()

Optional. The synthesis sample rate (in hertz) for this audio.

int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The sampleRateHertz.