Interface OutputAudioConfigOrBuilder (0.11.5)

public interface OutputAudioConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAudioEncoding()

public abstract OutputAudioEncoding getAudioEncoding()

Required. Audio encoding of the synthesized audio content.

.google.cloud.dialogflow.cx.v3.OutputAudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OutputAudioEncoding

The audioEncoding.

getAudioEncodingValue()

public abstract int getAudioEncodingValue()

Required. Audio encoding of the synthesized audio content.

.google.cloud.dialogflow.cx.v3.OutputAudioEncoding 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. If not provided, then the synthesizer will use the default sample rate based on the audio encoding. If this is different from the voice's natural sample rate, then the synthesizer will honor this request by converting to the desired sample rate (which might result in worse audio quality).

int32 sample_rate_hertz = 2;

Returns
Type Description
int

The sampleRateHertz.

getSynthesizeSpeechConfig()

public abstract SynthesizeSpeechConfig getSynthesizeSpeechConfig()

Optional. Configuration of how speech should be synthesized.

.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig synthesize_speech_config = 3;

Returns
Type Description
SynthesizeSpeechConfig

The synthesizeSpeechConfig.

getSynthesizeSpeechConfigOrBuilder()

public abstract SynthesizeSpeechConfigOrBuilder getSynthesizeSpeechConfigOrBuilder()

Optional. Configuration of how speech should be synthesized.

.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig synthesize_speech_config = 3;

Returns
Type Description
SynthesizeSpeechConfigOrBuilder

hasSynthesizeSpeechConfig()

public abstract boolean hasSynthesizeSpeechConfig()

Optional. Configuration of how speech should be synthesized.

.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig synthesize_speech_config = 3;

Returns
Type Description
boolean

Whether the synthesizeSpeechConfig field is set.