#4243 TaskCfg(cache_folder='D:/SOS/win-pyvideotrans-v3.92/tmp/8164/7bb22ae454', target_dir='F:/沙漏/JERA-022-C', remove_noise=Fa

110.90* Posted at: 3 hours ago 👁14

程序内部错误:'NoneType' object has no attribute 'seek'
Traceback (most recent call last):
File "pydub\audio_segment.py", line 670, in from_file
File "pydub\audio_segment.py", line 818, in _from_safe_wav
AttributeError: 'NoneType' object has no attribute 'seek'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 259, in run
File "videotrans\task\_dubbing.py", line 268, in align
File "videotrans\task\_rate.py", line 278, in run
File "videotrans\task\_rate.py", line 819, in _concat_audio
File "pydub\audio_segment.py", line 678, in from_file
AttributeError: 'NoneType' object has no attribute 'seek'

TaskCfg(cache_folder='D:/SOS/win-pyvideotrans-v3.92/tmp/8164/7bb22ae454', target_dir='F:/沙漏/JERA-022-C', remove_noise=False, is_separate=False, detect_language=None, subtitle_language=None, source_language=None, target_language=None, source_language_code=None, target_language_code='zh-cn', source_sub=None, target_sub='F:/沙漏/JERA-022-C/[email protected]', source_wav=None, source_wav_output=None, target_wav='F:/沙漏/JERA-022-C/[email protected]', target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='[email protected]', shibie_audio=None, targetdir_mp4=None, instrument=None, vocal=None, back_audio=None, background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Xiaoxiao(Female/CN)', copysrt_rawvideo=False, clear_cache=False, translate_type=None, tts_type=0, recogn_type=None, model_name=None, split_type=0, voice_autorate=True, video_autorate=False, cuda=False, name='F:/沙漏/JERA-022-C/[email protected]', basename='[email protected]', ext='srt', dirname='F:/沙漏/JERA-022-C', shound_del_name=None, uuid='7bb22ae454', remove_silent_mid=False, align_sub_audio=False, enable_diariz=False, nums_diariz=0, rephrase=2, only_out_mp4=False)


=
system:Windows-10-10.0.26200-SP0
version:v3.92
frozen:True
language:zh
root_dir:D:/SOS/win-pyvideotrans-v3.92

1 Replies

此错误的根本原因是 pydub 在处理 WAV 音频文件时,无法正确打开或读取该文件,导致返回了 None

通常是由于以下两个原因造成的:

  1. 文件路径问题:你提供的输入文件(f5-tts 参考音频或临时生成的 WAV 文件)路径中包含特殊符号(如 @#、括号、表情符号等)或文件名过长,导致 ffmpeg 无法正常解析。
  2. 缓存文件损坏:之前的处理过程中,临时生成的 WAV 音频文件(位于 D:/SOS/win-pyvideotrans-v3.92/tmp/ 目录下)不完整或已损坏。

解决方案(请按顺序尝试):

步骤 1:重命名输入文件
将所有输入的视频/SRT/WAV 文件重命名,确保文件名只包含英文字母、数字、短横线(-)和下划线(_)。例如,将 [email protected] 重命名为 luna_489155.srt,将对应的 WAV 文件也做同样处理。

步骤 2:清理缓存并重试

  1. 在主界面左上角,勾选 清理已生成 复选框。
  2. 删除软件根目录下的 tmp 文件夹内的所有内容。
  3. 重新启动任务。

步骤 3:检查参考音频(如果使用了声音克隆)
如果你在配音角色中选择了 clone(克隆),请确保放在 f5-tts 文件夹内的参考音频文件同样遵循“步骤1”中的命名规则,且文件格式为标准的 WAV 或 MP3,时长在 3-10 秒之间。

请查阅相关文档:

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.

Related resource