#8295 Dubbing failed{'code': 6, 'msg':

85.232**1 Posted at: 1 hour ago

Dubbing failed{'code': 6, 'msg': "'bool' object has no attribute 'any'"}
self.model_name=''
self=[CloneVoice]: uuid='6a34a95c82', proxy_str=None, tts_type=39, len=36, language='ru', play=False, volume='+100%', pitch='+0Hz', rate='+0%', speed=1.0, has_done=0, wait_sec=1.0, dub_nums=1, error='{\'code\': 6, \'msg\': "\'bool\' object has no attribute \'any\'"}', api_url='http://127.0.0.1:9988', is_cuda=True, local_dir=None, is_redubb=False, model_name='', ainame=None
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 108, in run
File "videotrans\task\_stage_dubbing.py", line 24, in dubbing
File "videotrans\task\_stage_dubbing.py", line 101, in _tts
File "videotrans\tts\__init__.py", line 132, in run
File "videotrans\tts\_base.py", line 140, in run
videotrans.configure.excepts.DubbingSrtError: Dubbing failed{'code': 6, 'msg': "'bool' object has no attribute 'any'"}
self.model_name=''
self=[CloneVoice]: uuid='6a34a95c82', proxy_str=None, tts_type=39, len=36, language='ru', play=False, volume='+100%', pitch='+0Hz', rate='+0%', speed=1.0, has_done=0, wait_sec=1.0, dub_nums=1, error='{\'code\': 6, \'msg\': "\'bool\' object has no attribute \'any\'"}', api_url='http://127.0.0.1:9988', is_cuda=True, local_dir=None, is_redubb=False, model_name='', ainame=None

trk=[TransCreate]: uuid='6a34a95c82', proxy_str=None, cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/videos/13.mp4,
输出结果保存到文件夹: D:/videos/RU/13-mp4,
临时文件夹: D:/pyVideoTrans/tmp/5808/6a34a95c82
已选 清理已存在
已启用CUDA加速
未选 降噪
Сервис STT (распознавание):faster-whisper(Built-in), large-v3-turbo, 发音语言: en, LLM纠错
Канал перевода:DeepSeek,原始语言:en,目标语言:ru, 已选 Отправить полный SRT
Канал озвучки (TTS):clone-voice(LocalAPI), 角色:clone, 配音语言:ru, 未选 二次语音识别
音量:+100%, 语速:+0%, 已选 音频加速, 已选 视频慢速
字幕: nosubtitle , precent=15, hasend=False, should_recogn=True, should_trans=True, should_dubbing=True, should_hebing=True, is_copy_video=True, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=True
video_duration_ms=231660


=
system:Windows-10-10.0.19045-SP0
version:v4.16
frozen:True
language:ru
root_dir:D:/pyVideoTrans

1 Replies

#1 DeepSeek reply at 1 hour ago

Root cause: This error is not generated by pyVideoTrans itself. Your TTS channel is clone-voice(LocalAPI) (tts_type=39, api_url=http://127.0.0.1:9988). The payload {'code': 6, 'msg': "'bool' object has no attribute 'any'"} is returned by the local clone-voice service running on port 9988 — it is a Python-side failure inside that project (a boolean being passed where a numpy array is expected), so every dubbing request is rejected before any audio is produced.

Note also that clone-voice is listed as no longer maintained in the supported-channel list, so this kind of environment breakage is expected and will not be fixed upstream.

Solutions (in order of preference):

  1. Switch to a maintained built-in clone channel (recommended)

    • In the main window, change TTS Service from clone-voice(LocalAPI) to one of: OmniVoice-TTS(内置) (supports all built-in languages, incl. your target ru), Qwen3-TTS(内置) (zh/en/ja/ko/de/fr/ru/pt/es/it), Confucius-TTS(内置) (incl. ru), F5-TTS(内置) (Russian model available) or ZipVoice(内置).
    • Keep the Voice role as clone — no separate deployment or port needed, the model is downloaded automatically on first use.
    • Before re-running, tick Clear Output (清理已生成) in the main window, otherwise the previously cached/failed dubbing results will be reused.
  2. If you deliberately want to keep clone-voice

    • Check the clone-voice console window at the moment of failure for the full traceback; the bool/any failure indicates a numpy/torch version conflict in that project's own virtual environment.
    • Recreate clone-voice's environment from its own requirements in a clean venv (do not reuse pyVideoTrans's env), then restart its API on port 9988 and confirm http://127.0.0.1:9988 responds.
  3. Clone-quality safeguard (applies to any clone channel)

    • With clone, the reference audio is cut from your source video per subtitle line and must be 3–10 s. Go to Menu → Tools/Options → Advanced Options → Speech Recognition Parameters and set VAD: min speech duration(ms) to 3000 or higher and max speech duration(s) to 6–10, otherwise cloning may fail or sound distorted.

Since the traceback contains no pyVideoTrans-internal fault, no log from logs/ is required for this case — but if a built-in clone channel also fails after switching, send the last ~30 lines of the newest file in logs/.

Please refer to the related documentation:

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