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>
31 lines
984 B
Python
31 lines
984 B
Python
from setuptools import setup
|
|
|
|
package_name = "saltybot_sound_effects"
|
|
|
|
setup(
|
|
name=package_name,
|
|
version="0.1.0",
|
|
packages=[package_name],
|
|
data_files=[
|
|
("share/ament_index/resource_index/packages", [f"resource/{package_name}"]),
|
|
(f"share/{package_name}", ["package.xml"]),
|
|
(f"share/{package_name}/launch", ["launch/sound_effects.launch.py"]),
|
|
(f"share/{package_name}/config", ["config/sound_config.yaml"]),
|
|
],
|
|
install_requires=["setuptools", "pyyaml", "numpy", "scipy"],
|
|
zip_safe=True,
|
|
maintainer="sl-mechanical",
|
|
maintainer_email="sl-mechanical@saltylab.local",
|
|
description=(
|
|
"Sound effects library: event-driven audio feedback, priority queue, "
|
|
"programmatic synthesis, volume control"
|
|
),
|
|
license="MIT",
|
|
tests_require=["pytest"],
|
|
entry_points={
|
|
"console_scripts": [
|
|
"sound_effects_node = saltybot_sound_effects.sound_effects_node:main",
|
|
],
|
|
},
|
|
)
|