#8874 Qwen3-TTS(内置): Subprocess Error: Could not find/load shared object file{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+

175.197**3 Posted at: 11 hours ago

Qwen3-TTS(内置): Subprocess Error: Could not find/load shared object file
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'zh_female_nverguo.wav', 'filename': '/Users/xiaohuo/pyvideotrans-latest/tmp/74724/listen_voice/1-zh-cn-1795253025.526575.wav', 'tts_type': 1, 'language': 'zh-cn', 'volume': '+0%', 'pitch': '+0Hz'}
Traceback (most recent call last):
File "/Users/xiaohuo/pyvideotrans-latest/videotrans/util/ListenVoice.py", line 23, in run

tts.run(

File "/Users/xiaohuo/pyvideotrans-latest/videotrans/tts/__init__.py", line 154, in run

return _cls(**kwargs).run()  # type:ignore

File "/Users/xiaohuo/pyvideotrans-latest/videotrans/tts/_base.py", line 98, in run

self._exec()

File "/Users/xiaohuo/pyvideotrans-latest/videotrans/tts/_qwenttslocal.py", line 77, in _exec

self._new_process(callback=qwen3tts_fun,title=title,is_cuda=self.is_cuda,kwargs=kwargs)

File "/Users/xiaohuo/pyvideotrans-latest/videotrans/configure/base.py", line 282, in _new_process

raise VideoTransError(err)

videotrans.configure.excepts.VideoTransError: Subprocess Error: Could not find/load shared object file


=
system:macOS-27.2.1-arm64-arm-64bit
version:v4.19
frozen:False
language:zh_CN
root_dir:/Users/xiaohuo/pyvideotrans-latest
Python: 3.10.19 (main, Feb 12 2026, 00:36:33) [Clang 21.1.4 ]

1 Replies

#1 DeepSeek reply at 11 hours ago

这是 macOS(arm64 架构)源码部署环境下,Qwen3-TTS 子进程在加载本地共享库(.dylib / .so)时失败的典型表现,通常是 Python 依赖包(torch / torchaudio / soundfile / libsndfile 等)未安装完整或架构不匹配导致。

临时绕过方案:

  1. 配音渠道改用 Edge-TTS(免费)、OmniVoice(内置)、ChatterBox(内置) 等其他渠道,先完成视频翻译任务。

尝试修复的步骤(macOS 源码部署):

  1. 安装系统音频库(知识库明确要求 macOS 需先安装):

    brew install libsndfile git
  2. 在项目根目录重新同步依赖:

    uv sync
  3. 确认所用 Python 为 3.10 且为 arm64 版本(不要使用 Rosetta 下的 x86_64 Python),否则 torch 等二进制包架构不符会直接报 “Could not find/load shared object file”。
  4. 首次使用 Qwen3-TTS 需要在线下载模型,若下载不完整也可能间接引发加载失败,可删除 软件目录/models/models--Qwen--Qwen3-TTS-12Hz-0.6B-Base 与 models--Qwen--Qwen3-TTS-12Hz-0.6B-CustomVoice 后重新运行自动下载,或手动下载覆盖。

上述步骤执行后若仍报同样错误,暂无法确定具体原因。请提供软件安装目录下 logs/ 文件夹中最新日志文件(复制底部约 30 行报错信息,含实际缺失的库文件名),以便定位是哪个组件缺失。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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.

Dondate via ko-fi.com

Related resource