Match voice conversion pitch to reference with optional CPU correction

This commit is contained in:
Mikei386 committed 2026-10-19 14:45:44 +02:00
1 parent 04cd46e3e6
commit 369cb2ffe5
16 files changed
+408 -19

No files matched your search

+2 -2
View File
@@ -388,10 +388,10 @@ class APIHandler(BaseHTTPRequestHandler):
if parsed.path=='/v1/audio/voice-conversions' and self.command=='POST':
from humaneness import read_upload
try:
model,source,reference=read_upload(self,field='model');p=ep.find_profile(model,'voice')
model,source,reference,options=read_upload(self,field='model');p=ep.find_profile(model,'voice')
from humaneness_runtime import supported
if not supported(p.get('model')):raise ValueError('Kein Voice-Conversion-Profil.')
job=ep.humaneness.start(p['id'],source,reference,wait=True);deadline=time.monotonic()+610
job=ep.humaneness.start(p['id'],source,reference,wait=True,**options);deadline=time.monotonic()+800
while time.monotonic()<deadline:
status=ep.humaneness.status()['job']
if not status or status['id']!=job['id']:raise ValueError('Auftragsstatus ersetzt.')