A Python application that types text into tmux panes with human-like delays and keyboard sound effects.
pip install -e .# Type text directly
human-like "Hello, World!"
# Read from file
human-like -f script.txt
# Pipe input
echo "Hello" | human-like# Speed multiplier (2.0 = twice as fast)
human-like --speed 2.0 "text"
# Typo rate (0.1 = 10% chance of typos, auto-corrected with backspace)
human-like --typo 0.1 "text"
# Disable sound effects
human-like --no-sound "text"
# Send to specific tmux pane
human-like -t right "text"
human-like -t %1 "text"
# Combine options
human-like --speed 2.0 --typo 0.05 -t %8 "Hello, World!"# Check daemon status
human-like --daemon status
# Manually start daemon
human-like --daemon start
# Stop daemon
human-like --daemon stopRandom delays based on character type:
| Context | Delay Range |
|---|---|
| Consecutive letters | 20-50ms (fluent typing) |
| After punctuation | 200-600ms (thinking pause) |
| After space | 100-300ms |
| After newline | 300-800ms |
Typing speed is adjusted based on keyboard ergonomics:
- Same key repeat: 25% faster (e.g., "ll", "ss")
- Home row keys (asdfghjkl): 10% faster
- Alternating hands: 5% faster (e.g., "aj", "sl")
When --typo is enabled:
- Mistypes occur based on the specified rate
- Wrong character is typed (adjacent key on QWERTY layout)
- Brief pause (realizing the mistake)
- Backspace to delete
- Correct character is typed
- Realistic keyboard sounds via Unix socket daemon
- Different sounds for regular keys, Enter, Space
- Sounds mix naturally when typing fast
- Auto-starts when needed, runs in background
The sounds/ directory contains keyboard sound effects:
| File | Description |
|---|---|
PC-Keyboard06-04(Single-Mid).mp3 |
Regular key press (medium) |
PC-Keyboard06-05(Single-Hard).mp3 |
Regular key press (hard) |
PC-Keyboard06-06(Single-Gentle).mp3 |
Regular key press (gentle) |
PC-Keyboard06-08(Enter-Mid).mp3 |
Enter key (medium) |
PC-Keyboard06-09(Enter-Hard).mp3 |
Enter key (hard) |
PC-Keyboard06-10(Space-Mid).mp3 |
Space key (medium) |
PC-Keyboard06-11(Space-Hard).mp3 |
Space key (hard) |
PC-Keyboard06-12(Shift).mp3 |
Shift key |
Source: OtoLogic License: CC BY 4.0
- Python 3.10+
- click: CLI framework
- numpy: Audio mixing
- sounddevice: Real-time audio playback
- soundfile: Audio file loading
MIT
Built with Claude Code