Installation¶
Prerequisites¶
- Python 3.10 or higher
System Dependencies¶
Before installing asr2clip, ensure the following system dependencies are available:
| Dependency | Purpose | Linux | macOS | Windows |
|---|---|---|---|---|
| ffmpeg | Audio format conversion | apt install ffmpeg |
brew install ffmpeg |
Download |
| PortAudio | Audio recording | apt install libportaudio2 |
brew install portaudio |
Included with sounddevice |
| Clipboard | Copy to clipboard | Built-in (copykitten) | Built-in | Built-in |
Note
Clipboard access is handled by copykitten, which uses native platform APIs directly. On Wayland sessions, asr2clip prefers wl-copy (from wl-clipboard) for proper clipboard manager integration (e.g. KDE Klipper). Install it with apt install wl-clipboard if not already present. On X11, macOS, and Windows, no external tools are needed.
Install via pip or pipx (Recommended)¶
# Install using pip
pip install asr2clip
# Or install using pipx (recommended for isolated environments)
pipx install asr2clip
# Upgrade to latest version
pip install --upgrade asr2clip
Install from source¶
Optional: Local ASR Server¶
To use the local ASR server (offline transcription with sherpa-onnx):
See Local ASR Server for details.