Class SynthesizeSpeechConfig (0.20.0)

public final class SynthesizeSpeechConfig extends GeneratedMessageV3 implements SynthesizeSpeechConfigOrBuilder

Configuration of how speech should be synthesized.

Protobuf type google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig

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()
Returns
Type Description
SynthesizeSpeechConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static SynthesizeSpeechConfig.Builder newBuilder()
Returns
Type Description
SynthesizeSpeechConfig.Builder

newBuilder(SynthesizeSpeechConfig prototype)

public static SynthesizeSpeechConfig.Builder newBuilder(SynthesizeSpeechConfig prototype)
Parameter
Name Description
prototype SynthesizeSpeechConfig
Returns
Type Description
SynthesizeSpeechConfig.Builder

parseDelimitedFrom(InputStream input)

public static SynthesizeSpeechConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SynthesizeSpeechConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SynthesizeSpeechConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SynthesizeSpeechConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SynthesizeSpeechConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SynthesizeSpeechConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SynthesizeSpeechConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SynthesizeSpeechConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SynthesizeSpeechConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SynthesizeSpeechConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SynthesizeSpeechConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SynthesizeSpeechConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SynthesizeSpeechConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SynthesizeSpeechConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SynthesizeSpeechConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SynthesizeSpeechConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SynthesizeSpeechConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SynthesizeSpeechConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SynthesizeSpeechConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SynthesizeSpeechConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SynthesizeSpeechConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SynthesizeSpeechConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SynthesizeSpeechConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SynthesizeSpeechConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SynthesizeSpeechConfig> parser()
Returns
Type Description
Parser<SynthesizeSpeechConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public SynthesizeSpeechConfig getDefaultInstanceForType()
Returns
Type Description
SynthesizeSpeechConfig

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
Type Description
ProtocolStringList

A list containing the effectsProfileId.

getParserForType()

public Parser<SynthesizeSpeechConfig> getParserForType()
Returns
Type Description
Parser<SynthesizeSpeechConfig>
Overrides

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;

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()
Returns
Type Description
UnknownFieldSet
Overrides

getVoice()

public VoiceSelectionParams getVoice()

Optional. The desired voice of the synthesized audio.

.google.cloud.dialogflow.cx.v3.VoiceSelectionParams voice = 4;

Returns
Type Description
VoiceSelectionParams

The voice.

getVoiceOrBuilder()

public VoiceSelectionParamsOrBuilder getVoiceOrBuilder()

Optional. The desired voice of the synthesized audio.

.google.cloud.dialogflow.cx.v3.VoiceSelectionParams voice = 4;

Returns
Type Description
VoiceSelectionParamsOrBuilder

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.cx.v3.VoiceSelectionParams voice = 4;

Returns
Type Description
boolean

Whether the voice field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SynthesizeSpeechConfig.Builder newBuilderForType()
Returns
Type Description
SynthesizeSpeechConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SynthesizeSpeechConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SynthesizeSpeechConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public SynthesizeSpeechConfig.Builder toBuilder()
Returns
Type Description
SynthesizeSpeechConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides Exceptions
Type Description
IOException