Skip to content
Discussion options

You must be logged in to vote

Update for current FunASR (main at 1d8080a, verified on 2026-07-15).

The important distinction is:

  • Within one streaming request, reuse the same cache. Timestamps are absolute milliseconds from the start of that request, so they are expected to increase across chunks.
  • Between independent requests, use a new cache dictionary. Do not share one cache across recordings, users, or WebSocket connections.

The original post uses the historical ModelScope pipeline API. The current native FunASR API is AutoModel.

Non-streaming VAD

from funasr import AutoModel

model = AutoModel(model="fsmn-vad", device="cpu", disable_update=True)
wav_file = f"{model.model_path}/example/vad_example.wav"

result = m…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by LauraGPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants