#5359 语音识别阶段出错[阿里FunASR(本地)(本地内置)] FunASRPipeline: GenericFunASR: Not found: "D:/My Softwares/视频翻译配音 Pyvideotran 4.03-0622/mod

120.217* Posted at: 2 days ago

语音识别阶段出错[阿里FunASR(本地)(本地内置)] FunASRPipeline: GenericFunASR: Not found: "D:/My Softwares/视频翻译配音 Pyvideotran 4.03-0622/models\models\iic\SenseVoiceSmall\chn_jpn_yue_eng_ko_spectok.bpe.model": No such file or directory Error #2:Traceback (most recent call last):
File "modelscope\utils\registry.py", line 209, in build_from_cfg

return obj_cls._instantiate(**args)

File "modelscope\models\base\base_model.py", line 85, in _instantiate

return cls(**kwargs)

File "D:\My Softwares\视频翻译配音 Pyvideotran 4.03-0622\_internal\modelscope\models\audio\funasr\model.py", line 55, in init

self.model = AutoModel(model=model_dir, **kwargs)

File "funasr\auto\auto_model.py", line 135, in init

model, kwargs = self.build_model(**kwargs)

File "funasr\auto\auto_model.py", line 245, in build_model

tokenizer = tokenizer_class(**tokenizer_conf)

File "D:\My Softwares\视频翻译配音 Pyvideotran 4.03-0622\_internal\funasr\tokenizer\sentencepiece_tokenizer.py", line 23, in init
......
unasr.py", line 61, in _exec

File "videotrans\configure\base.py", line 272, in _new_process

videotrans.configure.excepts.VideoTransError: FunASRPipeline: GenericFunASR: Not found: "D:/My Softwares/视频翻译配音 Pyvideotran 4.03-0622/models\models\iic\SenseVoiceSmall\chn_jpn_yue_eng_ko_spectok.bpe.model": No such file or directory Error #2:Traceback (most recent call last):
File "modelscope\utils\registry.py", line 209, in build_from_cfg

return obj_cls._instantiate(**args)

File "modelscope\models\base\base_model.py", line 85, in _instantiate

return cls(**kwargs)

File "D:\My Softwares\视频翻译配音 Pyvideotran 4.03-0622\_internal\modelscope\models\audio\funasr\model.py", line 55, in init

self.model = AutoModel(model=model_dir, **kwargs)

File "funasr\auto\auto_model.py", line 135, in init

model, kwargs = self.build_model(**kwargs)

File "funasr\auto\auto_model.py", line 245, in build_model

tokenizer = tokenizer_class(**tokenizer_conf)

File "D:\My Softwares\视频翻译配音 Pyvideotran 4.03-0622\_internal\funasr\tokenizer\sentencepiece_tokenizer.py", line 23, in init

self._build_sentence_piece_processor()

File "D:\My Softwares\视频翻译配音 Pyvideotran 4.03-0622\_internal\funasr\tokenizer\sentencepiece_tokenizer.py", line 32, in _build_sentence_piece_processor

self.sp.load(self.bpemodel)

File "sentencepiece\__init__.py", line 961, in Load
File "sentencepiece\__init__.py", line 316, in LoadFromFile
OSError: Not found: "D:/My Softwares/视频翻译配音 Pyvideotran 4.03-0622/models\models\iic\SenseVoiceSmall\chn_jpn_yue_eng_ko_spectok.bpe.model": No such file or directory Error #2

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

Traceback (most recent call last):
File "modelscope\utils\registry.py", line 211, in build_from_cfg

return obj_cls(**args)

File "D:\My Softwares\视频翻译配音 Pyvideotran 4.03-0622\_internal\modelscope\pipelines\audio\funasr_pipeline.py", line 62, in init

super().__init__(model=model, **kwargs)

File "modelscope\pipelines\base.py", line 104, in init

self.model = self.initiate_single_model(model, **kwargs)

File "modelscope\pipelines\base.py", line 56, in initiate_single_model

return Model.from_pretrained(

File "modelscope\models\base\base_model.py", line 217, in from_pretrained

model = build_model(

File "modelscope\models\builder.py", line 35, in build_model

model = build_from_cfg(

File "modelscope\utils\registry.py", line 214, in build_from_cfg

raise type(e)(f'{obj_cls.__name__}: {e}') from e

OSError: GenericFunASR: Not found: "D:/My Softwares/视频翻译配音 Pyvideotran 4.03-0622/models\models\iic\SenseVoiceSmall\chn_jpn_yue_eng_ko_spectok.bpe.model": No such file or directory Error #2

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

Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 602, in funasr_mlt
File "modelscope\pipelines\builder.py", line 229, in pipeline

return build_pipeline(cfg, task_name=task)

File "modelscope\pipelines\builder.py", line 69, in build_pipeline

return build_from_cfg(

File "modelscope\utils\registry.py", line 214, in build_from_cfg

raise type(e)(f'{obj_cls.__name__}: {e}') from e

OSError: FunASRPipeline: GenericFunASR: Not found: "D:/My Softwares/视频翻译配音 Pyvideotran 4.03-0622/models\models\iic\SenseVoiceSmall\chn_jpn_yue_eng_ko_spectok.bpe.model": No such file or directory Error #2
cfg=[TaskCfgVTT]当前工作模式: 转录并翻译字幕
原始输入文件名: E:/5/01.1080p.HD国语中字无水印[最新电影www.dyg7.com].mkv,
输出结果保存到文件夹: E:/5/_video_out/01.1080p.HD国语中字无水印[最新电影www.dyg7.com]-mkv,
临时文件夹: D:/My Softwares/视频翻译配音 Pyvideotran 4.03-0622/tmp/5040/12816d4a28
已选 清理已存在
已选 启用CUDA加速
未选 降噪
语音识别:阿里FunASR(本地)(本地内置), model_name: SenseVoiceSmall, 发音语言: 简体中文, 断句方式:默认断句
发音语言和目标语言相同,不翻译字幕
输出字幕格式: 单字幕
代理地址:


=
system:Windows-10-10.0.26200-SP0
version:v4.03
frozen:True
language:zh
root_dir:D:/My Softwares/视频翻译配音 Pyvideotran 4.03-0622

1 Replies

模型文件缺失或下载不完整导致。软件目录路径包含中文和空格(D:/My Softwares/视频翻译配音 Pyvideotran...),可能干扰模型下载或加载。

解决方案:

  1. 更换语音识别渠道(推荐):改用 faster-whisper(本地) + large-v3 模型,或 Qwen-ASR(本地),中文效果同样优秀且模型下载更可靠。
  2. 手动补全模型文件(如仍想用FunASR):

    • 确保软件已解压至无中文、无空格的路径(例如 D:\pyVideoTrans\)。
    • 删除 models\models--iic--SenseVoiceSmall 文件夹(若存在),重新运行软件,让其自动下载。
    • 若自动下载仍失败,请从镜像站手动下载模型文件并放置到 models\models\iic\SenseVoiceSmall\ 目录下(镜像地址:https://modelscope.cn/models/iic/SenseVoiceSmall/files

请查阅相关文档:

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update. Dondate: ko-fi.com/jianchang512

Related resource