- Created resample_audio.py utility script - Automatically reads target sample rate from config.json - Resamples all WAV files in sounds directory - Creates .backup files before modifying originals - Handles both mono and stereo audio - Uses scipy.signal.resample for high-quality resampling - Added scipy>=1.7.0 dependency to pyproject.toml - Updated Makefile sync command to include scipy - Updated README.md with sample rate troubleshooting section - Updated config example in README to show 48kHz default - Added beep_sound configuration to README system section This resolves sample rate mismatch errors when audio files don't match the configured rate in config.json. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
24 lines
486 B
TOML
24 lines
486 B
TOML
[project]
|
|
name = "wedding-phone"
|
|
version = "1.0.0"
|
|
description = "Vintage rotary phone audio system for weddings and events"
|
|
readme = "README.md"
|
|
requires-python = ">=3.8"
|
|
dependencies = [
|
|
"flask>=2.3.0",
|
|
"numpy>=1.21.0",
|
|
"pyaudio>=0.2.13",
|
|
"RPi.GPIO>=0.7.1",
|
|
"waitress>=2.1.0",
|
|
"scipy>=1.7.0",
|
|
]
|
|
|
|
[project.scripts]
|
|
wedding-phone = "rotary_phone_web:main"
|
|
wedding-phone-test = "test_complete:main"
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=7.0.0",
|
|
]
|