Skip to main content
Create your own custom voice clones from audio samples. Custom voices are passed to TTS using the voice_id parameter (not voice).

Create a Custom Voice

Upload an audio file to create a new voice clone. A minimum of 10 seconds of clear audio is recommended for best results.
import json
import gradium

client = gradium.client.GradiumClient()

voice = await gradium.voices.create(
    client,
    audio_file="my_voice_sample.wav",
    name="My Custom Voice",
    description="A voice created from my recording",
    start_s=0.0,
)
print(json.dumps(voice, indent=2))

Parameters

ParameterTypeRequiredDescription
audio_filestringYesPath to the audio file (WAV, MP3, etc.)
namestringYesA name for the voice
descriptionstringNoA description of the voice
start_sfloatNoStart time in seconds to begin sampling from the audio file