Class StreamingAudioConfig.Builder (2.100.0)

public static final class StreamingAudioConfig.Builder extends GeneratedMessage.Builder<StreamingAudioConfig.Builder> implements StreamingAudioConfigOrBuilder

Description of the desired output audio data.

Protobuf type google.cloud.texttospeech.v1beta1.StreamingAudioConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public StreamingAudioConfig build()
Returns
Type Description
StreamingAudioConfig

buildPartial()

public StreamingAudioConfig buildPartial()
Returns
Type Description
StreamingAudioConfig

clear()

public StreamingAudioConfig.Builder clear()
Returns
Type Description
StreamingAudioConfig.Builder
Overrides

clearAudioEncoding()

public StreamingAudioConfig.Builder clearAudioEncoding()

Required. The format of the audio byte stream. Streaming supports PCM, ALAW, MULAW and OGG_OPUS. All other encodings return an error.

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

Returns
Type Description
StreamingAudioConfig.Builder

This builder for chaining.

clearSampleRateHertz()

public StreamingAudioConfig.Builder clearSampleRateHertz()

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

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

Returns
Type Description
StreamingAudioConfig.Builder

This builder for chaining.

clearSpeakingRate()

public StreamingAudioConfig.Builder clearSpeakingRate()

Optional. Input only. Speaking rate/speed, in the range [0.25, 2.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 > 2.0 will return an error.

double speaking_rate = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StreamingAudioConfig.Builder

This builder for chaining.

getAudioEncoding()

public AudioEncoding getAudioEncoding()

Required. The format of the audio byte stream. Streaming supports PCM, ALAW, MULAW and OGG_OPUS. All other encodings return an error.

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

Returns
Type Description
AudioEncoding

The audioEncoding.

getAudioEncodingValue()

public int getAudioEncodingValue()

Required. The format of the audio byte stream. Streaming supports PCM, ALAW, MULAW and OGG_OPUS. All other encodings 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.

getDefaultInstanceForType()

public StreamingAudioConfig getDefaultInstanceForType()
Returns
Type Description
StreamingAudioConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description