Conversation
|
Can you create a video of this working and show it working end-to-end? |
|
Here's the video: https://youtu.be/2o-5Pwn4Njg |
|
At the end of the video you deleted placeholder text and then you said placeholder text it should've worked. It should've literally said placeholder text isn't that right? Also, I would like to see a test of speaking some words before the placeholder text then saying the placeholder text and then continuing on |
|
Yeah, it should’ve worked, but I’ve noticed that Freeflow tends to struggle with short phrases. That’s a bug, regardless of the voice macro feature. In this case, it was using substring matching, which caused your scenario to fail. I’ve patched it so voice macros now trigger only on exact matches and added the fix to the PR. |
|
Thank you for this awesome PR! |
|
Thanks! Glad it helps! |
This pull request adds support for user-defined "Voice Macros" that allow users to bypass post-processing and immediately paste predefined text by speaking a custom voice command. The implementation includes persistent storage, UI for managing macros, and logic for detecting and applying macros during transcription.
Voice Macro Feature Implementation:
VoiceMacroandPrecomputedMacrotypes to represent user-defined macros and their normalized forms, and integrated them intoAppStatefor storage and lookup. Voice macros are persisted inUserDefaultsand precomputed for efficient matching.AppStateto normalize transcripts and efficiently match them against user-defined macros, bypassing post-processing when a macro is triggered.Settings UI Enhancements:
VoiceMacrosSettingsViewandVoiceMacroEditorViewfor users to add, edit, and delete voice macros in the settings UI.Persistence:
UserDefaults), ensuring they persist across app launches.These changes collectively enable users to define custom voice commands that paste predefined text, improving workflow efficiency and customization.