Send feedback
Class SynthesizeSpeechConfig (4.46.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 4.46.0 keyboard_arrow_down
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)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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 [(.google.api.field_behavior) = OPTIONAL];
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 [(.google.api.field_behavior) = OPTIONAL];
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 [(.google.api.field_behavior) = OPTIONAL];
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 [(.google.api.field_behavior) = OPTIONAL];
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 [(.google.api.field_behavior) = OPTIONAL];
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 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
double
The speakingRate.
getVoice()
public VoiceSelectionParams getVoice ()
Optional. The desired voice of the synthesized audio.
.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL];
getVoiceOrBuilder()
public VoiceSelectionParamsOrBuilder getVoiceOrBuilder ()
Optional. The desired voice of the synthesized audio.
.google.cloud.dialogflow.v2beta1.VoiceSelectionParams voice = 4 [(.google.api.field_behavior) = OPTIONAL];
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];
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 [(.google.api.field_behavior) = OPTIONAL];
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-03 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-10-03 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-03 UTC."]]