Silicon Smackdown
1999Built for Google Gemini Developer CompetitionWhat Makes It Special
Full-Duplex Voice AI
Real-time, low-latency voice conversations using Gemini 2.5 Flash with native audio streaming. Achieves <100ms audio latency using AudioWorklet for high-performance capture.
No text-to-speech intermediaries—pure voice-to-voice AI with live waveform visualization.
20+ AI Personalities
Curated character pairs from Einstein vs. Bohr to Tony Stark vs. Peter Parker. Each with unique voices, personalities, and debate styles powered by contextual DiceBear avatars.
Choose from rivalries like Logic vs. Hype, Detective & Mastermind, or The Relativist & The Quantum.
Multi-Agent Orchestration
Sophisticated state machine managing dual AI sessions with automatic turn-taking and context-aware prompting. Built with custom React hooks for modular state management.
Typed reducer with useReducer ensures predictable conversation flow and prevents state bugs.
Production Audio Pipeline
Web Audio API + AudioWorklet architecture with ScriptProcessor fallback for browser compatibility. Real-time waveform analysis, audience effects, and quality indicators.
Dual-channel audio routing for guest separation with automatic reconnection logic.
Technical Architecture
Custom Hook Architecture
Modular state management with focused, testable hooks that separate concerns:
useConversationStateTyped reducer for conversation flow
useGeminiSessionsMulti-session AI management
useAudioPipelineAudio capture and playback
useTranscriptionStreaming transcription updates
Conversation Flow
- State Machine: Typed reducer manages guest turns, speaking states, and prompts
- Auto Turn-Taking: Guests automatically respond to each other with configurable delays
- Context Preservation: Conversation history maintained across turns
- Smart Prompting: Dynamic prompts based on conversation state
Featured Rivalries
Logic vs. Hype
Philosophy vs. Futurism
Detective & Mastermind
Genius vs. Criminal Mind
The Genius & The Spider
Mentor vs. Protégé
Jedi Master & Apprentice
Wisdom vs. Youth
The Relativist & The Quantum
Physics Debate
The Teacher & The Student
Breaking Bad Dynamics
Tech Stack
Key Learnings
What Worked
- ✓Custom Hook Architecture: Separating concerns made the system maintainable and testable
- ✓AudioWorklet: Reduced latency from ~200ms to <100ms and eliminated glitches
- ✓Typed State Machine: Prevented state bugs and made flow predictable
- ✓Fallback Mechanisms: Auto-reconnection ensured reliability across browsers
Challenges Overcome
- →Turn-Taking: State machine with explicit turn management solved guests talking over each other
- →Context Loss: Maintaining conversation history preserved context between turns
- →Audio Echo: Headphone detection and audio routing isolation prevented feedback
- →Memory Leaks: Proper cleanup in useEffect hooks prevented memory growth
Explore the Project
Dive into the code, read the full documentation, or learn more about production voice AI architecture.