This asks OpenAI to transcribe your voice, then asks ChatGPT to get a command from that and then uses AppleScript to try to do it. My hope is that work in this direction will continue to help support accessibility for those with different vision.
example-chrome.mp4
Chrome, "Hacker News"
example-textedit.mp4
Text Edit, "Hello World"
This could severely damage your computer and is more or less just a 'show and tell' of what is possible. That said, this prompts before running anything.
Additionally, simple work on boundaries could make this safe and production ready quite quickly.
-
Get homebrew
-
Clone this
git clone https://github.com/realrasengan/blind.sh
- Install sox, lame and jq
brew install sox lame jq
- Install an Automator
-
Open Automator
-
Create a new Application
-
Go to Run Shell Script
-
Put:
/Path/to/blind.sh/blind.sh
-
Save
-
Move to Applications Folder
Don't forget to delete your OpenAI api key before uploading on github, not like me ;) (it's since been deleted)
MIT Licensed.