#183 videotrans.configure._except.SpeechToTextError: iic/SenseVoiceSmall is not registered:FunasrRecogn

IP: 133.18.x.x Posted at: 4 days ago

语音识别阶段出错:Traceback (most recent call last):

File "/Users/kevin/Library/CloudStorage/OneDrive-Personal/1-Kevin/n8n/pyvideotrans/videotrans/recognition/_base.py", line 64, in run

return self._exec()

File "/Users/kevin/Library/CloudStorage/OneDrive-Personal/1-Kevin/n8n/pyvideotrans/videotrans/recognition/_funasr.py", line 68, in _exec

return self._exec1()

File "/Users/kevin/Library/CloudStorage/OneDrive-Personal/1-Kevin/n8n/pyvideotrans/videotrans/recognition/_funasr.py", line 110, in _exec1

model = AutoModel(

File "/Users/kevin/Library/CloudStorage/OneDrive-Personal/1-Kevin/n8n/pyvideotrans/.venv/lib/python3.10/site-packages/funasr/auto/auto_model.py", line 125, in __init__

model, kwargs = self.build_model(kwargs)

File "/Users/kevin/Library/CloudStorage/OneDrive-Personal/1-Kevin/n8n/pyvideotrans/.venv/lib/python3.10/site-packages/funasr/auto/auto_model.py", line 264, in build_model

assert model_class is not None, f'{kwargs["model"]} is not registered'

AssertionError: iic/SenseVoiceSmall is not registered

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "/Users/kevin/Library/CloudStorage/OneDrive-Personal/1-Kevin/n8n/pyvideotrans/videotrans/task/job.py", line 77, in run

trk.recogn()

File "/Users/kevin/Library/CloudStorage/OneDrive-Personal/1-Kevin/n8n/pyvideotrans/videotrans/task/_speech2text.py", line 93, in recogn

raw_subtitles = run(

File "/Users/kevin/Library/CloudStorage/OneDrive-Personal/1-Kevin/n8n/pyvideotrans/videotrans/recognition/__init__.py", line 217, in run

return FunasrRecogn(kwargs).run()

File "/Users/kevin/Library/CloudStorage/OneDrive-Personal/1-Kevin/n8n/pyvideotrans/videotrans/recognition/_base.py", line 67, in run

raise SpeechToTextError(f'{e}:{self.__class__.__name__}') from e

videotrans.configure._except.SpeechToTextError: iic/SenseVoiceSmall is not registered:FunasrRecogn

=====

macOS-15.6.1-arm64-arm-64bit

version:v3.78

frozen:False

language:zh

1 Replies

Admin

modelscope和pyside6的兼容问题,查看这个文章去修改源码

https://pyvideotrans.com/blog/paraformer-zh-is-not-registered

Post Your Reply

Trending Questions