Skip to content

Commit 18d89f5

Browse files
AngeloGiaccolouisjoecodes
authored andcommitted
fix: bump timeout for fairer cpu usage
1e-4 is probably unreasonable
1 parent bd29816 commit 18d89f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/elevenlabs/realtime_tts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def get_text() -> typing.Iterator[str]:
123123
data = dict(text=text_chunk, try_trigger_generation=True)
124124
socket.send(json.dumps(data))
125125
try:
126-
data = json.loads(socket.recv(1e-4))
126+
data = json.loads(socket.recv(1e-2))
127127
if "audio" in data and data["audio"]:
128128
yield base64.b64decode(data["audio"]) # type: ignore
129129
except TimeoutError:

0 commit comments

Comments
 (0)