The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "videotrans\task\trans_create.py", line 944, in _split_audio_byraw
File "videotrans\configure\_base.py", line 285, in _new_process
File "concurrent\futures\_base.py", line 458, in result
File "concurrent\futures\_base.py", line 403, in __get_result
ImportError: cannot import name 'OfflineFireRedAsrCtcModelConfig' from 'sherpa_onnx.lib._sherpa_onnx' (G:\pyVideoTrans\_internal\sherpa_onnx\lib\_sherpa_onnx.cp310-win_amd64.pyd)
[ERROR] 人声背景声分离失败:cannot import name 'OfflineFireRedAsrCtcModelConfig' from 'sherpa_onnx.lib._sherpa_onnx' (G:\pyVideoTrans\_internal\sherpa_onnx\lib\_sherpa_onnx.cp310-win_amd64.pyd)
concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
File "concurrent\futures\process.py", line 246, in _process_worker
File "videotrans\process\prepare_audio.py", line 33, in vocal_bgm
File "pyimod02_importers.py", line 457, in exec_module
File "sherpa_onnx\__init__.py", line 85, in
from .offline_recognizer import OfflineRecognizerFile "pyimod02_importers.py", line 457, in exec_module
File "sherpa_onnx\offline_recognizer.py", line 6, in
from sherpa_onnx.lib._sherpa_onnx import (ImportError: cannot import name 'OfflineFireRedAsrCtcModelConfig' from 'sherpa_onnx.lib._sherpa_onnx' (G:\pyVideoTrans\_internal\sherpa_onnx\lib\_sherpa_onnx.cp310-win_amd64.pyd)
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "videotrans\task\trans_create.py", line 944, in _split_audio_byraw
File "videotrans\configure\_base.py", line 285, in _new_process
File "concurrent\futures\_base.py", line 458, in result
File "concurrent\futures\_base.py", line 403, in __get_result
ImportError: cannot import name 'OfflineFireRedAsrCtcModelConfig' from 'sherpa_onnx.lib._sherpa_onnx' (G:\pyVideoTrans\_internal\sherpa_onnx\lib\_sherpa_onnx.cp310-win_amd64.pyd)
[DEBUG] [recognition]__init__:kwargs={'detect_language': 'en', 'audio_file': 'G:/pyVideoTrans/tmp/7680/8ec55691f2/en.wav', 'cache_folder': 'G:/pyVideoTrans/tmp/7680/8ec55691f2', 'model_name': 'medium', 'uuid': '8ec55691f2', 'is_cuda': True, 'subtitle_type': 1, 'recogn_type': 0, 'max_speakers': -1, 'llm_post': False, 'recogn2pass': False}
[DEBUG] BaseRecogn 初始化
[DEBUG] GPU进程池:max_workers=1
[DEBUG] faster-whisper模式下,对medium模型返回的断句结果重新修正
[DEBUG] [语音识别]渠道0,medium:共耗时:12s
self.trans_thread=20,self.aisendsrt=False,self.translate_type=1
[INFO] Starting call to 'videotrans.translator._microsoft.Microsoft._item_task', this is the 1st time calling it.
[DEBUG] [Mircosoft]返回:response=
[DEBUG] 以普通文本行按行翻译:原始行数:17,翻译后行数:17
[DEBUG] [字幕翻译]渠道1,:共耗时:2s
[DEBUG] 本次EdgeTTS配音:重试延迟:5,出错将重试:4,并发:10
[DEBUG] 执行流程:所有配音任务结束。
[DEBUG] 开始执行事件循环的关闭流程...
[DEBUG] 事件循环已关闭。
[DEBUG] [字幕配音]渠道0:共耗时:27s