diff --git a/README.md b/README.md index 7b2693d..d9b4f98 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ Record your local audio and summarize it with whisper.cpp and llama.cpp! Open source, local on-prem transcription and summarization! + + ## Installation ``` diff --git a/headphones.png b/headphones.png new file mode 100644 index 0000000..cd0b068 Binary files /dev/null and b/headphones.png differ diff --git a/meetings.py b/meetings.py index 8a7668c..c9b393e 100644 --- a/meetings.py +++ b/meetings.py @@ -4,23 +4,30 @@ import subprocess import pyaudio import wave import threading -from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QVBoxLayout, QInputDialog +from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QVBoxLayout, QHBoxLayout, QInputDialog, QLabel +from PyQt5.QtGui import QIcon, QPixmap class RecordingApp(QWidget): def __init__(self): super().__init__() - self.initUI() + self.recording_pixmap = QPixmap("recording.png") + self.not_recording_pixmap = QPixmap("notrecording.png") self.is_recording = False self.audio_thread = None self.stream = None self.p = None self.wf = None - + self.initUI() + def initUI(self): self.setWindowTitle('Meeting Recorder') self.setGeometry(500, 500, 500, 150) - layout = QVBoxLayout() + layout = QHBoxLayout() + + self.status_label = QLabel(self) + self.status_label.setPixmap(self.not_recording_pixmap) + layout.addWidget(self.status_label) self.record_button = QPushButton('Record', self) self.record_button.clicked.connect(self.toggle_recording) @@ -47,6 +54,7 @@ class RecordingApp(QWidget): if ok and filename: self.is_recording = True self.record_button.setText('Stop Recording') + self.status_label.setPixmap(self.recording_pixmap) self.audio_thread = threading.Thread(target=self.record_audio, args=(filename,)) self.audio_thread.start() @@ -54,6 +62,7 @@ class RecordingApp(QWidget): if self.is_recording: self.is_recording = False self.record_button.setText('Record') + self.status_label.setPixmap(self.not_recording_pixmap) if self.audio_thread: self.audio_thread.join() if self.stream: @@ -114,6 +123,7 @@ class RecordingApp(QWidget): if __name__ == '__main__': app = QApplication(sys.argv) + app.setWindowIcon(QIcon("headphones.png")) ex = RecordingApp() ex.show() sys.exit(app.exec_()) \ No newline at end of file diff --git a/notrecording.png b/notrecording.png new file mode 100644 index 0000000..8d66e32 Binary files /dev/null and b/notrecording.png differ diff --git a/recording.png b/recording.png new file mode 100644 index 0000000..9ff668e Binary files /dev/null and b/recording.png differ diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..23025a2 Binary files /dev/null and b/screenshot.png differ