fixed bug

This commit is contained in:
Saifeddine ALOUI 2024-05-20 13:17:08 +02:00
parent b6530a6403
commit cb090d32fd

View File

@ -354,7 +354,7 @@ class RTCom:
# self.transcription_signal.update_status.emit("Transcribing")
self.lc.info("Transcribing")
ASCIIColors.green("<<TRANSCRIBING>>")
result = self.lc.tts.transcribe(str(Path(self.logs_folder)/filename))
result = self.lc.stt.transcribe(str(Path(self.logs_folder)/filename))
transcription_fn = str(Path(self.logs_folder)/filename) + ".txt"
with open(transcription_fn, "w", encoding="utf-8") as f:
f.write(result["text"])