项目
在 GitHub 查看
HKAllThingsLink/streaming-asr
关于
A lightweight client-server system for real-time audio processing with voice activity detection (VAD) and automatic speech recognition (ASR).
设计与媒体可以做什么
- 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
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Real-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.
探索相关项目
加载中…