This commit is contained in:
Saifeddine ALOUI 2024-01-15 01:18:29 +01:00
parent 6c2199b5f3
commit 0e38441616

View File

@ -122,7 +122,6 @@ class AudioRecorder:
self.audio_stream.close() self.audio_stream.close()
write(self.filename, self.sample_rate, self.buffer) write(self.filename, self.sample_rate, self.buffer)
self.lollmsCom.info(f"Saved to {self.filename}") self.lollmsCom.info(f"Saved to {self.filename}")
time.sleep(2)
self.lollmsCom.info(f"Transcribing ... ") self.lollmsCom.info(f"Transcribing ... ")
result = self.whisper_model.transcribe(str(self.filename)) result = self.whisper_model.transcribe(str(self.filename))
with open(self.filename.replace("wav","txt"), "w") as f: with open(self.filename.replace("wav","txt"), "w") as f: