public static final class EvaluationPersona.SpeechConfig.Builder extends GeneratedMessage.Builder<EvaluationPersona.SpeechConfig.Builder> implements EvaluationPersona.SpeechConfigOrBuilderConfiguration for Text-to-Speech generation.
Protobuf type google.cloud.ces.v1beta.EvaluationPersona.SpeechConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > EvaluationPersona.SpeechConfig.BuilderImplements
EvaluationPersona.SpeechConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public EvaluationPersona.SpeechConfig build()| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.SpeechConfig |
|
buildPartial()
public EvaluationPersona.SpeechConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.SpeechConfig |
|
clear()
public EvaluationPersona.SpeechConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.SpeechConfig.Builder |
|
clearEnvironment()
public EvaluationPersona.SpeechConfig.Builder clearEnvironment()Optional. The simulated audio environment.
.google.cloud.ces.v1beta.EvaluationPersona.SpeechConfig.BackgroundEnvironment environment = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.SpeechConfig.Builder |
This builder for chaining. |
clearSpeakingRate()
public EvaluationPersona.SpeechConfig.Builder clearSpeakingRate()Optional. The speaking rate. 1.0 is normal. Lower is slower (e.g., 0.8), higher is faster (e.g., 1.5). Useful for testing how the agent handles fast talkers.
double speaking_rate = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.SpeechConfig.Builder |
This builder for chaining. |
clearVoiceId()
public EvaluationPersona.SpeechConfig.Builder clearVoiceId()Optional. The specific voice identifier/accent to use. Example: "en-US-Wavenet-D" or "en-GB-Standard-A"
string voice_id = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.SpeechConfig.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public EvaluationPersona.SpeechConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.SpeechConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEnvironment()
public EvaluationPersona.SpeechConfig.BackgroundEnvironment getEnvironment()Optional. The simulated audio environment.
.google.cloud.ces.v1beta.EvaluationPersona.SpeechConfig.BackgroundEnvironment environment = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.SpeechConfig.BackgroundEnvironment |
The environment. |
getEnvironmentValue()
public int getEnvironmentValue()Optional. The simulated audio environment.
.google.cloud.ces.v1beta.EvaluationPersona.SpeechConfig.BackgroundEnvironment environment = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for environment. |
getSpeakingRate()
public double getSpeakingRate()Optional. The speaking rate. 1.0 is normal. Lower is slower (e.g., 0.8), higher is faster (e.g., 1.5). Useful for testing how the agent handles fast talkers.
double speaking_rate = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
double |
The speakingRate. |
getVoiceId()
public String getVoiceId()Optional. The specific voice identifier/accent to use. Example: "en-US-Wavenet-D" or "en-GB-Standard-A"
string voice_id = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The voiceId. |
getVoiceIdBytes()
public ByteString getVoiceIdBytes()Optional. The specific voice identifier/accent to use. Example: "en-US-Wavenet-D" or "en-GB-Standard-A"
string voice_id = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for voiceId. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(EvaluationPersona.SpeechConfig other)
public EvaluationPersona.SpeechConfig.Builder mergeFrom(EvaluationPersona.SpeechConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
EvaluationPersona.SpeechConfig |
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.SpeechConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public EvaluationPersona.SpeechConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.SpeechConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public EvaluationPersona.SpeechConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.SpeechConfig.Builder |
|
setEnvironment(EvaluationPersona.SpeechConfig.BackgroundEnvironment value)
public EvaluationPersona.SpeechConfig.Builder setEnvironment(EvaluationPersona.SpeechConfig.BackgroundEnvironment value)Optional. The simulated audio environment.
.google.cloud.ces.v1beta.EvaluationPersona.SpeechConfig.BackgroundEnvironment environment = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
EvaluationPersona.SpeechConfig.BackgroundEnvironmentThe environment to set. |
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.SpeechConfig.Builder |
This builder for chaining. |
setEnvironmentValue(int value)
public EvaluationPersona.SpeechConfig.Builder setEnvironmentValue(int value)Optional. The simulated audio environment.
.google.cloud.ces.v1beta.EvaluationPersona.SpeechConfig.BackgroundEnvironment environment = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for environment to set. |
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.SpeechConfig.Builder |
This builder for chaining. |
setSpeakingRate(double value)
public EvaluationPersona.SpeechConfig.Builder setSpeakingRate(double value)Optional. The speaking rate. 1.0 is normal. Lower is slower (e.g., 0.8), higher is faster (e.g., 1.5). Useful for testing how the agent handles fast talkers.
double speaking_rate = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
doubleThe speakingRate to set. |
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.SpeechConfig.Builder |
This builder for chaining. |
setVoiceId(String value)
public EvaluationPersona.SpeechConfig.Builder setVoiceId(String value)Optional. The specific voice identifier/accent to use. Example: "en-US-Wavenet-D" or "en-GB-Standard-A"
string voice_id = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe voiceId to set. |
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.SpeechConfig.Builder |
This builder for chaining. |
setVoiceIdBytes(ByteString value)
public EvaluationPersona.SpeechConfig.Builder setVoiceIdBytes(ByteString value)Optional. The specific voice identifier/accent to use. Example: "en-US-Wavenet-D" or "en-GB-Standard-A"
string voice_id = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for voiceId to set. |
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.SpeechConfig.Builder |
This builder for chaining. |