File size: 397 Bytes
8dae870
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
from core.cloner import KokoClone

# Initialize the cloner (Auto-downloads models if missing, and auto-detects CPU/GPU)
cloner = KokoClone()

# Generate your cloned audio!
cloner.generate(
    text="Welcome to KokoClone! This is incredibly easy to use.",
    lang="en",
    reference_audio="ss.wav", # Replace with your actual reference audio file
    output_path="english_output.wav"
)