Skip to content

语音识别阶段出错 [faster-whisper(本地)] 程序内部错误:module 'decoders' has no attribute 'DecodeStream' #989

@bingqiang

Description

@bingqiang
Image

语音识别阶段出错 [faster-whisper(本地)] 程序内部错误:module 'decoders' has no attribute 'DecodeStream'
concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
File "concurrent\futures\process.py", line 246, in _process_worker
File "videotrans\process\stt_fun.py", line 330, in faster_whisper
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
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\transcribe.py", line 15, in
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_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 BaseTokenizer
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\base_tokenizer.py", line 4, in
from tokenizers.decoders import Decoder
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\decoders_init
.py", line 15, in
DecodeStream = decoders.DecodeStream
AttributeError: 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 152, in recogn
File "videotrans\recognition_init_.py", line 265, in run
File "videotrans\recognition_base.py", line 143, in run
File "videotrans\recognition_overall.py", line 33, in _exec
File "videotrans\recognition_overall.py", line 105, in _faster
File "videotrans\configure_base.py", line 284, in _new_process
File "concurrent\futures_base.py", line 458, in result
File "concurrent\futures_base.py", line 403, in __get_result
AttributeError: module 'decoders' has no attribute 'DecodeStream'
TaskCfgSTT(is_cuda=True, uuid='8052205b4a', cache_folder='D:/program/win-videotrans/tmp/28032/8052205b4a', target_dir='C:/Users/郭强/Videos/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='C:/Users/郭强/Videos/pyvideotrans/recogn/Trucks.srt', target_wav=None, target_wav_output=None, name='D:/Trucks.mp3', noextname='Trucks', basename='Trucks.mp3', ext='mp3', dirname='D:/', shound_del_name=None, detect_language='en', recogn_type=0, model_name='large-v3-turbo', shibie_audio='D:/program/win-videotrans/tmp/28032/8052205b4a/Trucks-1773061081.8635912.wav', remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=-1, fix_punc=False)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions