Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.
Python asraudiochineseemotion-recognitionfunasrmcp-servermultilingual-asropenai-compatible-apiparaformerpunctuationpytorchreal-time-asrspeaker-diarizationspeech-recognitionspeech-to-textstreaming-asrtranscriptionvllmvoice-activity-detectionwhisper-alternative
Merge branch 'main' into dev_cmz2
zhifu gao2e769fb36ce8
diff --cc funasr/runtime/python/onnxruntime/demo.pyindex 48d54e909,f0f39d776..8fc82f1a7--- a/funasr/runtime/python/onnxruntime/demo.py+++ b/funasr/runtime/python/onnxruntime/demo.py@@@ -1,13 -1,15 +1,15 @@@-from funasr_onnx import Paraformer- model_dir = "/Users/shixian/code/funasr/export/damo/speech_paraformer-tiny-commandword_asr_nat-zh-cn-16k-vocab544-pytorch"+- # if you use paraformer-tiny-commandword_asr_nat-zh-cn-16k-vocab544-pytorch, you should set pred_bias=0- # plot_timestamp_to works only when using speech_paraformer-large-vad-punc_asr_nat-zh-cn-16k-common-vocab8404-pytorch- model = Paraformer(model_dir, batch_size=2, plot_timestamp_to="./", pred_bias=0)+ model_dir = "/nfs/zhifu.gzf/export/damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch"++ model = Paraformer(model_dir, batch_size=2, plot_timestamp_to="./", pred_bias=0) # cpu+ # model = Paraformer(model_dir, batch_size=2, plot_timestamp_to="./", pred_bias=0, device_id=0) # gpu++ # when using paraformer-large-vad-punc model, you can set plot_timestamp_to="./xx.png" to get figure of alignment besides timestamps+ # model = Paraformer(model_dir, batch_size=1, plot_timestamp_to="test.png")- wav_path = "/Users/shixian/code/funasr/export/damo/speech_paraformer-tiny-commandword_asr_nat-zh-cn-16k-vocab544-pytorch/example/asr_example.wav"-+ wav_path = "YourPath/xx.wav"result = model(wav_path)- print(result)+ print(result)