Files
windroost/PRODUCTION/source/elevenlabs/processed/audio
wushenghua b39f7fb9b5 audio: replace synthesized placeholders with real ElevenLabs SFX + BGM
Phase AUDIO of the new authoritative RELEASE_GOAL.md. Owner explicitly
authorized ElevenLabs music/SFX and AI media this turn.

- 9 SFX via ElevenLabs sound-generation (eleven_text_to_sound_v2). A first
  hit.mp3 came back 99.5% silent despite HTTP 200; regenerated with a stronger
  prompt (peak -1.78 dB). All 9 pass validate_audio.py with 0 errors.
- BGM via ElevenLabs Music API (POST /v1/music, music_v1): 80 s instrumental
  bed per music_brief.md, loop_seam_delta=0.0001, converted to 22.05 kHz mono
  WAV (3.5 MB). Confirmed the Music API is real via official docs; added
  tools/generate_music.py (reads key from env only, dry-run by default, writes
  a key-free provenance sidecar).
- Converted to WAV, wrote a real sfx_manifest.json with hashes/durations/
  provenance, and repointed runtime audio symlinks to the processed files.
- Added tools/check_elevenlabs_audio.py gate (non-silent, unclipped, manifest
  hashes match) to catch the silent-generation failure class; registered in
  run_p2_checks.sh. audio_test 4 stages pass; full gate P2_CHECKS_PASS.
- Export proof: exported a PCK and load()-ed all 10 audio streams successfully
  (BGM 80.09 s) - the real audio is bundled and functional in a packed build.

Key handling: read only from ELEVENLABS_API_KEY env; never written to argv,
manifests, sidecars, logs or project files. Sidecars store only safe response
headers. Provenance under PRODUCTION/source/elevenlabs/. human_listened remains
an owner gate. prototype/ stays untracked and untouched.
2026-11-18 02:30:36 +08:00
..