- 4.89.0 (latest)
- 4.88.0
- 4.87.0
- 4.86.0
- 4.84.0
- 4.82.0
- 4.81.0
- 4.80.0
- 4.79.0
- 4.78.0
- 4.76.0
- 4.74.0
- 4.73.0
- 4.70.0
- 4.69.0
- 4.68.0
- 4.66.0
- 4.65.0
- 4.64.0
- 4.63.0
- 4.62.0
- 4.61.0
- 4.60.0
- 4.59.0
- 4.58.0
- 4.57.0
- 4.55.0
- 4.54.0
- 4.53.0
- 4.52.0
- 4.51.0
- 4.50.0
- 4.49.0
- 4.48.0
- 4.47.0
- 4.46.0
- 4.45.0
- 4.43.0
- 4.42.0
- 4.41.0
- 4.40.0
- 4.39.0
- 4.38.0
- 4.37.0
- 4.36.0
- 4.35.0
- 4.34.0
- 4.33.0
- 4.30.0
- 4.29.0
- 4.28.0
- 4.27.0
- 4.26.0
- 4.25.0
- 4.24.0
- 4.23.0
- 4.22.0
- 4.21.0
- 4.20.0
- 4.19.0
- 4.18.0
- 4.17.0
- 4.15.0
- 4.14.0
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.9.1
- 4.8.6
- 4.7.5
- 4.6.0
- 4.5.11
- 4.4.0
- 4.3.1
public static final class OutputAudioConfig.Builder extends GeneratedMessage.Builder<OutputAudioConfig.Builder> implements OutputAudioConfigOrBuilderInstructs the speech synthesizer on how to generate the output audio content. If this audio config is supplied in a request, it overrides all existing text-to-speech settings applied to the agent.
Protobuf type google.cloud.dialogflow.v2.OutputAudioConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > OutputAudioConfig.BuilderImplements
OutputAudioConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public OutputAudioConfig build()| Returns | |
|---|---|
| Type | Description |
OutputAudioConfig |
|
buildPartial()
public OutputAudioConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
OutputAudioConfig |
|
clear()
public OutputAudioConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
OutputAudioConfig.Builder |
|
clearAudioEncoding()
public OutputAudioConfig.Builder clearAudioEncoding()Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2.OutputAudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
OutputAudioConfig.Builder |
This builder for chaining. |
clearSampleRateHertz()
public OutputAudioConfig.Builder clearSampleRateHertz()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 |
OutputAudioConfig.Builder |
This builder for chaining. |
clearSynthesizeSpeechConfig()
public OutputAudioConfig.Builder clearSynthesizeSpeechConfig()Configuration of how speech should be synthesized.
.google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
| Returns | |
|---|---|
| Type | Description |
OutputAudioConfig.Builder |
|
getAudioEncoding()
public OutputAudioEncoding getAudioEncoding()Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2.OutputAudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
OutputAudioEncoding |
The audioEncoding. |
getAudioEncodingValue()
public int getAudioEncodingValue()Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2.OutputAudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for audioEncoding. |
getDefaultInstanceForType()
public OutputAudioConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
OutputAudioConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getSampleRateHertz()
public int getSampleRateHertz()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 SynthesizeSpeechConfig getSynthesizeSpeechConfig()Configuration of how speech should be synthesized.
.google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
| Returns | |
|---|---|
| Type | Description |
SynthesizeSpeechConfig |
The synthesizeSpeechConfig. |
getSynthesizeSpeechConfigBuilder()
public SynthesizeSpeechConfig.Builder getSynthesizeSpeechConfigBuilder()Configuration of how speech should be synthesized.
.google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
| Returns | |
|---|---|
| Type | Description |
SynthesizeSpeechConfig.Builder |
|
getSynthesizeSpeechConfigOrBuilder()
public SynthesizeSpeechConfigOrBuilder getSynthesizeSpeechConfigOrBuilder()Configuration of how speech should be synthesized.
.google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
| Returns | |
|---|---|
| Type | Description |
SynthesizeSpeechConfigOrBuilder |
|
hasSynthesizeSpeechConfig()
public boolean hasSynthesizeSpeechConfig()Configuration of how speech should be synthesized.
.google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the synthesizeSpeechConfig field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(OutputAudioConfig other)
public OutputAudioConfig.Builder mergeFrom(OutputAudioConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
OutputAudioConfig |
| Returns | |
|---|---|
| Type | Description |
OutputAudioConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public OutputAudioConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OutputAudioConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public OutputAudioConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
OutputAudioConfig.Builder |
|
mergeSynthesizeSpeechConfig(SynthesizeSpeechConfig value)
public OutputAudioConfig.Builder mergeSynthesizeSpeechConfig(SynthesizeSpeechConfig value)Configuration of how speech should be synthesized.
.google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
SynthesizeSpeechConfig |
| Returns | |
|---|---|
| Type | Description |
OutputAudioConfig.Builder |
|
setAudioEncoding(OutputAudioEncoding value)
public OutputAudioConfig.Builder setAudioEncoding(OutputAudioEncoding value)Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2.OutputAudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
OutputAudioEncodingThe audioEncoding to set. |
| Returns | |
|---|---|
| Type | Description |
OutputAudioConfig.Builder |
This builder for chaining. |
setAudioEncodingValue(int value)
public OutputAudioConfig.Builder setAudioEncodingValue(int value)Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2.OutputAudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for audioEncoding to set. |
| Returns | |
|---|---|
| Type | Description |
OutputAudioConfig.Builder |
This builder for chaining. |
setSampleRateHertz(int value)
public OutputAudioConfig.Builder setSampleRateHertz(int value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe sampleRateHertz to set. |
| Returns | |
|---|---|
| Type | Description |
OutputAudioConfig.Builder |
This builder for chaining. |
setSynthesizeSpeechConfig(SynthesizeSpeechConfig value)
public OutputAudioConfig.Builder setSynthesizeSpeechConfig(SynthesizeSpeechConfig value)Configuration of how speech should be synthesized.
.google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
SynthesizeSpeechConfig |
| Returns | |
|---|---|
| Type | Description |
OutputAudioConfig.Builder |
|
setSynthesizeSpeechConfig(SynthesizeSpeechConfig.Builder builderForValue)
public OutputAudioConfig.Builder setSynthesizeSpeechConfig(SynthesizeSpeechConfig.Builder builderForValue)Configuration of how speech should be synthesized.
.google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
SynthesizeSpeechConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
OutputAudioConfig.Builder |
|