Fix XTTS loader compatibility and add default voice
This commit is contained in:
@ -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
|
||||
|
||||
@ -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
1
gateway/port.txt
Normal file
@ -0,0 +1 @@
|
||||
8003
|
||||
Reference in New Issue
Block a user