Repository navigation
feat(gui): integrate GUI launch with CLI and implement live audio transcription loop - #42
Closed
MrSpideyNihal wants to merge 9 commits into
Closed
MrSpideyNihal wants to merge 9 commits into
MrSpideyNihal wants to merge 9 commits into
Conversation
feat: Eisenhower Matrix dashboard main window
…o-to-task pipeline (#18)
…nscription loop - Replace the click command's GUI placeholder in src/taskify/cli/main.py with the actual instantiation and launch loop for MainWindow, DatabaseManager, and ExtractionScheduler. - Implement background thread transcription logic in MainWindow._start_recording and MainWindow._stop_recording: * Initialize the configured STTEngine and load model weights on start recording. * Start TranscriptWriter thread to persist transcribed chunks. * Spawn a daemon _transcribe_loop thread that reads audio chunks from AudioCapture queue, transcribes them, appends to UI transcript pane, and saves segment database records. - Refactor ests/unit/test_cli.py to mock MainWindow, DatabaseManager, and ExtractionScheduler during default invocation CLI tests. - Reformat codebase and imports with Ruff to align with standard styling guidelines. All 150 unit tests passed, ruff clean, mypy clean.
Owner
Author
|
Superseded: all changes from this branch have been merged into main directly. Closing as stale. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Integrates the actual CustomTkinter GUI window launch with the command-line interface (replacing the CLI placeholder), and implements the real-time background transcription thread and database persistence loop when recording audio.
What's Changed
src/taskify/cli/main.pyDatabaseManager.ExtractionSchedulerdaemon.MainWindowwindow.WM_DELETE_WINDOW) to stop background threads, flush database connections, and destroy the app.src/taskify/ui/main_window.pySTTEngineandTranscriptWriterinstances._transcribe_loopthread that fetches chunks from theAudioCapturequeue at high frequency, processes them through the STT engine, posts text updates to the live transcript pane thread-safely viaself.after(0, ...), and saves/flushesTranscriptSegmentsession records._stop_recordingto wait/join the transcription thread and shut down the writer.tests/unit/test_cli.pytest_default_invocationto mockDatabaseManager,ExtractionScheduler, andMainWindowto prevent spawning real GUI components and threads in test environments.Code Formatting
Test & Validation Results