Fix XTTS loader compatibility and add default voice

This commit is contained in:
2025-12-09 11:37:55 +01:00
parent 8cd91b6f22
commit ca3e66f17a
14 changed files with 483 additions and 128 deletions

View File

@ -8,6 +8,7 @@ class SpeechRequest(BaseModel):
model: str
input: str
voice: str = "auto"
language: str | None = None
format: str = "wav"
voice_sample_url: str | None = None
voice_sample_base64: str | None = None

View File

@ -12,7 +12,7 @@ def push_job(data: dict) -> str:
r.lpush(QUEUE, json.dumps(data))
return job_id
def await_result(job_id: str, timeout=30):
def await_result(job_id: str, timeout=120):
key = f"{RESULT}:{job_id}"
start=time.time()
while time.time()-start < timeout:

1
gateway/port.txt Normal file
View File

@ -0,0 +1 @@
8003