sohojoe commited on
Commit
610cc37
1 Parent(s): da9d44b

fix: potential bug in SpeechToSpeakerActor

Browse files
Files changed (1) hide show
  1. respond_to_prompt_actor.py +0 -2
respond_to_prompt_actor.py CHANGED
@@ -65,13 +65,11 @@ class SpeechToSpeakerActor:
65
  load_dotenv()
66
  self.input_queue = input_queue
67
  self.speaker_service = LocalSpeakerService()
68
- self.chat_service = ChatService(voice_id=voice_id)
69
 
70
  async def run(self):
71
  while True:
72
  audio_chunk = await self.input_queue.get_async()
73
  # print (f"Got audio chunk {len(audio_chunk)}")
74
- self.chat_service.enqueue_speech_bytes_to_play([audio_chunk])
75
  self.speaker_service.add_audio_stream([audio_chunk])
76
 
77
  async def cancel(self):
 
65
  load_dotenv()
66
  self.input_queue = input_queue
67
  self.speaker_service = LocalSpeakerService()
 
68
 
69
  async def run(self):
70
  while True:
71
  audio_chunk = await self.input_queue.get_async()
72
  # print (f"Got audio chunk {len(audio_chunk)}")
 
73
  self.speaker_service.add_audio_stream([audio_chunk])
74
 
75
  async def cancel(self):