public static final class SynthesizeSpeechConfig.Builder extends GeneratedMessageV3.Builder<SynthesizeSpeechConfig.Builder> implements SynthesizeSpeechConfigOrBuilder
Configuration of how speech should be synthesized.Protobuf type
google.cloud.dialogflow.v2.SynthesizeSpeechConfig
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<SynthesizeSpeechConfig.Builder>
public SynthesizeSpeechConfig.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<SynthesizeSpeechConfig.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<SynthesizeSpeechConfig.Builder>
public SynthesizeSpeechConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public SynthesizeSpeechConfig build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public SynthesizeSpeechConfig buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public SynthesizeSpeechConfig.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<SynthesizeSpeechConfig.Builder>
public SynthesizeSpeechConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<SynthesizeSpeechConfig.Builder>
public SynthesizeSpeechConfig.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<SynthesizeSpeechConfig.Builder>
public SynthesizeSpeechConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<SynthesizeSpeechConfig.Builder>
public SynthesizeSpeechConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<SynthesizeSpeechConfig.Builder>
public SynthesizeSpeechConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<SynthesizeSpeechConfig.Builder>
public SynthesizeSpeechConfig.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<SynthesizeSpeechConfig.Builder>
public SynthesizeSpeechConfig.Builder mergeFrom(SynthesizeSpeechConfig other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<SynthesizeSpeechConfig.Builder>
public SynthesizeSpeechConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<SynthesizeSpeechConfig.Builder>
IOException
public 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 SynthesizeSpeechConfigOrBuilder
public 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 SynthesizeSpeechConfigOrBuilder
public 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 SynthesizeSpeechConfigOrBuilder
public 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 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 SynthesizeSpeechConfigOrBuilder
public 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 SynthesizeSpeechConfigOrBuilder
public 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 SynthesizeSpeechConfigOrBuilder
index
- The index of the element to return.public 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 SynthesizeSpeechConfigOrBuilder
index
- 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(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.v2.VoiceSelectionParams voice = 4;
hasVoice
in interface SynthesizeSpeechConfigOrBuilder
public VoiceSelectionParams getVoice()
Optional. The desired voice of the synthesized audio.
.google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4;
getVoice
in interface SynthesizeSpeechConfigOrBuilder
public SynthesizeSpeechConfig.Builder setVoice(VoiceSelectionParams value)
Optional. The desired voice of the synthesized audio.
.google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4;
public SynthesizeSpeechConfig.Builder setVoice(VoiceSelectionParams.Builder builderForValue)
Optional. The desired voice of the synthesized audio.
.google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4;
public SynthesizeSpeechConfig.Builder mergeVoice(VoiceSelectionParams value)
Optional. The desired voice of the synthesized audio.
.google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4;
public SynthesizeSpeechConfig.Builder clearVoice()
Optional. The desired voice of the synthesized audio.
.google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4;
public VoiceSelectionParams.Builder getVoiceBuilder()
Optional. The desired voice of the synthesized audio.
.google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4;
public VoiceSelectionParamsOrBuilder getVoiceOrBuilder()
Optional. The desired voice of the synthesized audio.
.google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4;
getVoiceOrBuilder
in interface SynthesizeSpeechConfigOrBuilder
public final SynthesizeSpeechConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<SynthesizeSpeechConfig.Builder>
public final SynthesizeSpeechConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<SynthesizeSpeechConfig.Builder>
Copyright © 2022 Google LLC. All rights reserved.