Skip to content

Allows issuing voice commands in Windows via AutoHotKey scripts generated by ChatGPT.

License

Notifications You must be signed in to change notification settings

mxro/autohotkey-chatgpt-voice

Repository files navigation

Autohotkey ChatGPT

Use your voice to control Windows 📢

You say Windows does
Open Firefox Opens Firefox
Search for cupcake recipes Opens browser and searches for 'Cupcake Recipes'
Tell me the first 20 digits of Pi Shows a window with the 20 first digits of Pi
Paste a poem Pastes a poem

⚠ WARNING ⚠ This is an experimental application. ChatGPT can end up doing random stuff. So please use with caution!

How does this work?

Check out my blog post: TBD

Install

  • Download and install AutoHotKey V1 from autohotkey.com
  • Download AutoHotKey-ChatGPT.zip from the Releases for the latest release.
  • Extract AutoHotKey-ChatGPT.zip
  • Edit config.json from the extracted files. Provide your Open API Key for the property OpenapiKey.
{
  "OpenapiKey": "",
  "AutoHotKeyExec": ".\\bin\\autohotkey-1.1.37.01\\AutoHotkeyU64.exe"
}

Usage

  • Double click on watch.ahk from the extracted files
  • Press F8
  • Speak into your microphone what you would like to do
  • Press F8
  • Wait for Open AI and AutoHotKey to do their magic

Customise

Trigger Hotkey

The hotkey to start/stop a voice command is defined in watch.ahk. You can replace the following with a hotkey of your choice:

F8::

Prompt

Among the extracted files, there is a prompt.txt. You can edit this to customise it to yor own needs.

For instance, the current prompt file defaults to using the DuckDuckGo search engine. You can change this easily to any search engine you like, by modifying the following line in prompt.txt:

Unless otherwise specified, assume:
...
- the default search engine is DuckDuckGo
...

Prior Art

Develop

Build Source Code

task build

Package Executable

task package

Run Locally

go run ./cmd/whisper-autohotkey/.

About

Allows issuing voice commands in Windows via AutoHotKey scripts generated by ChatGPT.

Resources

License

Stars

Watchers

Forks

Packages

No packages published