b45a8e2e85
- AudioConfig now includes rep_max_count and rep_audio_dir - app/audio/generate.py uses config instead of hardcoded constants - RepAnnouncer rewrote with pre-generated audio cache - Supports Windows winsound, macOS afplay, Linux paplay/aplay - Pin requirements back to mediapipe==0.10.21 with numpy<2
32 lines
645 B
YAML
32 lines
645 B
YAML
# PoseFit Server Configuration
|
|
# ============================
|
|
|
|
server:
|
|
host: "0.0.0.0"
|
|
port: 8765
|
|
max_ws_size: 10485760 # 10 MB
|
|
|
|
video:
|
|
process_every_n_frames: 1
|
|
|
|
model:
|
|
path: "./pose_models/pose_landmarker_full.task"
|
|
prefer_gpu: true
|
|
|
|
dead_bug:
|
|
visibility_threshold: 0.45
|
|
extension_confirm_frames: 4
|
|
reset_confirm_frames: 3
|
|
|
|
audio:
|
|
rep_announcer_enabled: true
|
|
rep_announcer_rate: 185
|
|
rep_announcer_volume: 1.0
|
|
rep_max_count: 200 # 预生成语音文件的最大次数
|
|
rep_audio_dir: "" # 空 = 自动使用 app/audio/reps
|
|
|
|
logging:
|
|
dir: logs
|
|
rotation: "20 MB"
|
|
retention: "14 days"
|