#4242 TaskCfg(cache_folder='D:/SOS/win-pyvideotrans-v3.92/tmp/13100/512479a5c2', target_dir='F:/沙漏/JERA-022-C', remove_noise=F

110.90* Posted at: 2 hours ago 👁5

程序内部错误:'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/13100/512479a5c2', 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='489155.com@JERA-022-C', 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='512479a5c2', 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

这是由于配音合成过程中读取生成的 WAV 音频文件失败导致的,通常是因为该音频文件损坏、不完整或为 0KB

解决方案:

  1. 检查配音文件:前往 F:/沙漏/JERA-022-C/ 目录,查看 [email protected] 文件大小是否为 0KB 或极小。如果文件有误,说明该步骤配音生成存在问题。
  2. 排查配音渠道

    • 如果您使用的是 Edge-TTS 渠道,请前往 菜单-工具-高级选项-字幕配音调整,将 EdgeTTS配音渠道配音并发数 设为 1配音后暂停秒 设为 3-5,避免请求过频导致文件损坏。
    • 如果使用本地 TTS(如 F5-TTSCosyVoice),请确认外部 TTS 服务仍在运行且无报错。
  3. 更新版本:当前版本 v3.92 较旧,建议备份配置后下载完整包升级至最新版 v3.99,该问题可能已被修复。
  4. 单独重试此步骤:删除该 .wav 文件,在软件主界面勾选 清理已生成,仅对这条字幕重新运行配音任务。

请查阅相关文档:

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