liumaolin commited on
Commit
c1b24fd
·
1 Parent(s): fd3c30a

Remove unused conditional logic for second answer handling in `player.py` and `generator.py`

Browse files
src/voice_dialogue/services/audio/generator.py CHANGED
@@ -76,9 +76,6 @@ class TTSAudioGenerator(BaseThread):
76
  if answer_id in dropped_audio_cache:
77
  continue
78
 
79
- if voice_task.answer_index == 1:
80
- voice_state_manager.waiting_second_answer_mapping[answer_id] = answer_id
81
-
82
  if voice_task.id != voice_state_manager.interrupt_task_id:
83
  continue
84
 
 
76
  if answer_id in dropped_audio_cache:
77
  continue
78
 
 
 
 
79
  if voice_task.id != voice_state_manager.interrupt_task_id:
80
  continue
81
 
src/voice_dialogue/services/audio/player.py CHANGED
@@ -56,10 +56,6 @@ class AudioStreamPlayer(BaseThread):
56
  if not silence_over_threshold_event.is_set():
57
  continue
58
 
59
- if voice_task.answer_index == 0:
60
- if answer_id not in voice_state_manager.waiting_second_answer_mapping:
61
- continue
62
-
63
  if self.websocket_message_queue:
64
  self.websocket_message_queue.put_nowait(
65
  AnswerDisplayMessage(
 
56
  if not silence_over_threshold_event.is_set():
57
  continue
58
 
 
 
 
 
59
  if self.websocket_message_queue:
60
  self.websocket_message_queue.put_nowait(
61
  AnswerDisplayMessage(