语音识别阶段出错 [阿里FunASR(本地)] 程序内部错误:module 'decoders' has no attribute 'DecodeStream'
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "multiprocessing\pool.py", line 125, in worker
File "videotrans\task\vad.py", line 22, in get_speech_timestamp_silero
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "pyimod02_importers.py", line 457, in exec_module
File "faster_whisper\__init__.py", line 2, in
from faster_whisper.transcribe import BatchedInferencePipeline, WhisperModelFile "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "pyimod02_importers.py", line 457, in exec_module
File "faster_whisper\transcribe.py", line 15, in
import tokenizersFile "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "pyimod02_importers.py", line 457, in exec_module
File "tokenizers\__init__.py", line 94, in
from .implementations import (File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "pyimod02_importers.py", line 457, in exec_module
File "tokenizers\implementations\__init__.py", line 1, in
from .base_tokenizer import BaseTokenizerFile "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "pyimod02_importers.py", line 457, in exec_module
File "tokenizers\implementations\base_tokenizer.py", line 4, in
from tokenizers.decoders import DecoderFile "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "pyimod02_importers.py", line 457, in exec_module
File "tokenizers\decoders\__init__.py", line 15, in
DecodeStream = decoders.DecodeStreamAttributeError: module 'decoders' has no attribute 'DecodeStream'
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "videotrans\task\job.py", line 105, in run
File "videotrans\task\_speech2text.py", line 159, in recogn
File "videotrans\recognition\__init__.py", line 262, in run
File "videotrans\recognition\_base.py", line 143, in run
File "videotrans\recognition\_funasr.py", line 50, in _exec
File "videotrans\recognition\_base.py", line 317, in cut_audio
File "videotrans\recognition\_base.py", line 121, in _vad_split
File "videotrans\configure\_base.py", line 285, in _new_process
File "videotrans\process\signelobj.py", line 13, in result
File "multiprocessing\pool.py", line 774, in get
AttributeError: module 'decoders' has no attribute 'DecodeStream'
TaskCfgSTT(is_cuda=True, uuid='a4b02a1974', cache_folder='D:/整個硬盤臨時存放/win-videotrans-v3.66-tiny/tmp/5692/a4b02a1974', target_dir='f:/win-videotrans-v3.66-tiny/pyvideotrans/recogn', source_language=None, source_language_code=None, source_sub=None, source_wav=None, source_wav_output=None, target_language=None, target_language_code=None, target_sub='f:/win-videotrans-v3.66-tiny/pyvideotrans/recogn/首台风机基础浇筑管控培训.srt', target_wav=None, target_wav_output=None, name='F:/北森视频下载/首台风机基础浇筑管控培训.mp4', noextname='首台风机基础浇筑管控培训', basename='首台风机基础浇筑管控培训.mp4', ext='mp4', dirname='F:/北森视频下载', shound_del_name=None, detect_language='zh-cn', recogn_type=3, model_name='Fun-ASR-MLT-Nano-2512', shibie_audio='D:/整個硬盤臨時存放/win-videotrans-v3.66-tiny/tmp/5692/a4b02a1974/首台风机基础浇筑管控培训-1779019316.623929.wav', remove_noise=False, enable_diariz=True, nums_diariz=0, rephrase=1, fix_punc=True)