Files
novafarma/tools/ai_voice_generator.py
David Kotnik 6ce13789c4 🎙️ MASTER AUDIO SYSTEM COMPLETE - AI VOICES + SFX!
 3 NEW MAJOR SYSTEMS IMPLEMENTED:

1. 🎙️ AI VOICE GENERATOR (ai_voice_generator.py - 249 lines):
   - Edge-TTS integration (NO recording!)
   - Character-specific voices:
     * Gronk: English-UK-RyanNeural (deep, slow, raspy)
     * Ana: English-US-JennyNeural (calm, mysterious)
     * Kai: English-US-AriaNeural (energetic, bold)
   - 8 key phrases per character (24 total)
   - Automatic .ogg conversion
   - Batch generation script
   - Custom phrase generation

2. 🔊 COMPLETE AUDIO INTEGRATION (CompleteAudioIntegration.js - 380 lines):
   - AI voice playback system
   - Farm animals (6 types):
     * Proximity-based (500px radius)
     * Random intervals (5-15s)
     * Sheep, Pig, Chicken, Horse, Goat, Cow
   - Combat sounds (3 types):
     * zombie_hit, zombie_death, player_hurt
     * Strong haptic feedback
   - Ambient loops (3 types):
     * City noise (HIPODEVIL666CITY)
     * Farm wind
     * Night crickets
   - Interactive sounds:
     * Generator hum (proximity 800px, fades)
     * Chalkboard writing (Zombie Statistician)
     * UV light buzz (basement, 300px)
   - Xbox haptic integration:
     * Light (voice, minor): 100ms
     * Strong (combat): 300-400ms
   - Character typewriter blips (4 pitch levels)

3. 📚 AUDIO INTEGRATION GUIDE (AUDIO_INTEGRATION_GUIDE.md - 425 lines):
   - Complete documentation
   - Character voice profiles
   - SFX categories breakdown
   - Usage examples (code snippets)
   - Installation instructions
   - File structure diagram
   - Troubleshooting guide

🎭 CHARACTER VOICE DETAILS:

**Gronk:**
- Voice: English-UK-RyanNeural
- Pitch: -5Hz (deeper)
- Rate: -10% (laid-back)
- 8 phrases (deep troll humor)

**Ana:**
- Voice: English-US-JennyNeural
- Pitch: +0Hz
- Rate: -5% (mysterious)
- 8 phrases (scientist, captive)

**Kai:**
- Voice: English-US-AriaNeural
- Pitch: +2Hz
- Rate: +10% (energetic)
- 8 phrases (determined, bold)

🔊 SFX BREAKDOWN:

**Farm Animals (6):**
- Proximity-based playback
- 500px hearing radius
- Random intervals
- No overlapping

**Combat (3):**
- zombie_hit → 200ms haptic
- zombie_death → 200ms haptic
- player_hurt → 400ms STRONG haptic

**Ambient (3):**
- City noise (loop)
- Farm wind (loop)
- Night crickets (loop)

**Interactive (3):**
- Generator: Distance-based (800px fade)
- Chalkboard: On-demand
- UV lights: Basement proximity (300px)

🎮 HAPTIC SYSTEM:

**Light Vibration (100ms):**
- AI voice playback
- Chalkboard sounds
- Minor events

**Strong Vibration (300-400ms):**
- Combat impacts
- Player damage
- Important warnings

⌨️ TYPEWRITER BLIPS:
- Gronk: Low pitch (deep)
- Ana: Mid pitch (calm)
- Kai: High pitch (energetic)
- NPC: Normal pitch (generic)

📁 FILE STRUCTURE:
/assets/audio/
  ├── voice/ (24 AI-generated phrases)
  ├── animals/ (6 farm sounds)
  ├── combat/ (3 battle sounds)
  ├── ambient/ (3 loops)
  ├── interactive/ (3 proximity sounds)
  └── ui/ (4 typewriter blips)

💡 PHILOSOPHY:
- 'Lazy is valid' (NO recording needed!)
- AI voices = /bin/zsh cost, infinite variations
- Multi-sensory (Audio + Visual + Haptic)
- Character personality in voice
- Accessibility AAA+

📊 STATISTICS:
- Code: 1,054 lines (3 files)
- Characters: 3 (24 AI voices)
- SFX: 15 sounds
- Proximity systems: 3
- Haptic events: 10+
- Total audio files: ~40

Next: Run ai_voice_generator.py! 🎙️
2026-01-10 02:43:03 +01:00

6.4 KiB
Executable File