public final class SynthesizeSpeechConfig extends GeneratedMessageV3 implements SynthesizeSpeechConfigOrBuilder
Configuration of how speech should be synthesized.
Protobuf type google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
EFFECTS_PROFILE_ID_FIELD_NUMBER
public static final int EFFECTS_PROFILE_ID_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
PITCH_FIELD_NUMBER
public static final int PITCH_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
SPEAKING_RATE_FIELD_NUMBER
public static final int SPEAKING_RATE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
VOICE_FIELD_NUMBER
public static final int VOICE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
VOLUME_GAIN_DB_FIELD_NUMBER
public static final int VOLUME_GAIN_DB_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static SynthesizeSpeechConfig getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static SynthesizeSpeechConfig.Builder newBuilder()
newBuilder(SynthesizeSpeechConfig prototype)
public static SynthesizeSpeechConfig.Builder newBuilder(SynthesizeSpeechConfig prototype)
public static SynthesizeSpeechConfig parseDelimitedFrom(InputStream input)
public static SynthesizeSpeechConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static SynthesizeSpeechConfig parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SynthesizeSpeechConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static SynthesizeSpeechConfig parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SynthesizeSpeechConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SynthesizeSpeechConfig parseFrom(CodedInputStream input)
public static SynthesizeSpeechConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SynthesizeSpeechConfig parseFrom(InputStream input)
public static SynthesizeSpeechConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static SynthesizeSpeechConfig parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SynthesizeSpeechConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<SynthesizeSpeechConfig> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public SynthesizeSpeechConfig getDefaultInstanceForType()
getEffectsProfileId(int index)
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;
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
String |
The effectsProfileId at the given index.
|
getEffectsProfileIdBytes(int index)
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;
Parameter |
Name |
Description |
index |
int
The index of the value to return.
|
Returns |
Type |
Description |
ByteString |
The bytes of the effectsProfileId at the given index.
|
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;
Returns |
Type |
Description |
int |
The count of effectsProfileId.
|
getEffectsProfileIdList()
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;
getParserForType()
public Parser<SynthesizeSpeechConfig> getParserForType()
Overrides
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;
Returns |
Type |
Description |
double |
The pitch.
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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;
Returns |
Type |
Description |
double |
The speakingRate.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
getVoice()
public VoiceSelectionParams getVoice()
Optional. The desired voice of the synthesized audio.
.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4;
getVoiceOrBuilder()
public VoiceSelectionParamsOrBuilder getVoiceOrBuilder()
Optional. The desired voice of the synthesized audio.
.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4;
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;
Returns |
Type |
Description |
double |
The volumeGainDb.
|
hasVoice()
public boolean hasVoice()
Optional. The desired voice of the synthesized audio.
.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4;
Returns |
Type |
Description |
boolean |
Whether the voice field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public SynthesizeSpeechConfig.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SynthesizeSpeechConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public SynthesizeSpeechConfig.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides