Package com.google.cloud.dialogflow.v2
Class SynthesizeSpeechConfig
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig
- All Implemented Interfaces:
SynthesizeSpeechConfigOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class SynthesizeSpeechConfig
extends com.google.protobuf.GeneratedMessage
implements SynthesizeSpeechConfigOrBuilder
Configuration of how speech should be synthesized.Protobuf type
google.cloud.dialogflow.v2.SynthesizeSpeechConfig- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classConfiguration of how speech should be synthesized.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic SynthesizeSpeechConfigstatic final com.google.protobuf.Descriptors.DescriptorgetEffectsProfileId(int index) Optional.com.google.protobuf.ByteStringgetEffectsProfileIdBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.com.google.protobuf.Parser<SynthesizeSpeechConfig>doublegetPitch()Optional.getPronunciations(int index) Optional.intOptional.Optional.getPronunciationsOrBuilder(int index) Optional.List<? extends CustomPronunciationParamsOrBuilder>Optional.intdoubleOptional.getVoice()Optional.Optional.doubleOptional.inthashCode()booleanhasVoice()Optional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(SynthesizeSpeechConfig prototype) protected SynthesizeSpeechConfig.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static SynthesizeSpeechConfigparseDelimitedFrom(InputStream input) static SynthesizeSpeechConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SynthesizeSpeechConfigparseFrom(byte[] data) static SynthesizeSpeechConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SynthesizeSpeechConfigparseFrom(com.google.protobuf.ByteString data) static SynthesizeSpeechConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SynthesizeSpeechConfigparseFrom(com.google.protobuf.CodedInputStream input) static SynthesizeSpeechConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SynthesizeSpeechConfigparseFrom(InputStream input) static SynthesizeSpeechConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SynthesizeSpeechConfigparseFrom(ByteBuffer data) static SynthesizeSpeechConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SynthesizeSpeechConfig>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
SPEAKING_RATE_FIELD_NUMBER
public static final int SPEAKING_RATE_FIELD_NUMBER- See Also:
-
PITCH_FIELD_NUMBER
public static final int PITCH_FIELD_NUMBER- See Also:
-
VOLUME_GAIN_DB_FIELD_NUMBER
public static final int VOLUME_GAIN_DB_FIELD_NUMBER- See Also:
-
EFFECTS_PROFILE_ID_FIELD_NUMBER
public static final int EFFECTS_PROFILE_ID_FIELD_NUMBER- See Also:
-
VOICE_FIELD_NUMBER
public static final int VOICE_FIELD_NUMBER- See Also:
-
PRONUNCIATIONS_FIELD_NUMBER
public static final int PRONUNCIATIONS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getSpeakingRate
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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSpeakingRatein interfaceSynthesizeSpeechConfigOrBuilder- Returns:
- The speakingRate.
-
getPitch
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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPitchin interfaceSynthesizeSpeechConfigOrBuilder- Returns:
- The pitch.
-
getVolumeGainDb
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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVolumeGainDbin interfaceSynthesizeSpeechConfigOrBuilder- Returns:
- The volumeGainDb.
-
getEffectsProfileIdList
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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEffectsProfileIdListin interfaceSynthesizeSpeechConfigOrBuilder- Returns:
- A list containing the effectsProfileId.
-
getEffectsProfileIdCount
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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEffectsProfileIdCountin interfaceSynthesizeSpeechConfigOrBuilder- Returns:
- The count of effectsProfileId.
-
getEffectsProfileId
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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEffectsProfileIdin interfaceSynthesizeSpeechConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The effectsProfileId at the given index.
-
getEffectsProfileIdBytes
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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEffectsProfileIdBytesin interfaceSynthesizeSpeechConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the effectsProfileId at the given index.
-
hasVoice
public boolean hasVoice()Optional. The desired voice of the synthesized audio.
.google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasVoicein interfaceSynthesizeSpeechConfigOrBuilder- Returns:
- Whether the voice field is set.
-
getVoice
Optional. The desired voice of the synthesized audio.
.google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVoicein interfaceSynthesizeSpeechConfigOrBuilder- Returns:
- The voice.
-
getVoiceOrBuilder
Optional. The desired voice of the synthesized audio.
.google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVoiceOrBuilderin interfaceSynthesizeSpeechConfigOrBuilder
-
getPronunciationsList
Optional. The custom pronunciations for the synthesized audio.
repeated .google.cloud.dialogflow.v2.CustomPronunciationParams pronunciations = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPronunciationsListin interfaceSynthesizeSpeechConfigOrBuilder
-
getPronunciationsOrBuilderList
Optional. The custom pronunciations for the synthesized audio.
repeated .google.cloud.dialogflow.v2.CustomPronunciationParams pronunciations = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPronunciationsOrBuilderListin interfaceSynthesizeSpeechConfigOrBuilder
-
getPronunciationsCount
public int getPronunciationsCount()Optional. The custom pronunciations for the synthesized audio.
repeated .google.cloud.dialogflow.v2.CustomPronunciationParams pronunciations = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPronunciationsCountin interfaceSynthesizeSpeechConfigOrBuilder
-
getPronunciations
Optional. The custom pronunciations for the synthesized audio.
repeated .google.cloud.dialogflow.v2.CustomPronunciationParams pronunciations = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPronunciationsin interfaceSynthesizeSpeechConfigOrBuilder
-
getPronunciationsOrBuilder
Optional. The custom pronunciations for the synthesized audio.
repeated .google.cloud.dialogflow.v2.CustomPronunciationParams pronunciations = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPronunciationsOrBuilderin interfaceSynthesizeSpeechConfigOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SynthesizeSpeechConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SynthesizeSpeechConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SynthesizeSpeechConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SynthesizeSpeechConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SynthesizeSpeechConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SynthesizeSpeechConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static SynthesizeSpeechConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static SynthesizeSpeechConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static SynthesizeSpeechConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static SynthesizeSpeechConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SynthesizeSpeechConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-