Skip to content
项目

pengzhendong/streaming-sensevoice

在 GitHub 查看

关于

支持热词的 SenseVoice 伪流式处理。

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
-3
15天
-2
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

streaming-sensevoice

Streaming SenseVoice processes inference in chunks of SenseVoice.

Usage

  • transcribe wav file
$ python main.py

  • transcribe from microphone
$ python realtime.py
  • transcribe from websocket

A basic WebSocket service built with Recorder and FastAPI; the frontend uses MP3 format to transmit audio information to reduce latency and increase stability.

pip install -r requirements-ws-demo.txt
python realtime_ws_server_demo.py

# check cli options
python realtime_ws_server_demo.py --help

Then open http://127.0.0.1:8000/ in your browser and click Start Recording.

Notes:

  • The page is served by the demo server. Do not open realtime_ws_client.html directly as a file — the WebSocket address is derived from the page host, so it only works when accessed via http(s)://<server>/.
  • Browsers only grant microphone access on localhost or HTTPS pages. For remote access, serve behind HTTPS or use an SSH tunnel.
  • The page loads the Recorder library from jsdelivr CDN; make sure the CDN is reachable (or vendor recorder-core.js, engine/mp3.js, engine/mp3-engine.js locally).

探索相关项目

加载中…