feat: Implement WebRTC integration following unmute.sh pattern
Peter Michael Gits+1: Claude
af83599
- Add comprehensive Streamlit app with WebRTC voice interface
- Implement JavaScript client following unmute.sh methodology:
* MediaRecorder with 250ms chunks for real-time streaming
* WebM/Opus format (16kHz, mono) for optimal quality
* Flush trick implementation for end-of-stream processing
* Automatic chunking and buffering with status updates
- Create FastAPI WebSocket server for WebRTC endpoint handling
- Add Nginx reverse proxy to work within HF Spaces single-port constraint:
* Main app on port 7860 (HF requirement)
* Streamlit on internal port 8501
* FastAPI WebSocket on internal port 8001
* Proxy routing: / -> Streamlit, /ws/webrtc/ -> FastAPI
- Integrate with existing WebRTC handler for STT/TTS services
- Real-time bidirectional voice communication ready
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>