liumaolin commited on
Commit
87a7384
·
1 Parent(s): 757f3be

Comment out logging statements in `audio_player.py` to disable performance logs and streamline runtime output.

Browse files
src/VoiceDialogue/services/audio/audio_player.py CHANGED
@@ -57,14 +57,14 @@ class AudioStreamPlayer(BaseThread):
57
  if answer_id not in voice_state_manager.waiting_second_answer_mapping:
58
  continue
59
 
60
- now = time.time()
61
- print(
62
- f'整体耗时: {(now - voice_task.send_time):.2f}\n'
63
- f'Whisper/FunASR 耗时: {(voice_task.whisper_end_time - voice_task.whisper_start_time):.2f}\n'
64
- f'LLM 耗时: {(voice_task.llm_end_time - voice_task.llm_start_time):.2f}\n'
65
- f'TTS generate sentence: {voice_task.answer_sentence}\n'
66
- f'TTS 耗时: {(voice_task.tts_end_time - voice_task.tts_start_time):.2f}\n\n'
67
- )
68
 
69
  self.update_chat_history(voice_task)
70
 
 
57
  if answer_id not in voice_state_manager.waiting_second_answer_mapping:
58
  continue
59
 
60
+ # now = time.time()
61
+ # print(
62
+ # f'整体耗时: {(now - voice_task.send_time):.2f}\n'
63
+ # f'Whisper/FunASR 耗时: {(voice_task.whisper_end_time - voice_task.whisper_start_time):.2f}\n'
64
+ # f'LLM 耗时: {(voice_task.llm_end_time - voice_task.llm_start_time):.2f}\n'
65
+ # f'TTS generate sentence: {voice_task.answer_sentence}\n'
66
+ # f'TTS 耗时: {(voice_task.tts_end_time - voice_task.tts_start_time):.2f}\n\n'
67
+ # )
68
 
69
  self.update_chat_history(voice_task)
70