import soundfile as sf,numpy as np
from kokoro import KPipeline
p=KPipeline(lang_code='a')
for v,t in [('am_onyx','Every glass of water you have ever spilled was hiding in your air. Every single one.'),('am_eric','Wait, what? So my window is basically sweating because of me?')]:
    a=np.concatenate([x for _,_,x in p(t,voice=v)]);sf.write(f'G:/chatterbox/ref_{v}.wav',a,24000)
