Leonard Li
4999dc7632
Raise real exceptions instead of strings in the runtime Python bindings
...
`raise "some message"` is invalid in Python 3 — a str is not an exception — so
the interpreter discards the message and raises
TypeError: exceptions must derive from BaseException
instead. Paired with a bare `except:`, the original cause is lost too, and the
user is told to install something they may already have.
Concretely: funasr was installed, but importing it failed on a missing
torchaudio. The message said 'please install funasr', the traceback said
TypeError, and the actual ModuleNotFoundError was nowhere to be seen.
This converts all 30 occurrences under runtime/python to real exceptions:
- guarded imports -> except ImportError as e: raise ImportError(...) from e
- everything else -> except Exception as e: raise RuntimeError(...) from e
`from e` keeps the original traceback, so a missing transitive dependency stays
visible. Narrowing the bare `except:` also stops unrelated failures from being
reported as a missing package — the model_dir branch in particular fired for any
failure, so a mistyped path also surfaced as TypeError.
Messages are unchanged. No behaviour changes beyond the exception type.
2026-08-22 12:35:50 -04:00
zhifu gao and zhifu gao
19a903fa87
Use QwenAudio canonical repository links ( #3412 )
...
Co-authored-by: zhifu gao <[email protected] >
2026-07-24 19:01:36 +08:00
zhifu gao and LauraGPT
e8bdb884dc
Refresh public FunASR entrypoint links ( #3361 )
...
Co-authored-by: LauraGPT <[email protected] >
2026-07-23 05:42:04 +08:00
zhifu gao
53e397d2fa
docs: refresh stale public FunASR links
...
Replace stale public docs and clone hosts with current FunASR URLs, with regression coverage.
2026-07-22 22:23:19 +08:00
zhifu gao
92aca6b259
docs: update FunASR repository links
...
Update user-facing documentation links from alibaba-damo-academy/FunASR to modelscope/FunASR.
2026-07-07 18:11:41 +08:00
游雁
cf1facb1a9
v1.1.4
2024-07-27 00:46:15 +08:00
维石
874ed3aaac
bug fix for onnx infer
2024-07-26 11:40:23 +08:00
维石
af1c0d0e30
bug fix
2024-07-26 10:19:32 +08:00
维石
530125dca8
bug fix
2024-07-25 15:39:41 +08:00
游雁
5ae7062540
bugfix python runtime
2024-07-24 17:08:59 +08:00
维石
925910c599
update onnx batch inference
2024-07-23 17:48:48 +08:00
游雁
f62b5193da
python runtime
2024-07-22 20:08:38 +08:00
游雁
7293a7bbe7
python runtime
2024-07-22 20:06:04 +08:00
游雁
3bc0efcc14
python runtime
2024-07-22 20:05:03 +08:00
游雁
0cf7d386c6
python runtime
2024-07-22 20:04:12 +08:00
游雁
ea8e5bb726
python runtime
2024-07-22 20:00:02 +08:00
游雁
c5f7f11b5b
python runtime
2024-07-22 19:53:58 +08:00
游雁
03911c82ec
python runtime
2024-07-22 17:16:54 +08:00
维石
2ae59b6ce0
ONNX and torchscript export for sensevoice
2024-07-22 16:58:27 +08:00
+11
b7060884fa
Merge Dev tclas ( #1847 )
...
* support clas torchscripts
* fix CompileHotwordEmbedding
* add batch for tensor_hw_emb
* fix func of TimestampOnnx
* fix func of TimestampOnnx
* fix func of TimestampOnnx
* fix paraformer-torch fwd
* fix paraformer-torch fwd
* fix paraformer-torch fwd
* fix ~paraformer-torch
* update funasr-onnx-offline-rtf
* update funasr-onnx-offline-rtf
* update funasr-onnx-offline-rtf
* change tos model names
* fix results of ParaformerTorch::Forward
* fix results of ParaformerTorch::Forward
* add FusionStrategy for torch
* fix paraformer torch
* sync to main (#1826 )
* resume from step
* batch
* batch
* batch
* batch
* batch
* batch
* batch
* batch
* batch
* batch
* batch
* batch
* batch
* batch
* batch
* train_loss_avg train_acc_avg
* train_loss_avg train_acc_avg
* train_loss_avg train_acc_avg
* log step
* wav is not exist
* wav is not exist
* decoding
* decoding
* decoding
* wechat
* decoding key
* decoding key
* decoding key
* decoding key
* decoding key
* decoding key
* dynamic batch
* start_data_split_i=0
* total_time/accum_grad
* total_time/accum_grad
* total_time/accum_grad
* update avg slice
* update avg slice
* sensevoice sanm
* sensevoice sanm
* add
* add
* add
* add
* deepspeed
* update with main (#1731 )
* c++ runtime adapt to 1.0 (#1724 )
* adapt vad runtime to 1.0
* add json
* change yml name
* add func LoadVocabFromJson
* add token file for InitAsr
* add token path for OfflineStream
* add funcOpenYaml
* add token file for InitPunc
* add token file for stream
* update punc-model
* update funasr-wss-server
* update runtime_sdk_download_tool.py
* update docker list
* Delete docs/images/wechat.png
* Add files via upload
* Emo2Vec限定选择的情感类别 (#1730 )
* 限定选择的情感类别
* 使用none来禁用情感标签输出
* 修改输出接口
* 使用unuse来禁用token
---------
Co-authored-by: 常材 <[email protected] >
* bugfix
* v1.0.27
* update docs
* hf hub
* Fix incorrect assignment of 'end' attribute to 'start' in sentences list comprehension (#1680 )
---------
Co-authored-by: Yabin Li <[email protected] >
Co-authored-by: gaochangfeng <[email protected] >
Co-authored-by: 常材 <[email protected] >
Co-authored-by: nsdou <[email protected] >
* docs
* docs
* deepspeed
* deepspeed
* deepspeed
* deepspeed
* update
* ds
* ds
* ds
* ds
* ds
* ds
* ds
* add
* add
* bugfix
* add
* wenetspeech
* wenetspeech
* wenetspeech
* wenetspeech
* wenetspeech
* wenetspeech
* update export
* update export
* update export name
* update
* docs
* update wechat QRcode
* Add python funasr api support for websocket srv (#1777 )
* add python funasr_api supoort
* change little to README.md
* add core tools stream
* modified a little
* fix bug for timeout
* support for buffer decode
* add ffmpeg decode for buffer
* libtorch demo
* update libtorch infer
* update utils
* update demo
* update demo
* update libtorch inference
* update model class
* update seaco paraformer
* bug fix
* bug fix
* auto frontend
* auto frontend
* update with main (#1783 )
* add cmakelist
* add paraformer-torch
* add debug for funasr-onnx-offline
* fix redefinition of jieba StdExtension.hpp
* add loading torch models
* update funasr-onnx-offline
* add SwitchArg for wss-server
* add SwitchArg for funasr-onnx-offline
* update cmakelist
* update funasr-onnx-offline-rtf
* add define condition
* add gpu define for offlne-stream
* update com define
* update offline-stream
* update cmakelist
* update func CompileHotwordEmbedding
* add timestamp for paraformer-torch
* add C10_USE_GLOG for paraformer-torch
* update paraformer-torch
* fix func FunASRWfstDecoderInit
* update model.h
* fix func FunASRWfstDecoderInit
* fix tpass_stream
* update paraformer-torch
* add bladedisc for funasr-onnx-offline
* update comdefine
* update funasr-wss-server
* add log for torch
* fix GetValue BLADEDISC
* fix log
* update cmakelist
* update warmup to 10
* update funasrruntime
* add batch_size for wss-server
* add batch for bins
* add batch for offline-stream
* add batch for paraformer
* add batch for offline-stream
* fix func SetBatchSize
* add SetBatchSize for model
* add SetBatchSize for model
* fix func Forward
* fix padding
* update funasrruntime
* add dec reset for batch
* set batch default value
* add argv for CutSplit
* sort frame_queue
* sorted msgs
* fix FunOfflineInfer
* add dynamic batch for fetch
* fix FetchDynamic
* update run_server.sh
* update run_server.sh
* cpp http post server support (#1739 )
* add cpp http server
* add some comment
* remove some comments
* del debug infos
* restore run_server.sh
* adapt to new model struct
* 修复了onnxruntime在macos下编译失败的错误 (#1748 )
* Add files via upload
增加macos的编译支持
* Add files via upload
增加macos支持
* Add files via upload
target_link_directories(funasr PUBLIC ${ONNXRUNTIME_DIR}/lib)
target_link_directories(funasr PUBLIC ${FFMPEG_DIR}/lib)
添加 if(APPLE) 限制
---------
Co-authored-by: Yabin Li <[email protected] >
* Delete docs/images/wechat.png
* Add files via upload
* fixed the issues about seaco-onnx timestamp
* fix bug (#1764 )
当语音识别结果包含 `http` 时,标点符号预测会把它会被当成 url
* fix empty asr result (#1765 )
解码结果为空的语音片段,text 用空字符串
* docs
* docs
* docs
* docs
* docs
* keep empty speech result (#1772 )
* docs
* docs
* update wechat QRcode
* Add python funasr api support for websocket srv (#1777 )
* add python funasr_api supoort
* change little to README.md
* add core tools stream
* modified a little
* fix bug for timeout
* support for buffer decode
* add ffmpeg decode for buffer
* auto frontend
* auto frontend
---------
Co-authored-by: 雾聪 <[email protected] >
Co-authored-by: zhaomingwork <[email protected] >
Co-authored-by: szsteven008 <[email protected] >
Co-authored-by: Ephemeroptera <[email protected] >
Co-authored-by: 彭震东 <[email protected] >
Co-authored-by: Shi Xian <[email protected] >
Co-authored-by: 维石 <[email protected] >
* auto frontend
* auto frontend
* auto frontend
* auto frontend
* auto frontend
* auto frontend
* Dev gzf exp (#1785 )
* resume from step
* batch
* batch
* batch
* batch
* batch
* batch
* batch
* batch
* batch
* batch
* batch
* batch
* batch
* batch
* batch
* train_loss_avg train_acc_avg
* train_loss_avg train_acc_avg
* train_loss_avg train_acc_avg
* log step
* wav is not exist
* wav is not exist
* decoding
* decoding
* decoding
* wechat
* decoding key
* decoding key
* decoding key
* decoding key
* decoding key
* decoding key
* dynamic batch
* start_data_split_i=0
* total_time/accum_grad
* total_time/accum_grad
* total_time/accum_grad
* update avg slice
* update avg slice
* sensevoice sanm
* sensevoice sanm
* sensevoice sanm
---------
Co-authored-by: 北念 <[email protected] >
* auto frontend
* update with main (#1786 )
* add cmakelist
* add paraformer-torch
* add debug for funasr-onnx-offline
* fix redefinition of jieba StdExtension.hpp
* add loading torch models
* update funasr-onnx-offline
* add SwitchArg for wss-server
* add SwitchArg for funasr-onnx-offline
* update cmakelist
* update funasr-onnx-offline-rtf
* add define condition
* add gpu define for offlne-stream
* update com define
* update offline-stream
* update cmakelist
* update func CompileHotwordEmbedding
* add timestamp for paraformer-torch
* add C10_USE_GLOG for paraformer-torch
* update paraformer-torch
* fix func FunASRWfstDecoderInit
* update model.h
* fix func FunASRWfstDecoderInit
* fix tpass_stream
* update paraformer-torch
* add bladedisc for funasr-onnx-offline
* update comdefine
* update funasr-wss-server
* add log for torch
* fix GetValue BLADEDISC
* fix log
* update cmakelist
* update warmup to 10
* update funasrruntime
* add batch_size for wss-server
* add batch for bins
* add batch for offline-stream
* add batch for paraformer
* add batch for offline-stream
* fix func SetBatchSize
* add SetBatchSize for model
* add SetBatchSize for model
* fix func Forward
* fix padding
* update funasrruntime
* add dec reset for batch
* set batch default value
* add argv for CutSplit
* sort frame_queue
* sorted msgs
* fix FunOfflineInfer
* add dynamic batch for fetch
* fix FetchDynamic
* update run_server.sh
* update run_server.sh
* cpp http post server support (#1739 )
* add cpp http server
* add some comment
* remove some comments
* del debug infos
* restore run_server.sh
* adapt to new model struct
* 修复了onnxruntime在macos下编译失败的错误 (#1748 )
* Add files via upload
增加macos的编译支持
* Add files via upload
增加macos支持
* Add files via upload
target_link_directories(funasr PUBLIC ${ONNXRUNTIME_DIR}/lib)
target_link_directories(funasr PUBLIC ${FFMPEG_DIR}/lib)
添加 if(APPLE) 限制
---------
Co-authored-by: Yabin Li <[email protected] >
* Delete docs/images/wechat.png
* Add files via upload
* fixed the issues about seaco-onnx timestamp
* fix bug (#1764 )
当语音识别结果包含 `http` 时,标点符号预测会把它会被当成 url
* fix empty asr result (#1765 )
解码结果为空的语音片段,text 用空字符串
* docs
* docs
* docs
* docs
* docs
* keep empty speech result (#1772 )
* docs
* docs
* update wechat QRcode
* Add python funasr api support for websocket srv (#1777 )
* add python funasr_api supoort
* change little to README.md
* add core tools stream
* modified a little
* fix bug for timeout
* support for buffer decode
* add ffmpeg decode for buffer
* auto frontend
* auto frontend
* auto frontend
* auto frontend
* auto frontend
* auto frontend
* auto frontend
* auto frontend
* Dev gzf exp (#1785 )
* resume from step
* batch
* batch
* batch
* batch
* batch
* batch
* batch
* batch
* batch
* batch
* batch
* batch
* batch
* batch
* batch
* train_loss_avg train_acc_avg
* train_loss_avg train_acc_avg
* train_loss_avg train_acc_avg
* log step
* wav is not exist
* wav is not exist
* decoding
* decoding
* decoding
* wechat
* decoding key
* decoding key
* decoding key
* decoding key
* decoding key
* decoding key
* dynamic batch
* start_data_split_i=0
* total_time/accum_grad
* total_time/accum_grad
* total_time/accum_grad
* update avg slice
* update avg slice
* sensevoice sanm
* sensevoice sanm
* sensevoice sanm
---------
Co-authored-by: 北念 <[email protected] >
* auto frontend
---------
Co-authored-by: 雾聪 <[email protected] >
Co-authored-by: zhaomingwork <[email protected] >
Co-authored-by: szsteven008 <[email protected] >
Co-authored-by: Ephemeroptera <[email protected] >
Co-authored-by: 彭震东 <[email protected] >
Co-authored-by: Shi Xian <[email protected] >
Co-authored-by: 维石 <[email protected] >
Co-authored-by: 北念 <[email protected] >
* update paraformer timestamp
* auto frontend
* auto frontend
* [Optimization] support bladedisc fp16 optimization (#1790 )
* auto frontend
* auto frontend
* auto frontend
* auto frontend
* auto frontend
* auto frontend
* auto frontend
* auto frontend
* auto frontend
* auto frontend
* auto frontend
* auto frontend
* auto frontend
* auto frontend
* auto frontend
* add cif_v1 and cif_export
* auto frontend
* Update SDK_advanced_guide_offline_zh.md
* add cif_wo_hidden_v1
* auto frontend
* auto frontend
* auto frontend
* fix bug
* [fix] fix empty asr result (#1794 )
* fix bug
* fix bug
* fix bug
* fix bug
* fix bug
* fix bug
* fix bug
* fix bug
* fix bug
* fix bug
* fix bug
* fix bug
* fix bug
* fix bug
* fix bug
* fix bug
* fix bug
* fix bug
* fix bug
* fix bug
* fix bug
* fix bug
* fix bug
* fix bug
* fix bug
* fix bug
* fix bug
* fix bug
* fp16
* english timestamp for valilla paraformer
* fp16
* wechat
* fixbug
* [fix] better solution for handling empty result (#1796 )
* update scripts
* modify the qformer adaptor (#1804 )
Co-authored-by: nichongjia-2007 <[email protected] >
* add ctc inference code (#1806 )
Co-authored-by: haoneng.lhn <[email protected] >
* Update auto_model.py
修复空字串进入speaker model时报raw_text变量不存在的bug
* Update auto_model.py
修复识别出空串后spk_model内变量未定义问题
* update model name
* fix paramter 'quantize' unused issue (#1813 )
Co-authored-by: ZihanLiao <[email protected] >
* wechat
* Update cif_predictor.py (#1811 )
* Update cif_predictor.py
* modify cif_v1_export
under extreme cases, max_label_len calculated by batch_len misaligns with token_num
* Update cif_predictor.py
torch.cumsum precision degradation, using float64 instead
* update code
---------
Co-authored-by: 游雁 <[email protected] >
Co-authored-by: gaochangfeng <[email protected] >
Co-authored-by: 常材 <[email protected] >
Co-authored-by: nsdou <[email protected] >
Co-authored-by: 维石 <[email protected] >
Co-authored-by: zhaomingwork <[email protected] >
Co-authored-by: szsteven008 <[email protected] >
Co-authored-by: Ephemeroptera <[email protected] >
Co-authored-by: 彭震东 <[email protected] >
Co-authored-by: Shi Xian <[email protected] >
Co-authored-by: 北念 <[email protected] >
Co-authored-by: xiaowan0322 <[email protected] >
Co-authored-by: zhuangzhong <[email protected] >
Co-authored-by: Xingchen Song(宋星辰) <[email protected] >
Co-authored-by: nichongjia-2007 <[email protected] >
Co-authored-by: haoneng.lhn <[email protected] >
Co-authored-by: liugz18 <[email protected] >
Co-authored-by: Marlowe <[email protected] >
Co-authored-by: ZihanLiao <[email protected] >
Co-authored-by: zhong zhuang <[email protected] >
* update runtime_sdk_download_tool
* update funasr-wss-server
* update vad_revision
* update funasr-wss-server
* update funasr-wss-server
* update punc quant
* rename torchscript
* Delete examples/industrial_data_pretraining/ctc/infer_from_local.py
* resolve conflicts
---------
Co-authored-by: 游雁 <[email protected] >
Co-authored-by: gaochangfeng <[email protected] >
Co-authored-by: 常材 <[email protected] >
Co-authored-by: nsdou <[email protected] >
Co-authored-by: 维石 <[email protected] >
Co-authored-by: zhaomingwork <[email protected] >
Co-authored-by: szsteven008 <[email protected] >
Co-authored-by: Ephemeroptera <[email protected] >
Co-authored-by: 彭震东 <[email protected] >
Co-authored-by: Shi Xian <[email protected] >
Co-authored-by: 北念 <[email protected] >
Co-authored-by: xiaowan0322 <[email protected] >
Co-authored-by: zhuangzhong <[email protected] >
Co-authored-by: Xingchen Song(宋星辰) <[email protected] >
Co-authored-by: nichongjia-2007 <[email protected] >
Co-authored-by: haoneng.lhn <[email protected] >
Co-authored-by: liugz18 <[email protected] >
Co-authored-by: Marlowe <[email protected] >
Co-authored-by: ZihanLiao <[email protected] >
Co-authored-by: zhong zhuang <[email protected] >
2024-06-25 17:38:04 +08:00
R1ckShi
0f1247d7a8
update scripts
2024-06-11 14:41:21 +08:00
R1ckShi
22e51ec95f
bug fix
2024-06-03 15:56:39 +08:00
维石
487189b949
bug fix
2024-06-03 15:52:20 +08:00
维石
c0e5107b39
update seaco paraformer
2024-06-03 15:48:36 +08:00
维石
d2e9bf0142
update model class
2024-06-03 15:47:00 +08:00
维石
fd0992af3d
update libtorch inference
2024-06-03 15:32:34 +08:00
维石
c5339e8302
update demo
2024-06-03 15:27:16 +08:00
维石
1c96d9aec2
update demo
2024-06-03 15:20:37 +08:00
维石
02667efa75
update utils
2024-06-03 15:18:13 +08:00
维石
f591f33111
update libtorch infer
2024-06-03 15:15:52 +08:00
维石
509d09f50d
libtorch demo
2024-06-03 15:00:46 +08:00
zhifu gao and 维石
861147c730
Dev gzf exp ( #1654 )
...
* sensevoice finetune
* sensevoice finetune
* sensevoice finetune
* sensevoice finetune
* sensevoice finetune
* sensevoice finetune
* sensevoice finetune
* sensevoice finetune
* sensevoice finetune
* sensevoice finetune
* bugfix
* update with main (#1631 )
* update seaco finetune
* v1.0.24
---------
Co-authored-by: 维石 <[email protected] >
* sensevoice
* sensevoice
* sensevoice
* update with main (#1638 )
* update seaco finetune
* v1.0.24
* update rwkv template
---------
Co-authored-by: 维石 <[email protected] >
* sensevoice
* sensevoice
* sensevoice
* sensevoice
* sensevoice
* sensevoice
* sensevoice
* sensevoice
* sensevoice
* sensevoice
* sensevoice
* sensevoice
* sensevoice
* sensevoice
* sensevoice
* sense voice
* sense voice
* sense voice
* sense voice
* sense voice
* sense voice
* sense voice
* sense voice
* sense voice
* sense voice
* sense voice
* sense voice
* sense voice
* sense voice
* sense voice
* sense voice
* sense voice
* sense voice
* sense voice
* sense voice
* whisper
* whisper
* update style
* update style
---------
Co-authored-by: 维石 <[email protected] >
2024-04-24 16:03:38 +08:00
Meng Wei
12d694f94c
fix benchmark links ( #1092 )
2023-11-15 16:24:51 +08:00
702ec03ad8
Dev new ( #1065 )
...
* add hotword for deploy_tools
* Support wfst decoder and contextual biasing (#1039 )
* Support wfst decoder and contextual biasing
* Turn on fstbin compilation
---------
Co-authored-by: gongbo.gb <[email protected] >
* mv funasr/runtime runtime
* Fix crash caused by OOV in hotwords list
* funasr infer
* funasr infer
* funasr infer
* funasr infer
* funasr infer
* fix some bugs about fst hotword; support wfst for websocket server and clients; mv runtime out of funasr; modify relative docs
* del onnxruntime/include/gflags
* update tensor.h
* update run_server.sh
* update deploy tools
* update deploy tools
* update websocket-server
* update funasr-wss-server
* Remove self loop propagation
* Update websocket_protocol_zh.md
* Update websocket_protocol_zh.md
* update hotword protocol
* author zhaomingwork: change hotwords for h5 and java
* update hotword protocol
* catch exception for json_fst_hws
* update hotword on message
* update onnx benchmark for ngram&hotword
* update docs
* update funasr-wss-serve
* add NONE for LM_DIR
* update docs
* update run_server.sh
* add whats-new
* modify whats-new
* update whats-new
* update whats-new
* Support decoder option for beam searching
* update benchmark_onnx_cpp
* Support decoder option for websocket
* fix bug of CompileHotwordEmbedding
* update html client
* update docs
---------
Co-authored-by: gongbo.gb <[email protected] >
Co-authored-by: gongbo.gb <[email protected] >
Co-authored-by: 游雁 <[email protected] >
2023-11-07 18:34:29 +08:00