Package com.google.cloud.dialogflow.v2
Interface OutputAudioConfigOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
OutputAudioConfig,OutputAudioConfig.Builder
@Generated
public interface OutputAudioConfigOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionRequired.intRequired.intThe synthesis sample rate (in hertz) for this audio.Configuration of how speech should be synthesized.Configuration of how speech should be synthesized.booleanConfiguration of how speech should be synthesized.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getAudioEncodingValue
int getAudioEncodingValue()Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2.OutputAudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The enum numeric value on the wire for audioEncoding.
-
getAudioEncoding
OutputAudioEncoding getAudioEncoding()Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2.OutputAudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The audioEncoding.
-
getSampleRateHertz
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:
- The sampleRateHertz.
-
hasSynthesizeSpeechConfig
boolean hasSynthesizeSpeechConfig()Configuration of how speech should be synthesized.
.google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;- Returns:
- Whether the synthesizeSpeechConfig field is set.
-
getSynthesizeSpeechConfig
SynthesizeSpeechConfig getSynthesizeSpeechConfig()Configuration of how speech should be synthesized.
.google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;- Returns:
- The synthesizeSpeechConfig.
-
getSynthesizeSpeechConfigOrBuilder
SynthesizeSpeechConfigOrBuilder getSynthesizeSpeechConfigOrBuilder()Configuration of how speech should be synthesized.
.google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
-