ReplicatedVoiceConfig

@Serializable
data class ReplicatedVoiceConfig(val mimeType: String? = null, val voiceSampleAudio: ByteArray? = null, val consentAudio: ByteArray? = null, val voiceConsentSignature: VoiceConsentSignature? = null)

The configuration for the replicated voice to use.

Constructors

Link copied to clipboard
constructor(mimeType: String? = null, voiceSampleAudio: ByteArray? = null, consentAudio: ByteArray? = null, voiceConsentSignature: VoiceConsentSignature? = null)

Properties

Link copied to clipboard

Recorded consent verifying ownership of the voice. This represents 16-bit signed little-endian wav data, with a 24kHz sampling rate.

Link copied to clipboard
val mimeType: String? = null

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.

Link copied to clipboard

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.

Link copied to clipboard

The sample of the custom voice.