███████╗██╗ █████╗ ██████╗ ███╗ ██╗███╗ ███╗ ██████╗ █████╗ ███╗ ██╗
██╔════╝██║ ██╔══██╗██╔══██╗████╗ ██║████╗ ████║██╔═══██╗██╔══██╗████╗ ██║
███████╗██║ ███████║██████╔╝██╔██╗ ██║██╔████╔██║██║ ██║███████║██╔██╗ ██║
╚════██║██║ ██╔══██║██╔═══╝ ██║╚██╗██║██║╚██╔╝██║██║ ██║██╔══██║██║╚██╗██║
███████║███████╗██║ ██║██║ ██║ ╚████║██║ ╚═╝ ██║╚██████╔╝██║ ██║██║ ╚████║
╚══════╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝
Slap your laptop. Hear the consequences.
SlapMoan is a desktop app that turns your laptop into a dramatic entity with feelings. Hit it, shake it, or tap the case — and it expresses itself. Powered by your microphone, accelerometer, or mouse jitter, SlapMoan detects physical impact and responds with a random moan sound.
It's stupid. It's perfect.
| Feature | Description | |
|---|---|---|
| 🎤 | Multi-sensor Detection | Mic audio spikes, WinRT/APS accelerometer, or mouse jitter — pick your poison |
| 🔊 | Custom Sound Library | Drop .mp3, .wav, or .ogg files into moans/ and they're in the rotation |
| 🌑 | Dark UI | Clean Tkinter interface with sensor badges, impact meter, and sound controls |
| 🔧 | Dependency Helper | Built-in checker and installer — no hunting around for missing packages |
| 🎛️ | Flexible Modes | Mic only, accelerometer only, mouse only, or stack them together |
git clone https://github.com/ke1thdev/slapnmoan.git
cd slapmoanPython 3.9+ is required. A venv is optional but recommended:
python -m venv .venv
.venv\Scripts\activate # Windowspip install -r requirements.txtAccelerometer? Check
requirements.txtand uncomment the right backend for your hardware:
- WinRT (Surface, most modern laptops) →
winrt-runtime+winrt-Windows.Devices.Sensors- ThinkPad APS (older ThinkPads) →
winsdk
Sound files are already included in moans/. Swap them out or add your own — just name them numerically (1.mp3, 2.wav, 3.ogg, etc.) and drop them in the folder.
python slap2.pyThe UI shows your detected sensors. Now slap it.
| Control | What it does |
|---|---|
START / STOP |
Toggle impact detection |
TEST MOAN |
Instant gratification — plays a random sound |
Detector Mode |
Switch between mic / accel / mouse / combined |
Reload Sounds |
Picks up any new files you added to moans/ |
numpy
pygame
sounddevice # microphone detection
pynput # mouse jitter fallback
winrt-runtime # WinRT accelerometer (Surface / modern laptops)
winrt-Windows.Devices.Sensors
winsdk # ThinkPad APS (alternative, see requirements.txt)
All installable via pip. See requirements.txt for version details and hardware-specific comments.
🔇 No sound playing
Make sure moans/ has at least one valid audio file. If it's empty, the app falls back to a synthesized beep tone instead.
📡 No sensors detected
- Mic: Confirm your microphone is enabled in Windows Settings → Privacy → Microphone, and isn't currently claimed by another app.
- Accelerometer: Your device needs a supported sensor and the matching backend installed. Check
requirements.txtand install the right one for your hardware.
🔒 Permission errors
Windows may block mic access depending on your privacy settings. Go to Settings → Privacy & Security → Microphone and enable access for desktop apps.
Pull requests are welcome. Open an issue for bugs, feature requests, or hardware compatibility reports. If your laptop makes interesting noises when slapped, that's probably a separate issue.
MIT — do whatever you want with it.
Made with poor judgment and excellent results.