Package-level declarations

Types

Link copied to clipboard

Builder for a prompt-generated voice request.

Link copied to clipboard

Builder for a consented sample-based voice request.

Link copied to clipboard
@Serializable
data class VoiceConsent(val id: String, val createdAt: Long, val language: String, val name: String, val objectType: String = "audio.voice_consent")

Recording authorizing creation of voices from the same speaker's audio samples.

Link copied to clipboard
@Serializable
data class VoiceConsentPage(val data: List<VoiceConsent>, val hasMore: Boolean, val firstId: String? = null, val lastId: String? = null, val objectType: String = "list") : List<VoiceConsent>

A cursor page of consent recordings, retaining the response envelope.

Link copied to clipboard
data class VoiceConsentRequest(val name: String, val language: String, val recording: FileSource, val mediaType: String? = null)

Uploads a consent recording containing the speaker's required consent phrase.

Link copied to clipboard

Builder for a consent recording upload.

Link copied to clipboard
@Serializable
data class VoiceConsentUpdateRequest(val name: String)

Updates the label of an existing consent recording without replacing its audio or language.

Link copied to clipboard

Builder for a consent label update.

Link copied to clipboard
sealed interface VoiceCreateRequest

Creates a voice from either a consented recording or a text description.

Link copied to clipboard
@Serializable
data class VoiceResource(val id: String, val createdAt: Long, val name: String, val type: String, val prompt: String? = null, val objectType: String = "audio.voice")

A saved custom voice. Prompt-generated voices are supported only by Live.

Functions

Link copied to clipboard

Creates a prompt-generated voice request for Live.

Link copied to clipboard

Creates a sample-based voice request.

Link copied to clipboard

Creates a consent recording upload request.

Link copied to clipboard

Creates a consent label update request.