Interface ReplicatedVoiceConfig

The configuration for the replicated voice to use.

interface ReplicatedVoiceConfig {
    consentAudio?: string;
    mimeType?: string;
    voiceConsentSignature?: VoiceConsentSignature;
    voiceSampleAudio?: string;
}

Properties

consentAudio?: string

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

Encoded as base64 string.

mimeType?: string

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.

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.

voiceSampleAudio?: string

The sample of the custom voice.

Encoded as base64 string.