Skip to content
Discussion options

You must be logged in to vote

Update for current FunASR: the 2023 reply predates the current Python hotword API.

There is one important distinction:

  • The local Python AutoModel pipeline does not load a compiled WFST/FST graph.
  • paraformer-zh supports SeACo neural hotword bias through the singular hotword argument.
  • Weighted WFST/FST hotwords remain a C++/ONNX runtime feature.

For the current Python pipeline:

from funasr import AutoModel

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

wav_file = f"{model.model_path}/example/asr_example.wav"

plain = model.generate(
    input=wav_file,
    batch_size_s=300,
)[0]

biased = model.

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