public static final class SynthesizeSpeechConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechConfig.Builder> implements SynthesizeSpeechConfigOrBuilder
Configuration of how speech should be synthesized.Protobuf type
google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfiggetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechConfig.Builder>public SynthesizeSpeechConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechConfig.Builder>public SynthesizeSpeechConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SynthesizeSpeechConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SynthesizeSpeechConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SynthesizeSpeechConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechConfig.Builder>public SynthesizeSpeechConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechConfig.Builder>public SynthesizeSpeechConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechConfig.Builder>public SynthesizeSpeechConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechConfig.Builder>public SynthesizeSpeechConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechConfig.Builder>public SynthesizeSpeechConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechConfig.Builder>public SynthesizeSpeechConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SynthesizeSpeechConfig.Builder>public SynthesizeSpeechConfig.Builder mergeFrom(SynthesizeSpeechConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechConfig.Builder>public SynthesizeSpeechConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SynthesizeSpeechConfig.Builder>IOExceptionpublic double getSpeakingRate()
Optional. Speaking rate/speed, in the range [0.25, 4.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 > 4.0 will return an error.
double speaking_rate = 1;getSpeakingRate in interface SynthesizeSpeechConfigOrBuilderpublic SynthesizeSpeechConfig.Builder setSpeakingRate(double value)
Optional. Speaking rate/speed, in the range [0.25, 4.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 > 4.0 will return an error.
double speaking_rate = 1;value - The speakingRate to set.public SynthesizeSpeechConfig.Builder clearSpeakingRate()
Optional. Speaking rate/speed, in the range [0.25, 4.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 > 4.0 will return an error.
double speaking_rate = 1;public double getPitch()
Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 semitones from the original pitch. -20 means decrease 20 semitones from the original pitch.
double pitch = 2;getPitch in interface SynthesizeSpeechConfigOrBuilderpublic SynthesizeSpeechConfig.Builder setPitch(double value)
Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 semitones from the original pitch. -20 means decrease 20 semitones from the original pitch.
double pitch = 2;value - The pitch to set.public SynthesizeSpeechConfig.Builder clearPitch()
Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 semitones from the original pitch. -20 means decrease 20 semitones from the original pitch.
double pitch = 2;public double getVolumeGainDb()
Optional. Volume gain (in dB) of the normal native volume supported by the specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB) will play at approximately half the amplitude of the normal native signal amplitude. A value of +6.0 (dB) will play at approximately twice the amplitude of the normal native signal amplitude. We strongly recommend not to exceed +10 (dB) as there's usually no effective increase in loudness for any value greater than that.
double volume_gain_db = 3;getVolumeGainDb in interface SynthesizeSpeechConfigOrBuilderpublic SynthesizeSpeechConfig.Builder setVolumeGainDb(double value)
Optional. Volume gain (in dB) of the normal native volume supported by the specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB) will play at approximately half the amplitude of the normal native signal amplitude. A value of +6.0 (dB) will play at approximately twice the amplitude of the normal native signal amplitude. We strongly recommend not to exceed +10 (dB) as there's usually no effective increase in loudness for any value greater than that.
double volume_gain_db = 3;value - The volumeGainDb to set.public SynthesizeSpeechConfig.Builder clearVolumeGainDb()
Optional. Volume gain (in dB) of the normal native volume supported by the specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB) will play at approximately half the amplitude of the normal native signal amplitude. A value of +6.0 (dB) will play at approximately twice the amplitude of the normal native signal amplitude. We strongly recommend not to exceed +10 (dB) as there's usually no effective increase in loudness for any value greater than that.
double volume_gain_db = 3;public com.google.protobuf.ProtocolStringList getEffectsProfileIdList()
Optional. An identifier which selects 'audio effects' profiles that are applied on (post synthesized) text to speech. Effects are applied on top of each other in the order they are given.
repeated string effects_profile_id = 5;getEffectsProfileIdList in interface SynthesizeSpeechConfigOrBuilderpublic int getEffectsProfileIdCount()
Optional. An identifier which selects 'audio effects' profiles that are applied on (post synthesized) text to speech. Effects are applied on top of each other in the order they are given.
repeated string effects_profile_id = 5;getEffectsProfileIdCount in interface SynthesizeSpeechConfigOrBuilderpublic String getEffectsProfileId(int index)
Optional. An identifier which selects 'audio effects' profiles that are applied on (post synthesized) text to speech. Effects are applied on top of each other in the order they are given.
repeated string effects_profile_id = 5;getEffectsProfileId in interface SynthesizeSpeechConfigOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getEffectsProfileIdBytes(int index)
Optional. An identifier which selects 'audio effects' profiles that are applied on (post synthesized) text to speech. Effects are applied on top of each other in the order they are given.
repeated string effects_profile_id = 5;getEffectsProfileIdBytes in interface SynthesizeSpeechConfigOrBuilderindex - The index of the value to return.public SynthesizeSpeechConfig.Builder setEffectsProfileId(int index, String value)
Optional. An identifier which selects 'audio effects' profiles that are applied on (post synthesized) text to speech. Effects are applied on top of each other in the order they are given.
repeated string effects_profile_id = 5;index - The index to set the value at.value - The effectsProfileId to set.public SynthesizeSpeechConfig.Builder addEffectsProfileId(String value)
Optional. An identifier which selects 'audio effects' profiles that are applied on (post synthesized) text to speech. Effects are applied on top of each other in the order they are given.
repeated string effects_profile_id = 5;value - The effectsProfileId to add.public SynthesizeSpeechConfig.Builder addAllEffectsProfileId(Iterable<String> values)
Optional. An identifier which selects 'audio effects' profiles that are applied on (post synthesized) text to speech. Effects are applied on top of each other in the order they are given.
repeated string effects_profile_id = 5;values - The effectsProfileId to add.public SynthesizeSpeechConfig.Builder clearEffectsProfileId()
Optional. An identifier which selects 'audio effects' profiles that are applied on (post synthesized) text to speech. Effects are applied on top of each other in the order they are given.
repeated string effects_profile_id = 5;public SynthesizeSpeechConfig.Builder addEffectsProfileIdBytes(com.google.protobuf.ByteString value)
Optional. An identifier which selects 'audio effects' profiles that are applied on (post synthesized) text to speech. Effects are applied on top of each other in the order they are given.
repeated string effects_profile_id = 5;value - The bytes of the effectsProfileId to add.public boolean hasVoice()
Optional. The desired voice of the synthesized audio.
.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4;hasVoice in interface SynthesizeSpeechConfigOrBuilderpublic VoiceSelectionParams getVoice()
Optional. The desired voice of the synthesized audio.
.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4;getVoice in interface SynthesizeSpeechConfigOrBuilderpublic SynthesizeSpeechConfig.Builder setVoice(VoiceSelectionParams value)
Optional. The desired voice of the synthesized audio.
.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4;public SynthesizeSpeechConfig.Builder setVoice(VoiceSelectionParams.Builder builderForValue)
Optional. The desired voice of the synthesized audio.
.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4;public SynthesizeSpeechConfig.Builder mergeVoice(VoiceSelectionParams value)
Optional. The desired voice of the synthesized audio.
.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4;public SynthesizeSpeechConfig.Builder clearVoice()
Optional. The desired voice of the synthesized audio.
.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4;public VoiceSelectionParams.Builder getVoiceBuilder()
Optional. The desired voice of the synthesized audio.
.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4;public VoiceSelectionParamsOrBuilder getVoiceOrBuilder()
Optional. The desired voice of the synthesized audio.
.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4;getVoiceOrBuilder in interface SynthesizeSpeechConfigOrBuilderpublic final SynthesizeSpeechConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechConfig.Builder>public final SynthesizeSpeechConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechConfig.Builder>Copyright © 2023 Google LLC. All rights reserved.