Skip to content
Discussion options

You must be logged in to vote

Update for current FunASR 1.3.x: the 2023 modelscope.pipeline(...) examples above describe the legacy API. For the current Python pipeline, use funasr.AutoModel.

Current VAD + ASR + punctuation pipeline

Model IDs and complete local directories are both supported. When using local models, each argument must point to its own complete model directory containing config.yaml, model.pt, and the associated tokenizer/frontend files:

from funasr import AutoModel

model = AutoModel(
    model="/models/paraformer-zh",
    vad_model="/models/fsmn-vad",
    punc_model="/models/ct-punc",
    device="cpu",
    disable_update=True,
)

result = model.generate(
    input="/audio/example.wav",
    batch_size_s

Replies: 4 comments 5 replies

Comment options

LauraGPT
Feb 21, 2023
Maintainer Author

You must be logged in to vote
1 reply
@mattzheng
Comment options

Comment options

You must be logged in to vote
1 reply
@LauraGPT
Comment options

LauraGPT Jul 10, 2023
Maintainer Author

Comment options

You must be logged in to vote
3 replies
@LauraGPT
Comment options

LauraGPT Jul 10, 2023
Maintainer Author

@hildazzz
Comment options

@LumenForgeX
Comment options

Comment options

LauraGPT
Jul 15, 2026
Maintainer Author

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
4 participants