Skip to content
sixfiguredev0Public

About

Press a key, talk, paste. Tiny Windows dictation app: Deepgram nova-3 with offline Whisper fallback, 2 MB idle.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

SayKey

Press a key, talk, paste. SayKey is a Windows dictation app. Press Ctrl+Alt+O to open the popup and start recording. Press it again to stop and review the transcript in the editable box.

SayKey demo: press Ctrl+Alt+O, talk, and the transcript is copied to the clipboard

Why

Dictation should be as quick as a keyboard shortcut. The tools I tried were paid, slow to open, or stopped working without internet. SayKey is built around three constraints:

Constraint How SayKey meets it
Fast Deepgram nova-3, with the HTTPS connection opened while you are still talking. Measured: about 1.4 s from stop to text for a 6.5 s clip.
Offline transcription If Deepgram can't be reached, SayKey uses Whisper when the selected model is installed.
Invisible when idle 0% CPU and a 2 MB working set while it waits for the hotkey.

Features

  • Global hotkey: Ctrl+Alt+O starts and stops recording from any app.
  • Copy and close: click Copy for the full edited transcript, or press Ctrl+C to copy a selection or the full text. Manual copy closes the popup. Optional auto-copy copies the result as soon as it's ready and leaves the popup open for review.
  • Optional ChatGPT cleanup: use the selected eligible ChatGPT account to lightly edit the transcript. The original stays available in the popup after successful cleanup.
  • Live waveform: a recording timer and waveform while you talk, and a sweep while it transcribes. SayKey transcribes the captured audio when a recording reaches five minutes.
  • Keyboard shortcuts in the popup: Ctrl+C copies everything (or just your selection), Ctrl+S saves a .txt to the Desktop, and Esc closes the popup (or discards a recording).
  • Settings: right-click the tray icon and choose Settings…. Use General for startup, auto-copy, and popup animations, Transcription for speech engines and languages, and Accounts for ChatGPT.
  • Popup transitions: the popup fades in and out, including after manual Copy. Turn off popup animations in General for immediate dismissal. SayKey follows the Windows Animation effects setting.
  • Accessibility: follows the Windows "Animation effects" setting, and the mic button is labelled for screen readers.

Install

Download (Windows 10/11, 64-bit)

  1. Download SayKey-<version>-windows-x64.zip from Releases and unzip it anywhere.
  2. Run SayKey.exe. A mic icon appears in the system tray.
  3. Right-click the tray icon and choose Set Deepgram API key…. You can get a key with free credits at console.deepgram.com.
  4. Optional: choose Download offline Whisper model (about 480 MB) so the offline fallback works.

Without a Deepgram key, SayKey uses offline Whisper only.

ChatGPT cleanup

Open the tray's Accounts menu and choose Continue with ChatGPT. Complete browser sign-in and allow ChatGPT plan usage. You can connect more than one account and choose which to use for the next recording. Enable cleanup in the tray when you want it. Cleanup uses the selected account's eligible allowance and falls back to the original transcript if unavailable. See OpenAI's plan-usage guide.

From source

Requires Python 3.14 (64-bit).

git clone https://github.com/sixfiguredev0/SayKey.git
cd SayKey
python -m venv .venv
.venv\Scripts\python -m pip install -r requirements.txt
.venv\Scripts\python SayKey.pyw --prepare   # downloads the Whisper model
.\SayKey.cmd

How it works

flowchart LR
    K[Ctrl+Alt+O] --> P[Popup opens and recording starts]
    P --> W[Background: open a connection to Deepgram]
    W -- fails --> L[Background: load Whisper while you talk]
    P --> S[Ctrl+Alt+O again: stop]
    S --> D{Deepgram reachable?}
    D -- yes --> DG[Deepgram nova-3]
    D -- no --> WH[faster-whisper on the CPU]
    DG -- error --> WH
    DG --> T{ChatGPT cleanup enabled?}
    WH --> T
    T -- yes --> AI[Clean up transcript text]
    T -- no --> C[Editable popup]
    AI --> C
    C --> X[Manual Copy closes popup]
Loading

A few decisions worth calling out:

  • SayKey warms up its Deepgram connection while you record. If the connection is unavailable, it starts loading the selected Whisper model while you speak.
  • Whisper is loaded only when it's needed. The model takes about 350 MB of RAM, so it stays on disk while Deepgram is reachable and is unloaded again once Deepgram works.
  • Idle memory goes back to Windows. When the popup hides, SayKey hands its working set back to Windows (EmptyWorkingSet). Pages come back in a fraction of a second on the next hotkey.
  • It's built on Win32 directly: RegisterHotKey for the global shortcut, the acrylic blur effect (SetWindowCompositionAttribute) for the glass, and DWM rounded corners.

Project layout

Path What it does
saykey/ui.py Tray app, popup, waveform and mic button (PySide6)
saykey/engines.py Deepgram client with a reused connection, faster-whisper wrapper
saykey/winapi.py Hotkey, Desktop path, autostart, memory trimming
saykey/config.py Settings in %APPDATA%\SayKey\config.json
tests/ Unit tests for the Deepgram client, WAV encoding, config and saving
tools/make_demo.py Renders docs/demo.gif from the real widgets
tools/build_exe.py Builds the release .exe and zip with PyInstaller

Privacy

  • With the Deepgram engine, your recording is sent to Deepgram's API over HTTPS. With Local transcription (Whisper), audio stays on your PC.
  • When ChatGPT cleanup is enabled, SayKey sends the transcript to OpenAI. ChatGPT account tokens are protected using Windows DPAPI.
  • Audio is kept in memory only and never written to disk.
  • SayKey encrypts saved Deepgram keys with Windows DPAPI. A key from an older version is encrypted the next time settings are saved. The DEEPGRAM_API_KEY environment variable overrides the saved key for the running app.

Development

.venv\Scripts\python -m pip install -r requirements-dev.txt
.venv\Scripts\python -m unittest            # tests
.venv\Scripts\python tools\build_exe.py     # dist\SayKey-<version>-windows-x64.zip
.venv\Scripts\python tools\make_demo.py speech.wav   # re-render docs\demo.gif

License

MIT

About

Press a key, talk, paste. Tiny Windows dictation app: Deepgram nova-3 with offline Whisper fallback, 2 MB idle.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages