100% offline, Whisper-powered voice notes from your terminal
Project description
hark 😇
100% offline, Whisper-powered voice notes from your terminal
Use cases: Voice prompts for LLMs (hark | llm), meeting minutes, quick voice journaling
Features
- 🎙️ Record - Press space to start, Ctrl+C to stop
- ✨ Transcribe - Powered by faster-whisper
- 🔒 Local - 100% offline, no cloud required
- 📄 Flexible - Output as plain text, markdown, or SRT subtitles
Installation
pipx install hark
System Dependencies
Ubuntu/Debian:
sudo apt install portaudio19-dev
macOS:
brew install portaudio
Optional: Vulkan Acceleration
For GPU-accelerated transcription via Vulkan (AMD/Intel GPUs):
Ubuntu/Debian:
sudo apt install libvulkan1 vulkan-tools mesa-vulkan-drivers
Then set the device in your config or use --device vulkan.
Quick Start
# Record and print to stdout
hark
# Save to file
hark notes.txt
# Use larger model for better accuracy
hark --model large-v3 meeting.md
# Transcribe in German
hark --lang de notes.txt
# Output as SRT subtitles
hark --format srt captions.srt
Configuration
Hark uses a YAML config file at ~/.config/hark/config.yaml. CLI flags override config file settings.
# ~/.config/hark/config.yaml
whisper:
model: base # tiny, base, small, medium, large, large-v2, large-v3
language: auto # auto, en, de, fr, es, ...
device: auto # auto, cpu, cuda, vulkan
preprocessing:
noise_reduction:
enabled: true
strength: 0.5 # 0.0-1.0
normalization:
enabled: true
silence_trimming:
enabled: true
output:
format: plain # plain, markdown, srt
timestamps: false
Development
git clone https://github.com/FPurchess/hark.git
cd hark
uv sync --extra test
uv run pre-commit install
uv run pytest
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hark_cli-0.1.0.tar.gz.
File metadata
- Download URL: hark_cli-0.1.0.tar.gz
- Upload date:
- Size: 187.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Hatch/1.16.2 cpython/3.12.3 HTTPX/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa645818326b9a56a3bb90c4ccd094f249b93d8f87399d3cd5f6a134c81a1923
|
|
| MD5 |
f86eb5399007ab141308b07f15e373af
|
|
| BLAKE2b-256 |
b842a464b325b6a48ebe2f321d4c485414bd654faef53697b4d8181c6824bbe0
|
File details
Details for the file hark_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hark_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 37.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Hatch/1.16.2 cpython/3.12.3 HTTPX/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
373bad52cf38a2463608639150bece0a1ed9a9c90deae91e71b093e197061569
|
|
| MD5 |
6642a0b77d197a9f91f2a10ce057c490
|
|
| BLAKE2b-256 |
0fcb049bafa32eb324bb3f32f094a5eeed4799ce790fd1e8b16aeb531f4995a0
|