public final class CustomVoiceSample extends GeneratedMessage implements CustomVoiceSampleOrBuilder
Configuration for a custom voice sample used for voice cloning.
Protobuf type google.cloud.ces.v1beta.CustomVoiceSample
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
CONSENT_AUDIO_GCS_URI_FIELD_NUMBER
public static final int CONSENT_AUDIO_GCS_URI_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PREVIEW_AUDIO_CONTENT_FIELD_NUMBER
public static final int PREVIEW_AUDIO_CONTENT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PREVIEW_TEXT_FIELD_NUMBER
public static final int PREVIEW_TEXT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
VOICE_INSTRUCTION_FIELD_NUMBER
public static final int VOICE_INSTRUCTION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
VOICE_INSTRUCTION_MODE_FIELD_NUMBER
public static final int VOICE_INSTRUCTION_MODE_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 |
|
WARNINGS_FIELD_NUMBER
public static final int WARNINGS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static CustomVoiceSample getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static CustomVoiceSample.Builder newBuilder()
newBuilder(CustomVoiceSample prototype)
public static CustomVoiceSample.Builder newBuilder(CustomVoiceSample prototype)
public static CustomVoiceSample parseDelimitedFrom(InputStream input)
public static CustomVoiceSample parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static CustomVoiceSample parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CustomVoiceSample parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static CustomVoiceSample parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CustomVoiceSample parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CustomVoiceSample parseFrom(CodedInputStream input)
public static CustomVoiceSample parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CustomVoiceSample parseFrom(InputStream input)
public static CustomVoiceSample parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static CustomVoiceSample parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CustomVoiceSample parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<CustomVoiceSample> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getConsentAudioGcsUri()
public String getConsentAudioGcsUri()
Optional. Consent audio for voice cloning.
string consent_audio_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The consentAudioGcsUri.
|
getConsentAudioGcsUriBytes()
public ByteString getConsentAudioGcsUriBytes()
Optional. Consent audio for voice cloning.
string consent_audio_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for consentAudioGcsUri.
|
getDefaultInstanceForType()
public CustomVoiceSample getDefaultInstanceForType()
getName()
Optional. The user-defined name for the custom voice sample.
string name = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
Optional. The user-defined name for the custom voice sample.
string name = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
public Parser<CustomVoiceSample> getParserForType()
Overrides
getPreviewAudioContent()
public ByteString getPreviewAudioContent()
Output only. Synthesized preview audio for custom voice, formatted as
canonical WAV (LINEAR16, 24kHz, 16-bit, mono).
bytes preview_audio_content = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
ByteString |
The previewAudioContent.
|
getPreviewText()
public String getPreviewText()
Optional. Text for synthesizing preview audio for custom voice.
string preview_text = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The previewText.
|
getPreviewTextBytes()
public ByteString getPreviewTextBytes()
Optional. Text for synthesizing preview audio for custom voice.
string preview_text = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for previewText.
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getVoiceInstruction()
public String getVoiceInstruction()
Optional. Natural language instructions for voice style, tone, pacing, or
pronunciation.
string voice_instruction = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The voiceInstruction.
|
getVoiceInstructionBytes()
public ByteString getVoiceInstructionBytes()
Optional. Natural language instructions for voice style, tone, pacing, or
pronunciation.
string voice_instruction = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for voiceInstruction.
|
getVoiceInstructionMode()
public CustomVoiceSample.VoiceInstructionMode getVoiceInstructionMode()
Optional. Instruction mode for the voice sample. If unspecified, defaults
to NO_INSTRUCTION.
.google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode voice_instruction_mode = 8 [(.google.api.field_behavior) = OPTIONAL];
getVoiceInstructionModeValue()
public int getVoiceInstructionModeValue()
Optional. Instruction mode for the voice sample. If unspecified, defaults
to NO_INSTRUCTION.
.google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode voice_instruction_mode = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for voiceInstructionMode.
|
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.
string voice_sample_gcs_uri = 2 [(.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.
string voice_sample_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for voiceSampleGcsUri.
|
getWarnings(int index)
public CustomVoiceSample.Warning getWarnings(int index)
Output only. Warning messages encountered during voice clone processing
(e.g. low audio level).
repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
|
getWarningsCount()
public int getWarningsCount()
Output only. Warning messages encountered during voice clone processing
(e.g. low audio level).
repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
|
getWarningsList()
public List<CustomVoiceSample.Warning> getWarningsList()
Output only. Warning messages encountered during voice clone processing
(e.g. low audio level).
repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getWarningsOrBuilder(int index)
public CustomVoiceSample.WarningOrBuilder getWarningsOrBuilder(int index)
Output only. Warning messages encountered during voice clone processing
(e.g. low audio level).
repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
|
getWarningsOrBuilderList()
public List<? extends CustomVoiceSample.WarningOrBuilder> getWarningsOrBuilderList()
Output only. Warning messages encountered during voice clone processing
(e.g. low audio level).
repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.ces.v1beta.CustomVoiceSample.WarningOrBuilder> |
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public CustomVoiceSample.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected CustomVoiceSample.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public CustomVoiceSample.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides