Fix: extend timeout for style_bert_vits2.nlp.japanese.pyopenjtalk_worker.worker_client

ref: https://github.com/litagin02/Style-Bert-VITS2/pull/91
This commit is contained in:
tsukumi
2024-03-08 16:44:56 +00:00
parent 6b19eac61e
commit b9e486e72a

View File

@@ -11,8 +11,8 @@ class WorkerClient:
def __init__(self, port: int) -> None: def __init__(self, port: int) -> None:
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# 5: timeout # 60: timeout
sock.settimeout(5) sock.settimeout(60)
sock.connect((socket.gethostname(), port)) sock.connect((socket.gethostname(), port))
self.sock = sock self.sock = sock