
[DEBUG] 测试Google翻译测试返回status_code=0
[WARNING] 检测google翻译失败:status_code=0,改为使用微软翻译
[DEBUG] 以纯文本行形式翻译,每次翻译10行,翻译后暂停0.0s
[DEBUG] 本次跳过翻译,使用缓存
[DEBUG] 本次跳过翻译,使用缓存
[DEBUG] 原始行数:11,翻译后行数:11
[DEBUG] 原始语言字幕和目标语言字幕行数一致,均为 source_len=11
[DEBUG] line_roles={}
[DEBUG] 语音克隆模式下,所用参考音频为:/Users/mac/pyvideotrans/tmp/73926/719b376297/clone_ref_44100.wav
[DEBUG] 裁切对应片段为参考音频:00:00:00,000->00:00:03,040
当前it={'text': 'Nước không phải là thứ duy nhất ở dưới đó.', 'line': 1, 'start_time': 0, 'end_time': 3040, 'startraw': '00:00:00,000', 'endraw': '00:00:03,040', 'ref_text': "The water's not the only thing down there.", 'start_time_source': 0, 'end_time_source': 3040, 'role': 'clone', 'rate': '+0%', 'volume': '+0%', 'pitch': '+0Hz', 'tts_type': 2, 'filename': '/Users/mac/pyvideotrans/tmp/73926/719b376297/0-25949b1203cef0e1020e925b43fdae72.wav', 'ref_wav': '/Users/mac/pyvideotrans/tmp/73926/719b376297/clone-0.wav'
......
, 'endraw': '00:01:55,460', 'ref_text': "we're not climbing back. Then they'll slow me down. you", 'start_time_source': 96600, 'end_time_source': 115460, 'role': 'clone', 'rate': '+0%', 'volume': '+0%', 'pitch': '+0Hz', 'tts_type': 2, 'filename': '/Users/mac/pyvideotrans/tmp/73926/719b376297/10-7c1792372c1fd97e37f23253114bde16.wav', 'ref_wav': '/Users/mac/pyvideotrans/tmp/73926/719b376297/clone-10.wav', 'ref_language': 'en'}
[DEBUG] self.volume='+0%', self.rate='+0%', self.pitch='+0Hz'
[DEBUG] 当前使用配音渠道:F5-TTS(Built-in)
[DEBUG] app_cfg.proxy=None
[DEBUG] 无法连接 huggingface.co, 使用镜像替换: hf-mirror.com
[ERROR] 单视频模式翻译失败module 'torch' has no attribute 'xpu'
Traceback (most recent call last):
File "/Users/mac/pyvideotrans/videotrans/task/only_one.py", line 107, in run
trk.dubbing()File "/Users/mac/pyvideotrans/videotrans/task/_stage_dubbing.py", line 24, in dubbing
self._tts()File "/Users/mac/pyvideotrans/videotrans/task/_stage_dubbing.py", line 101, in _tts
run_tts(File "/Users/mac/pyvideotrans/videotrans/tts/__init__.py", line 119, in run
return _cls(**kwargs).run() # type:ignoreFile "/Users/mac/pyvideotrans/videotrans/tts/_base.py", line 96, in run
self._exec()File "/Users/mac/pyvideotrans/videotrans/tts/_f5tts.py", line 57, in _exec
from videotrans.process.f5_tts import f5tts_funFile "/Users/mac/pyvideotrans/videotrans/process/f5_tts.py", line 23, in
from f5_tts.api import F5TTSFile "/Users/mac/pyvideotrans/.venv/lib/python3.10/site-packages/f5_tts/api.py", line 11, in
from f5_tts.infer.utils_infer import (File "/Users/mac/pyvideotrans/.venv/lib/python3.10/site-packages/f5_tts/infer/utils_infer.py", line 42, in
if torch.xpu.is_available()File "/Users/mac/pyvideotrans/.venv/lib/python3.10/site-packages/torch/__init__.py", line 1938, in getattr
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")AttributeError: module 'torch' has no attribute 'xpu'
