mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-24 23:06:50 +00:00
fix
This commit is contained in:
parent
6c2199b5f3
commit
0e38441616
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user