Sample

data class Sample(val name: String, val audioSample: FileSource, val consent: String, val mediaType: String? = null) : VoiceCreateRequest

Creates a voice from an audio sample and an existing consent from the same speaker.

Constructors

Link copied to clipboard
constructor(name: String, audioSample: FileSource, consent: String, mediaType: String? = null)

Properties

Link copied to clipboard

Reference audio; uploaded without changing its bytes.

Link copied to clipboard

Existing consent recording identifier from the same project.

Link copied to clipboard
val mediaType: String? = null

Audio MIME type; inferred from the filename when omitted. Codec parameters are removed.

Link copied to clipboard
open override val name: String

Label for the saved voice.