Skip to content
ronikiienkoPublic

About

Offline speech-to-text in the tray: press a shortcut, speak, the text is pasted. Parakeet model, Rust; macOS (Neural Engine) and Linux (GPU/CPU).

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Dictation

Offline speech-to-text in the tray, using the Parakeet speech model. The main goal of the project is speed: most of the work went into getting the text as soon as possible after you stop talking. The other goal is running the same app on every system.

Features

  • Press a shortcut, speak, press it again: the text is pasted where your cursor is.
  • Runs entirely on your machine. The only network use is the one-time model download.
  • 25 European languages, no need to pick one. Tested daily in English and Ukrainian.
  • Transcribes audio and video files to text or subtitles (.srt) from the tray menu.
  • Records from the microphone or from system audio.
  • Runs on the GPU (Vulkan) on Linux and Windows, on the Neural Engine on macOS, or on the CPU. On a MacBook Air M1 a 30 s take is text in about 0.2 s.
  • Can keep your recordings (off by default).

Supported systems

System State
Linux x86_64, KDE Plasma 6 (Wayland) used daily
macOS 14 or newer, Apple Silicon used daily
Windows not tested: the code is written, but the app hasn't been built or run there
Other Linux desktops untested; without a tray (e.g. plain GNOME) the app doesn't start

Install

macOS: download Dictation-macos-arm64.zip from Releases, unzip it and move Dictation.app to Applications. The app isn't signed by Apple, so the first open is blocked: then System Settings → Privacy & Security → Open Anyway.

Linux: download dictation-linux-x86_64.tar.gz from Releases, extract it and put the dictation file somewhere it stays, e.g. ~/.local/bin/. Run it once: it adds itself to the app menu (it writes ~/.local/share/applications/local.dictation.Dictation.desktop pointing at the file; run it again after moving it). Allow pasting once (see Notes per system → Linux). Needs glibc 2.35 or newer (distros from 2022 on).

First start

The app downloads the model (~740 MB; ~1.26 GB on macOS) and prepares it for your machine, which takes 1–2 minutes. Progress is shown in the tray menu. Later starts take about a second.

Use

  • Shortcut: Ctrl+Alt+Space on macOS, Meta+Y suggested on Linux (the desktop asks you to confirm it). Change it in the tray menu.
  • All settings are in the tray menu.
  • Command line: dictation transcribe <file>… prints the text of audio/video files (using the running app if it's open), dictation --help lists everything. Tray menu → Terminal command “dictation” makes dictation a command in any terminal (Linux: a link in ~/.local/bin; macOS: a link in /usr/local/bin, asks for your password; Windows: the app's folder added to your Path). Untick to remove it. Handy for scripts and AI agents.
  • The model takes ~900 MB of memory while loaded (~1.2 GB on the Neural Engine). By default it's unloaded 1 minute after the last take, and the next take loads it again in about a second. Tray menu → Keep model loaded.
  • Settings, models and saved recordings are in one folder: ~/.local/share/dictation/ on Linux, ~/Library/Application Support/dictation/ on macOS. Delete it to remove everything.

Which model to pick

Tray menu → Model. Switching restarts the app.

  • Parakeet Ultra on the GPU (default on Linux and Windows): the most accurate.
  • Parakeet Ultra — Neural Engine (default on macOS): same accuracy.
  • Parakeet Ultra — CPU: same accuracy, slower. For machines without a usable GPU.
  • Parakeet Redux — CPU: a compressed version of Ultra. Uses about 380 MB of memory instead of ~900 MB, but makes more mistakes (on our English test takes, 10% of words wrong instead of 6.5%; worse on Ukrainian and technical terms). Pick it only when memory is tight.

Notes per system

Linux

  • To paste, the app needs access to /dev/uinput. Run once, then log out and back in (not needed if KDE Connect is installed: it ships the same rule):

    echo 'KERNEL=="uinput", TAG+="uaccess"' | sudo tee /etc/udev/rules.d/70-uinput.rules
  • Start at login: System Settings → Autostart → Add → Add Application → Dictation.

  • The tray icon needs a desktop with StatusNotifierItem support, and the shortcut needs the desktop's global shortcuts portal. KDE Plasma has both.

macOS

  • On the first paste macOS asks to allow the app under Accessibility.
  • Neural Engine: the memory it uses doesn't show in Activity Monitor. When free disk space gets low (under ~15 GB), macOS deletes the prepared model, and the next take waits ~40 s while it's prepared again.

Credits

License

MIT (LICENSE-MIT) or Apache-2.0 (LICENSE-APACHE), at your option.

About

Offline speech-to-text in the tray: press a shortcut, speak, the text is pasted. Parakeet model, Rust; macOS (Neural Engine) and Linux (GPU/CPU).

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages