Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jayeshp19 committed Dec 25, 2024
1 parent 94ac7e8 commit e7529f0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .changeset/gorgeous-parrots-doubt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
"livekit-plugins-assemblyai": patch
"livekit-plugins-elevenlabs": patch
"livekit-plugins-cartesia": patch
"livekit-plugins-deepgram": patch
"livekit-plugins-google": patch
"livekit-plugins-openai": patch
"livekit-plugins-playai": patch
"livekit-plugins-azure": patch
"livekit-agents": patch
---

Support Multisegments for TTS input
1 change: 0 additions & 1 deletion livekit-agents/livekit/agents/tts/tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ def synthesize(
text: str,
*,
conn_options: APIConnectOptions = DEFAULT_API_CONNECT_OPTIONS,
segment_id: str | None = None,
) -> ChunkedStream: ...

def stream(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ async def _connection_timeout():
wait_reconnect_task = asyncio.create_task(self._reconnect_event.wait())
connection_timeout_task = asyncio.create_task(_connection_timeout())
try:
done, pending = await asyncio.wait(
done, _ = await asyncio.wait(
[
asyncio.gather(*tasks),
wait_reconnect_task,
Expand All @@ -316,7 +316,10 @@ async def _connection_timeout():

# propagate exceptions from completed tasks
for task in done:
if task != wait_reconnect_task:
if (
task != wait_reconnect_task
and task != connection_timeout_task
):
task.result()

if wait_reconnect_task not in done:
Expand Down

0 comments on commit e7529f0

Please sign in to comment.