Send feedback
Class SynthesizeSpeechConfig (4.10.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 4.10.0 keyboard_arrow_down
public final class SynthesizeSpeechConfig extends GeneratedMessageV3 implements SynthesizeSpeechConfigOrBuilder
Configuration of how speech should be synthesized.
Protobuf type google.cloud.dialogflow.v2.SynthesizeSpeechConfig
Static Fields
EFFECTS_PROFILE_ID_FIELD_NUMBER
public static final int EFFECTS_PROFILE_ID_FIELD_NUMBER
Field Value
PITCH_FIELD_NUMBER
public static final int PITCH_FIELD_NUMBER
Field Value
SPEAKING_RATE_FIELD_NUMBER
public static final int SPEAKING_RATE_FIELD_NUMBER
Field Value
VOICE_FIELD_NUMBER
public static final int VOICE_FIELD_NUMBER
Field Value
VOLUME_GAIN_DB_FIELD_NUMBER
public static final int VOLUME_GAIN_DB_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static SynthesizeSpeechConfig getDefaultInstance ()
Returns
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
newBuilder()
public static SynthesizeSpeechConfig . Builder newBuilder ()
Returns
newBuilder(SynthesizeSpeechConfig prototype)
public static SynthesizeSpeechConfig . Builder newBuilder ( SynthesizeSpeechConfig prototype )
Parameter
Returns
public static SynthesizeSpeechConfig parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
public static SynthesizeSpeechConfig parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static SynthesizeSpeechConfig parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SynthesizeSpeechConfig parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static SynthesizeSpeechConfig parseFrom ( ByteString data )
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SynthesizeSpeechConfig parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static SynthesizeSpeechConfig parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
public static SynthesizeSpeechConfig parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static SynthesizeSpeechConfig parseFrom ( InputStream input )
Parameter
Returns
Exceptions
public static SynthesizeSpeechConfig parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static SynthesizeSpeechConfig parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SynthesizeSpeechConfig parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parser()
public static Parser<SynthesizeSpeechConfig> parser ()
Returns
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Returns
Overrides
getDefaultInstanceForType()
public SynthesizeSpeechConfig getDefaultInstanceForType ()
Returns
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;
Returns
getParserForType()
public Parser<SynthesizeSpeechConfig> getParserForType ()
Returns
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
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 ()
Returns
Overrides
getVoice()
public VoiceSelectionParams getVoice ()
Optional. The desired voice of the synthesized audio.
.google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4;
Returns
getVoiceOrBuilder()
public VoiceSelectionParamsOrBuilder getVoiceOrBuilder ()
Optional. The desired voice of the synthesized audio.
.google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4;
Returns
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.v2.VoiceSelectionParams voice = 4;
Returns
Type
Description
boolean
Whether the voice field is set.
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
newBuilderForType()
public SynthesizeSpeechConfig . Builder newBuilderForType ()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SynthesizeSpeechConfig . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
toBuilder()
public SynthesizeSpeechConfig . Builder toBuilder ()
Returns
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
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-09-24 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-09-24 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-09-24 UTC."]]