Go to file
Bifang 24b4b62fa9 refactor: organize backend and frontend directories 2026-09-23 15:05:10 +08:00
backend refactor: organize backend and frontend directories 2026-09-23 15:05:10 +08:00
frontend refactor: organize backend and frontend directories 2026-09-23 15:05:10 +08:00
scripts refactor: organize backend and frontend directories 2026-09-23 15:05:10 +08:00
.env.example Split FunASR frontend and backend services 2026-09-23 10:30:16 +08:00
.env.funasr.example refactor: organize backend and frontend directories 2026-09-23 15:05:10 +08:00
.env.qwen_legacy.example Split FunASR frontend and backend services 2026-09-23 10:30:16 +08:00
.gitignore first commit 2026-09-22 14:35:42 +08:00
FUNASR_README.md refactor: organize backend and frontend directories 2026-09-23 15:05:10 +08:00
README.md refactor: organize backend and frontend directories 2026-09-23 15:05:10 +08:00
README_QWEN_LEGACY.md refactor: organize backend and frontend directories 2026-09-23 15:05:10 +08:00
model_manifest.json Add FunASR streaming model download config 2026-09-23 11:09:09 +08:00
pyproject.toml refactor: organize backend and frontend directories 2026-09-23 15:05:10 +08:00
pyproject_qwen_legacy.toml refactor: organize backend and frontend directories 2026-09-23 15:05:10 +08:00

README.md

FunASR realtime ASR demo

This project keeps the frontend and backend in separate directories. The frontend serves the original Tencent demo assets from frontend/static/ unchanged.

Project layout

  • backend/: FunASR WebSocket adapter, native engine launcher, CAM++ service, and backend dependencies.
  • frontend/: Tencent demo files, static HTTP/WebSocket proxy, and frontend dependencies.
  • scripts/: shared model download tools and the model manifest.

Install and download models

Install a host-compatible PyTorch/torchaudio build first. Then install backend dependencies, copy the example environment file, and download the FunASR runtime models:

python -m pip install -r backend/requirements-funasr.txt
python -m pip install -r backend/requirements-auxiliary.txt
python -m pip install -r frontend/requirements.txt
if (-not (Test-Path .env)) { Copy-Item .env.funasr.example .env }
python scripts/download_models.py --funasr-runtime

Start

Run the backend and frontend in separate terminals from the project root:

python backend/run_backend.py
python frontend/run_frontend.py

The backend supervises CAM++, FunASR native WSS, and the browser protocol adapter. The frontend serves the unchanged Tencent page and proxies its same-origin /ws and /api/stop requests to the backend. Configure ports and model locations in .env.