Class ReplicatedVoiceConfig.Builder
- Enclosing class:
- ReplicatedVoiceConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ReplicatedVoiceConfigbuild()Clears the value of consentAudio field.Clears the value of mimeType field.Clears the value of voiceConsentSignature field.Clears the value of voiceSampleAudio field.abstract ReplicatedVoiceConfig.BuilderconsentAudio(byte[] consentAudio) Setter for consentAudio.abstract ReplicatedVoiceConfig.BuilderSetter for mimeType.abstract ReplicatedVoiceConfig.BuildervoiceConsentSignature(VoiceConsentSignature voiceConsentSignature) Setter for voiceConsentSignature.voiceConsentSignature(VoiceConsentSignature.Builder voiceConsentSignatureBuilder) Setter for voiceConsentSignature builder.abstract ReplicatedVoiceConfig.BuildervoiceSampleAudio(byte[] voiceSampleAudio) Setter for voiceSampleAudio.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mimeType
Setter for mimeType.mimeType: The mimetype of the voice sample. The only currently supported value is `audio/wav`. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate.
-
clearMimeType
Clears the value of mimeType field. -
voiceSampleAudio
Setter for voiceSampleAudio.voiceSampleAudio: The sample of the custom voice.
-
clearVoiceSampleAudio
Clears the value of voiceSampleAudio field. -
consentAudio
Setter for consentAudio.consentAudio: Recorded consent verifying ownership of the voice. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate.
-
clearConsentAudio
Clears the value of consentAudio field. -
voiceConsentSignature
public abstract ReplicatedVoiceConfig.Builder voiceConsentSignature(VoiceConsentSignature voiceConsentSignature) Setter for voiceConsentSignature.voiceConsentSignature: Signature of a previously verified consent audio. This should be populated with a signature generated by the server for a previous request containing the consent_audio field. When provided, the signature is verified instead of the consent_audio field to reduce latency. Requests will fail if the signature is invalid or expired.
-
voiceConsentSignature
@CanIgnoreReturnValue public ReplicatedVoiceConfig.Builder voiceConsentSignature(VoiceConsentSignature.Builder voiceConsentSignatureBuilder) Setter for voiceConsentSignature builder.voiceConsentSignature: Signature of a previously verified consent audio. This should be populated with a signature generated by the server for a previous request containing the consent_audio field. When provided, the signature is verified instead of the consent_audio field to reduce latency. Requests will fail if the signature is invalid or expired.
-
clearVoiceConsentSignature
Clears the value of voiceConsentSignature field. -
build
-