Event-driven audio feedback system with 9 sound events: - boot_complete: Startup chime (ascending notes) - person_detected: Subtle detection sound (800Hz sine) - wake_word: Activation beep (1000Hz) - low_battery: Warning tone (880Hz double beep) - obstacle_close: Proximity beeps (rapid 1200Hz pulses) - trick_complete: Success jingle (ascending arpeggio) - error: Descending warning tone (800→400Hz) - charging_start: Power-up tone (rising 400→1200Hz) - geofence_warning: Boundary alert (950Hz) Features: - Priority queue for event handling - Dynamic sound synthesis if WAV/OGG files missing - Volume control with quiet/night mode support - Fade in/out for smooth playback - Configurable per-event duration and priority - Caching of loaded audio files - Background playback thread - Real-time state publishing Configuration: - WAV/OGG file loading from /home/seb/saltybot-data/sounds/ - Programmatic sound generation (sine, chime, descending, power-up, beep, jingle, proximity, alert) - Numpy/scipy-based synthesis - YAML configuration for all events - Volume and fade timing controls - Sample rate: 16kHz, 16-bit audio Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Description
SaltyLab self-balancing bot firmware (STM32F722)
Languages
Python
67.1%
C
11.4%
JavaScript
9.2%
OpenSCAD
7.8%
HTML
1.5%
Other
2.9%