HKAllThingsLink/streaming-asr
À propos
A lightweight client-server system for real-time audio processing with voice activity detection (VAD) and automatic speech recognition (ASR).
Design et médiasWhat you can do
- Browser-based Audio Capture: Record audio directly in the browser using Web Audio API
- Real-time Streaming: Efficient WebSocket communication for low-latency audio transmission
- Voice Activity Detection: Server-side VAD to detect speech segments and reduce unnecessary processing
- Speech Recognition: Integrated ASR for real-time transcription
Progression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalReal-Time Voice Activity Detection & Speech Recognition
A lightweight client-server system for real-time audio processing with voice activity detection (VAD) and automatic speech recognition (ASR). This project demonstrates a complete pipeline from browser-based audio recording to real-time speech transcription.
✨ Features
- Browser-based Audio Capture: Record audio directly in the browser using Web Audio API
- Real-time Streaming: Efficient WebSocket communication for low-latency audio transmission
- Voice Activity Detection: Server-side VAD to detect speech segments and reduce unnecessary processing
- Speech Recognition: Integrated ASR for real-time transcription
🏗️ System Architecture
┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ Browser │ │ WebSocket │ │ VAD │ │ ASR │
│ Client │───▶│ Server │───▶│ Detection │───▶│ Engine │
│ (React) │ │ (Node.js) │ │ │ │ │
└─────────────┘ └─────────────┘ └─────────────┘ └─────────────┘
│ │ │ │
JavaScript Audio Frames Speech/Noise Transcription
Recording Transmission Detection Result
🚀 Quick Start
Prerequisites
- Modern browser with Web Audio API support
- Python 3.8+ (for ASR engine, if using Python-based solution)
Installation
- Clone the repository
git clone https://github.com/HKAllThingsLink/streaming-asr.git
cd streaming-asr
- Install server dependencies
pip install -r requirements.txt
Running the Application
- Start the WebSocket server
cd streaming-asr
python main.py
# Server runs on http://localhost:9871
- Open your browser and navigate to
http://localhost:9871 - Allow microphone permissions and start speaking
🛠️ Technology Stack
Frontend
- Web Audio API - Audio capture and processing
- WebSocket - Real-time communication
Backend
- WebSocket - Real-time bidirectional communication
- webrtcvad - Voice activity detection
- SenseVoiceSmall - ASR engine
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
Note: This is a demonstration project. For production use, consider additional optimizations for scalability, security, and reliability.
Explorer des projets similaires
Chargement…