public final class SynthesizeSpeechConfig extends GeneratedMessage implements SynthesizeSpeechConfigOrBuilder
Configuration for how the agent response should be synthesized.
Protobuf type google.cloud.ces.v1beta.SynthesizeSpeechConfig
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
INSTRUCTION_FIELD_NUMBER
public static final int INSTRUCTION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
MODEL_FIELD_NUMBER
public static final int MODEL_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 |
|
VOICE_SAMPLE_GCS_URI_FIELD_NUMBER
public static final int VOICE_SAMPLE_GCS_URI_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()
getInstruction()
public String getInstruction()
Optional. The instruction used to synthesize speech when using a generative
model.
string instruction = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The instruction.
|
getInstructionBytes()
public ByteString getInstructionBytes()
Optional. The instruction used to synthesize speech when using a generative
model.
string instruction = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for instruction.
|
getModel()
Optional. The model used to synthesize audio.
Currently supported values:
- "gemini-3.1-flash-tts-preview"
If empty, Chirp3-HD is used.
string model = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The model.
|
getModelBytes()
public ByteString getModelBytes()
Optional. The model used to synthesize audio.
Currently supported values:
- "gemini-3.1-flash-tts-preview"
If empty, Chirp3-HD is used.
string model = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for model.
|
getParserForType()
public Parser<SynthesizeSpeechConfig> getParserForType()
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()
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.
|
getVoiceSampleGcsUri()
public String getVoiceSampleGcsUri()
Optional. The Cloud Storage URI to the audio sample for voice cloning. The
audio sample should be a mono-channel, 24kHz WAV file.
Note: Please make sure the CES service agent
service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com has
storage.objects.get permission to the Cloud Storage object.
string voice_sample_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The voiceSampleGcsUri.
|
getVoiceSampleGcsUriBytes()
public ByteString getVoiceSampleGcsUriBytes()
Optional. The Cloud Storage URI to the audio sample for voice cloning. The
audio sample should be a mono-channel, 24kHz WAV file.
Note: Please make sure the CES service agent
service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com has
storage.objects.get permission to the Cloud Storage object.
string voice_sample_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for voiceSampleGcsUri.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public SynthesizeSpeechConfig.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected SynthesizeSpeechConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public SynthesizeSpeechConfig.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides