gitwtfhub

wtf is clip2speech?

dylanrothhuck/clip2speech — explained in plain English

Analysis updated 2026-05-18

0ShellAudience · generalComplexity · 2/5LicenseSetup · moderate

TL;DR

A keyboard shortcut tool that reads your clipboard text aloud offline using local text to speech, built for Linux and Hyprland.

Mindmap

mindmap
  root((clip2speech))
    What it does
      Speak clipboard text
      Speak selected text
      Toggle stop
    Tech stack
      Shell scripts
      Piper TTS
      wl-clipboard
    Use cases
      Read copied text aloud
      Bind to hotkey
      Waybar status icon
    Audience
      Linux desktop users
      Hyprland users
    Setup
      Install dependencies
      Download voice model
      Add keybind

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Press a hotkey to hear copied text read aloud without an internet connection

REASON 2

Highlight text and have it spoken without copying it first

REASON 3

Add a clickable speak/stop icon to a Waybar status bar

REASON 4

Trigger a desktop notification whenever the tool starts or stops speaking

What's in the stack?

ShellPiper TTSWaylandHyprland

How it stacks up

dylanrothhuck/clip2speech123satyajeet123/bitnet-serverahloiscreamo/pod-search
Stars000
LanguageShellShellShell
Setup difficultymoderateeasyeasy
Complexity2/52/52/5
Audiencegeneraldevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · moderate Time to first run · 30min

Requires installing Piper TTS, a voice model, and Wayland clipboard tools, built specifically for Hyprland.

Wtf does this do

clip2speech is a small collection of shell scripts that reads whatever text you have copied to your clipboard out loud. Press a keyboard shortcut, hear the copied text spoken, and press the same shortcut again to stop it immediately. It runs entirely offline using a local text to speech engine called Piper, so no internet connection or cloud service is needed and nothing you copy leaves your computer. It is built for Linux systems running Arch Linux with the Hyprland window manager, though the author notes it should work on any Linux setup that has the wl-clipboard, piper-tts, and aplay tools installed. Setting it up means installing those three dependencies, downloading one or more voice model files for Piper from an online voice repository, placing the scripts in a folder on your command line path, and marking them as runnable. Once installed, you can run the tool to read your regular clipboard, to read text you have highlighted but not copied, or to speak a specific sentence typed directly into the command. A companion script speaks in English while the main script defaults to a Spanish voice, and both can be switched to any of the many voices Piper supports by changing a setting in an optional configuration file. The README also shows how to wire the tool into a keyboard shortcut, how to trigger a small desktop notification when it starts or stops speaking, and how to add a clickable icon for it to a status bar tool called Waybar. Running the command a second time while it is already speaking stops it right away, which the author designed specifically so it is safe to bind to a single key without causing overlapping audio. This project is aimed at Linux desktop users, particularly those using Hyprland, who are comfortable editing configuration files and running commands in a terminal. It is released under the MIT license.

Yoink these prompts

Prompt 1
Help me install piper-tts, wl-clipboard, and alsa-utils for clip2speech on Arch Linux
Prompt 2
Show me how to bind clip2speech to a SUPER+U keybind in my Hyprland config
Prompt 3
Explain how to change the default Piper voice used by clip2speech
Prompt 4
Help me add a Waybar module that shows when clip2speech is speaking

Frequently asked questions

wtf is clip2speech?

A keyboard shortcut tool that reads your clipboard text aloud offline using local text to speech, built for Linux and Hyprland.

What language is clip2speech written in?

Mainly Shell. The stack also includes Shell, Piper TTS, Wayland.

How hard is clip2speech to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is clip2speech for?

Mainly general.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.