Cloned voice sample

class Sample(sampleData, parentVoice: Voice)

Represents a sample used for a cloned voice.

property metadata

The full metadata associated with the sample.

property parentVoice

The Voice object associated with this sample.

get_audio_bytes() bytes

Retrieves the audio bytes associated with this object. .. note:: The audio will be cached so that it’s not downloaded every time this is called.

Returns:

a bytes object containing the audio in whatever format it was originally uploaded in.

Return type:

bytes

delete()

Deletes the sample.

class ElevenLabsSample(*args, **kwargs)