Class SynthesizeSpeechConfig (0.1.0)

public final class SynthesizeSpeechConfig extends GeneratedMessage implements SynthesizeSpeechConfigOrBuilder

Configuration for how the agent response should be synthesized.

Protobuf type google.cloud.ces.v1.SynthesizeSpeechConfig

Static Fields

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

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSpeakingRate()

public double getSpeakingRate()

Optional. The speaking rate/speed in the range [0.25, 2.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. Values outside of the range [0.25, 2.0] will return an error.

double speaking_rate = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
double

The speakingRate.

getVoice()

public String getVoice()

Optional. The name of the voice. If not set, the service will choose a voice based on the other parameters such as language_code.

For the list of available voices, please refer to Supported voices and languages from Cloud Text-to-Speech.

string voice = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The voice.

getVoiceBytes()

public ByteString getVoiceBytes()

Optional. The name of the voice. If not set, the service will choose a voice based on the other parameters such as language_code.

For the list of available voices, please refer to Supported voices and languages from Cloud Text-to-Speech.

string voice = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for voice.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.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(AbstractMessage.BuilderParent parent)

protected SynthesizeSpeechConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SynthesizeSpeechConfig.Builder
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