Skip to content
bezmoradiPublic

About

CLI tool for converting voice to text

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

58 Commits

Folders and files

Repository files navigation

⚙️ Engineered, Not Vibe Coded

Engineered, not vibe coded

#1 STOP VIBE CODING Merged

- vibe coded: shipped because it compiled
+ engineered: designed, reviewed, documented

✅ Approved by human reviewers · All checks passed

T2 (Talk to Text)

T2 turns your speech into text in the app you're using. Hold Ctrl + Shift, speak, and let go: AssemblyAI's streaming API transcribes the recording, and t2 pastes the text into the focused app.

It runs on macOS 13 or later and on Linux, under X11 or Wayland. It doesn't run on Windows, nor under WSL, where keys typed into Windows never reach Linux.

Install

curl -fsSL https://github.com/bezmoradi/t2/releases/latest/download/install.sh | sh

The script runs on macOS and Linux, on amd64 and arm64, checks the archive's SHA-256, and installs t2 into ~/.local/bin. On Linux, t2 also needs a few tools for sound, the clipboard and pasting, and on Wayland the input group: Installation lists them, and covers installing somewhere else, updating and verifying the script first.

Quick start

t2

The first run asks for your AssemblyAI API key, which a free account at assemblyai.com gives you, and saves it to ~/.config/t2/config.json, readable by you only. Then hold Ctrl + Shift, speak, and let go: the text is pasted into the app you're in. Holds shorter than 0.4 seconds are ignored, and pressing any other key while you hold Ctrl + Shift cancels the recording.

Documentation

  • Installation: what the script checks, installing somewhere else, updating, verifying the script, and what macOS and Linux need.
  • Usage: the API key, how a dictation works, pasting on each Linux desktop, saved recordings, and the commands.
  • Development: building from source and cutting a release.

Author

This project is maintained by Bez Moradi.

License

T2 is licensed under MIT.

About

CLI tool for converting voice to text

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages