Add Vosk Offline Speech‑to‑Text Integration to GreenProductive#3
Open
Lumb3 wants to merge 3 commits intoBtelgeuse:masterfrom
Open
Add Vosk Offline Speech‑to‑Text Integration to GreenProductive#3Lumb3 wants to merge 3 commits intoBtelgeuse:masterfrom
Lumb3 wants to merge 3 commits intoBtelgeuse:masterfrom
Conversation
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
This pull request introduces a new feature that allows users to add tasks using voice input instead of typing. The feature is powered by the Vosk offline speech‑to‑text model, enabling full functionality without requiring an internet connection.
Users can now click the microphone icon in the UI and simply speak their task, which will automatically populate the task input field.
What’s Included
1. New Backend Speech Service
backend/speech_service.pyA Python script that loads the Vosk model and streams microphone audio for transcription.
2. PyInstaller Build Configuration
speech_service.specUsed to package the Python script into a standalone binary so users do not need Python installed.
3. Binary Build Output (Ignored in Git)
build/anddist/foldersThese are generated by PyInstaller and are included in
.gitignore.The
dist/folder contains the compiled binary:This binary must be shipped with the application for speech recognition to work.
4. Electron Integration
main.jsupdated to:speech_servicebinary as a child processstartSpeechServicestopSpeechServiceonSpeechFinalonSpeechPartial5. UI Enhancements
Screenshot for reference:
Important Note for Reviewers
Because GitHub cannot store platform‑specific binaries, the
speech_servicebinary is not included in this PR.To test the feature locally:
OR
4. Download the prebuilt binary from test_branch → Releases and place it in the dist/ folder
Alternatively, we can discuss:
Why This Feature Matters