public final class OutputAudioConfig extends GeneratedMessageV3 implements OutputAudioConfigOrBuilder
Instructs the speech synthesizer how to generate the output audio content.
Protobuf type google.cloud.dialogflow.cx.v3.OutputAudioConfig
Static Fields
AUDIO_ENCODING_FIELD_NUMBER
public static final int AUDIO_ENCODING_FIELD_NUMBER
Field Value
SAMPLE_RATE_HERTZ_FIELD_NUMBER
public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER
Field Value
SYNTHESIZE_SPEECH_CONFIG_FIELD_NUMBER
public static final int SYNTHESIZE_SPEECH_CONFIG_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static OutputAudioConfig getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static OutputAudioConfig.Builder newBuilder()
Returns
newBuilder(OutputAudioConfig prototype)
public static OutputAudioConfig.Builder newBuilder(OutputAudioConfig prototype)
Parameter
Returns
public static OutputAudioConfig parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static OutputAudioConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static OutputAudioConfig parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static OutputAudioConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static OutputAudioConfig parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static OutputAudioConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static OutputAudioConfig parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static OutputAudioConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static OutputAudioConfig parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static OutputAudioConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static OutputAudioConfig parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static OutputAudioConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<OutputAudioConfig> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAudioEncoding()
public 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
getAudioEncodingValue()
public 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.
|
getDefaultInstanceForType()
public OutputAudioConfig getDefaultInstanceForType()
Returns
getParserForType()
public Parser<OutputAudioConfig> getParserForType()
Returns
Overrides
getSampleRateHertz()
public 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.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getSynthesizeSpeechConfig()
public SynthesizeSpeechConfig getSynthesizeSpeechConfig()
Optional. Configuration of how speech should be synthesized.
.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig synthesize_speech_config = 3;
Returns
getSynthesizeSpeechConfigOrBuilder()
public SynthesizeSpeechConfigOrBuilder getSynthesizeSpeechConfigOrBuilder()
Optional. Configuration of how speech should be synthesized.
.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig synthesize_speech_config = 3;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasSynthesizeSpeechConfig()
public 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.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public OutputAudioConfig.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected OutputAudioConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public OutputAudioConfig.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions