From abdfeed873a7336e0f8de722656395dcd02d55a3 Mon Sep 17 00:00:00 2001 From: AnyaCoder Date: Mon, 18 Nov 2024 15:18:38 +0800 Subject: [PATCH] Ver 1.4.5: Fix cancel recording --- fish/chat.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fish/chat.py b/fish/chat.py index 45f3f04..9a25e85 100644 --- a/fish/chat.py +++ b/fish/chat.py @@ -664,7 +664,8 @@ def cancel_recording(self): self.async_record_runner.cancel() self.async_record_runner = None logger.info("cancel recording") - os.remove(self.temp_wavfile) # Delete the temporary audio file + # os.remove(self.temp_wavfile) # Delete the temporary audio file + self.audio_files.append(self.temp_wavfile) self.voice_mode_enabled = False self.cancel_button.setVisible(False) # Hide cancel button self.voice_mode_button.setText("🎤") # Reset the voice mode button