Skip to content

Commit 6fb681b

Browse files
authored
update pool configuration for deepgram and cartesia (#1605)
1 parent af36ef0 commit 6fb681b

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.changeset/brave-sheep-taste.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"livekit-plugins-cartesia": patch
3+
"livekit-plugins-deepgram": patch
4+
---
5+
6+
update pool configuration for deepgram and cartesia

livekit-plugins/livekit-plugins-cartesia/livekit/plugins/cartesia/tts.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ def __init__(
127127
self._pool = utils.ConnectionPool[aiohttp.ClientWebSocketResponse](
128128
connect_cb=self._connect_ws,
129129
close_cb=self._close_ws,
130+
max_session_duration=300,
131+
mark_refreshed_on_get=True,
130132
)
131133
self._streams = weakref.WeakSet[SynthesizeStream]()
132134

livekit-plugins/livekit-plugins-deepgram/livekit/plugins/deepgram/tts.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def __init__(
8686
connect_cb=self._connect_ws,
8787
close_cb=self._close_ws,
8888
max_session_duration=3600, # 1 hour
89+
mark_refreshed_on_get=False,
8990
)
9091

9192
async def _connect_ws(self) -> aiohttp.ClientWebSocketResponse:

0 commit comments

Comments
 (0)