sohojoe commited on
Commit
814feb3
1 Parent(s): 207e993

fix: was skipping sending some lines to speech

Browse files
Files changed (1) hide show
  1. respond_to_prompt_async.py +2 -2
respond_to_prompt_async.py CHANGED
@@ -100,9 +100,9 @@ class RespondToPromptAsync:
100
  while True:
101
  for i, task in enumerate(self.sentence_tasks):
102
  # Skip this task/queue pair if task completed
103
- if task.done():
104
- continue
105
  queue = self.sentence_queues[i]
 
 
106
  while not queue.empty():
107
  chunk_response = await queue.get()
108
  audio_chunk_ref = chunk_response['tts_raw_chunk_ref']
 
100
  while True:
101
  for i, task in enumerate(self.sentence_tasks):
102
  # Skip this task/queue pair if task completed
 
 
103
  queue = self.sentence_queues[i]
104
+ if task.done() and queue.empty():
105
+ continue
106
  while not queue.empty():
107
  chunk_response = await queue.get()
108
  audio_chunk_ref = chunk_response['tts_raw_chunk_ref']