public final class SynthesizeSpeechConfig extends GeneratedMessageV3 implements SynthesizeSpeechConfigOrBuilder
Configuration of how speech should be synthesized.Protobuf type
google.cloud.dialogflow.v2.SynthesizeSpeechConfig
Modifier and Type | Class and Description |
---|---|
static class |
SynthesizeSpeechConfig.Builder
Configuration of how speech should be synthesized.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
EFFECTS_PROFILE_ID_FIELD_NUMBER |
static int |
PITCH_FIELD_NUMBER |
static int |
SPEAKING_RATE_FIELD_NUMBER |
static int |
VOICE_FIELD_NUMBER |
static int |
VOLUME_GAIN_DB_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int SPEAKING_RATE_FIELD_NUMBER
public static final int PITCH_FIELD_NUMBER
public static final int VOLUME_GAIN_DB_FIELD_NUMBER
public static final int EFFECTS_PROFILE_ID_FIELD_NUMBER
public static final int VOICE_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
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 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 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 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 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 VoiceSelectionParamsOrBuilder getVoiceOrBuilder()
Optional. The desired voice of the synthesized audio.
.google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4;
getVoiceOrBuilder
in interface SynthesizeSpeechConfigOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static SynthesizeSpeechConfig parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SynthesizeSpeechConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SynthesizeSpeechConfig parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SynthesizeSpeechConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SynthesizeSpeechConfig parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SynthesizeSpeechConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SynthesizeSpeechConfig parseFrom(InputStream input) throws IOException
IOException
public static SynthesizeSpeechConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static SynthesizeSpeechConfig parseDelimitedFrom(InputStream input) throws IOException
IOException
public static SynthesizeSpeechConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static SynthesizeSpeechConfig parseFrom(CodedInputStream input) throws IOException
IOException
public static SynthesizeSpeechConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public SynthesizeSpeechConfig.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static SynthesizeSpeechConfig.Builder newBuilder()
public static SynthesizeSpeechConfig.Builder newBuilder(SynthesizeSpeechConfig prototype)
public SynthesizeSpeechConfig.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected SynthesizeSpeechConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static SynthesizeSpeechConfig getDefaultInstance()
public static Parser<SynthesizeSpeechConfig> parser()
public Parser<SynthesizeSpeechConfig> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public SynthesizeSpeechConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.