#4558 这是什么问题啊

74.48* Posted at: 2 hours ago 👁16

image
这是什么问题啊

5 Replies

暂无法确定具体原因,请提供软件安装目录下的 logs/ 文件夹中对应时间的日志文件(复制底部约30行报错信息)以便分析。

程序内部错误:expected str, bytes or os.PathLike object, not NoneType:
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "multiprocessing\pool.py", line 125, in worker
File "videotrans\process\tts_fun.py", line 71, in qwen3tts_fun
File "D:\WINNNNNNN\win-pyvideotrans-v3.99-420\_internal\qwen_tts\inference\qwen3_tts_model.py", line 118, in from_pretrained

processor = AutoProcessor.from_pretrained(pretrained_model_name_or_path, fix_mistral_regex=True,)

File "transformers\models\auto\processing_auto.py", line 396, in from_pretrained

return processor_class.from_pretrained(

File "transformers\processing_utils.py", line 1394, in from_pretrained

args = cls._get_arguments_from_pretrained(pretrained_model_name_or_path, **kwargs)

File "transformers\processing_utils.py", line 1453, in _get_arguments_from_pretrained

args.append(attribute_class.from_pretrained(pretrained_model_name_or_path, **kwargs))

File "transformers\tokenization_utils_base.py", line 2113, in from_pretrained

return cls._from_pretrained(

File "transformers\tokenization_utils_base.py", line 2151, in _from_pretrained

slow_tokenizer = (cls.slow_tokenizer_class)._from_pretrained(

File "transformers\tokenization_utils_base.py", line 2359, in _from_pretrained

tokenizer = cls(*init_inputs, **init_kwargs)

File "transformers\models\qwen2\tokenization_qwen2.py", line 179, in init

with open(merges_file, encoding="utf-8") as merges_handle:

TypeError: expected str, bytes or os.PathLike object, not NoneType
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 369, in run
File "videotrans\tts\_base.py", line 137, in run
File "videotrans\tts\_qwenttslocal.py", line 53, in _exec
File "videotrans\configure\_base.py", line 285, in _new_process
File "videotrans\process\signelobj.py", line 13, in result
File "multiprocessing\pool.py", line 774, in get
TypeError: expected str, bytes or os.PathLike object, not NoneType

这是由于 Qwen-TTS 模型加载失败,具体是加载词汇合并文件(merges_file)时传入值为 None,导致路径错误。常见原因是对应配置缺失或模型文件不完整。

解决方案:

  1. 检查 Qwen-TTS 配置
    打开软件菜单 → TTS 设置Qwen-TTS,确认:

    • 若使用本地模型:确保填写了正确的模型目录路径(例如 D:\models\qwen-tts),且该目录下包含 tokenizer.jsonmerges.txt 等必要文件。
    • 若使用在线 API:确认 API 地址格式正确(如 http://127.0.0.1:7860),且后端服务已正常启动。
  2. 重新下载或验证模型文件

    • 如果使用本地模型,请从官方渠道重新下载完整的 Qwen-TTS 模型包,并解压到不含中文和空格的路径中(如 D:\pyVideoTrans\models\qwen-tts)。
  3. 查看日志确认具体原因
    打开 logs/ 文件夹中最新日志,搜索 qwen3_tts_model 相关报错,检查详细路径信息。
  4. 尝试切换其他 TTS 渠道
    若问题持续,可暂时改用 Edge-TTS(内置免费)或其他已确认可用的配音渠道。

请查阅相关文档:

把音频文件放到f5-tts文件夹内,然后在#号后填写音频对应说话文本 就出现这个问题,怎么修正

这是由于 F5-TTS 参考音频的填写格式不正确。参考音频的文件名和对应的说话文本需要按照规范填写,不能随意使用 # 分隔。

修正步骤:

  1. 确认填写方式
    菜单 → TTS 设置 → F5-TTS 中,通常有一个输入框用于同时填写参考音频文件名和说话文本,标准格式是:

    1.wav#这是参考音频中的说话内容
    • # :参考音频的文件名(含后缀,如 1.wav)。
    • # :该音频中实际说出的话(必须与音频内容严格一致)。
  2. 检查参考音频文件

    • 确保音频文件已放入软件安装目录下的 f5-tts 文件夹内。
    • 音频时长建议 3~10 秒,格式为 WAV 或 MP3。
  3. 启动 F5-TTS 后端服务

    • 使用 F5-TTS 需要有独立的 API 服务正在运行(例如通过整合包或源码部署)。
    • 在设置中正确填写 API URL(如 http://127.0.0.1:7860)。
  4. 检查角色选择

    • 在主界面配音角色下拉列表中,选择 clone 角色(代表声音克隆)。

仍然报错?

请提供软件 logs/ 目录下最新日志的底部 30 行信息,以便进一步定位。

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