Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backend/routers/transcribe_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ async def transcript_consume():
nonlocal transcript_ws
while websocket_active or len(segment_buffers) > 0:
await asyncio.sleep(1)
if transcript_ws:
if transcript_ws and len(segment_buffers) > 0:
try:
# 100|data
data = bytearray()
Expand Down Expand Up @@ -346,7 +346,7 @@ async def audio_bytes_consume():
nonlocal audio_bytes_ws
while websocket_active or len(audio_buffers) > 0:
await asyncio.sleep(1)
if audio_bytes_ws:
if audio_bytes_ws and len(audio_buffers) > 0:
try:
# 101|data
data = bytearray()
Expand Down