handsfreed is a local, real-time speech-to-text daemon for Linux. It uses the faster-whisper library to provide high-quality, offline transcription.
This package is the daemon component of the Handsfree project. It is controlled by the handsfreectl command-line tool.
handsfreed requires PortAudio, which is a dependency of the sounddevice Python library. You must install the PortAudio library and its development headers using your system's package manager.
-
Debian/Ubuntu:
sudo apt-get install libportaudio2 libportaudiocpp0 portaudio19-dev
-
Fedora/CentOS/RHEL:
sudo dnf install portaudio-devel
-
Arch Linux:
sudo pacman -S portaudio
The handsfreed daemon is controlled by the handsfreectl command-line tool. You must install it separately.
-
You can download pre-compiled binaries from the handsfreectl releases page.
-
If you have the Cargo installed, you can install
handsfreectlfrom Crates.io:cargo install handsfreectl
Once the dependencies are installed, you can install handsfreed using pip:
pip install handsfreedIf you use the Nix package manager with flakes enabled, the Handsfree flake provides both handsfreectl and handsfreed packages along with a Home Manager module to configure and manage the handsfreed daemon as a systemd service.
For detailed instructions on how to add the flake to your system and configure the service, please refer to the Handsfree flake's README.
handsfreed is designed to be run as a background service.
-
Create a configuration file: Create a configuration file at
~/.config/handsfree/config.toml. You can start with the example configuration. -
Run the daemon: The daemon will start listening for commands from
handsfreectl.handsfreed
-
Control with
handsfreectl: Use thehandsfreectlCLI to start/stop transcription and check the status of the daemon.
handsfreed is configured via a TOML file located at ~/.config/handsfree/config.toml. The configuration allows you to set up your audio input, Whisper model, VAD parameters, and more.
For a full list of configuration options, please see the example configuration file.
This project is licensed under the GNU General Public License v3.0.