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 tiny Windows dictation app. It waits in the system tray and opens a frosted-glass popup when you press Ctrl+Alt+O. When you stop talking, your words are on the clipboard about 1.4 seconds later.

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.
Never stuck offline If Deepgram can't be reached, SayKey shows one notification and transcribes locally with Whisper.
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.
  • Auto-copy: the transcript goes to the clipboard as soon as it's ready. Switch windows and paste when the taskbar button flashes.
  • Live waveform: a recording timer and waveform while you talk, and a sweep while it transcribes.
  • 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).
  • Tray menu: engine, language (English, Bulgarian, auto-detect), Whisper model (small or base), auto-copy, start with Windows, Deepgram key, and offline model download.
  • 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.

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 --> C[Clipboard and popup]
    WH --> C
Loading

A few decisions worth calling out:

  • The connection check is free. When recording starts, SayKey opens the HTTPS connection to Deepgram on a background thread. If that works, the TLS handshake is already done and the upload starts immediately when you stop. If it fails, SayKey starts loading Whisper while you are still speaking, so the offline path takes about 2 s instead of about 7 s.
  • 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 "Whisper only", audio never leaves your PC.
  • Audio is kept in memory only and never written to disk.
  • Your API key lives in %APPDATA%\SayKey\config.json on your machine, never in this repository. The DEEPGRAM_API_KEY environment variable overrides it.

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