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

85.232**1 Posted at: 3 hours 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/18688/6a34a95c82
已选 清理已存在
已启用CUDA加速
未选 降噪
Сервис STT (распознавание):faster-whisper(Built-in), large-v3-turbo, 发音语言: en, LLM纠错
Канал перевода:DeepSeek,原始语言:en,目标语言:ru, 已选 Отправить полный SRT
Канал озвучки (TTS):clone-voice(LocalAPI), 角色:clone, 配音语言:ru, 未选 二次语音识别
音量:+100%, 语速:+0%, 已选 音频加速, 已选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: 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 3 hours ago

The error 'bool' object has no attribute 'any' with code: 6 is not produced by pyVideoTrans itself — it is returned by your local clone-voice service at http://127.0.0.1:9988. In other words, the HTTP request reached clone-voice, but clone-voice's own Python code crashed internally (a NumPy/API misuse on the server side), so the dubbing step received a failure payload and reported "Dubbing failed".

Note also that the clone-voice channel is no longer maintained in pyVideoTrans, and it is generally the least reliable of all cloning options.

Recommended actions, in order:

  1. Verify the service is actually usable

    • Open http://127.0.0.1:9988 in a browser and confirm the API responds.
    • Check the clone-voice's own console window for the full traceback; the real cause is printed there, not in pyVideoTrans's log. 'bool' object has no attribute 'any' is usually a version mismatch between clone-voice and its Python/numpy dependencies → reinstall/upgrade clone-voice in a clean environment, or re-pull its latest code.
  2. Check the reference audio (very common trigger for cloning failures)

    • clone mode cuts the reference audio dynamically from the original video, so its length and quality are not controllable. TTS engines generally require 3–10 s of clean single-speaker audio.
    • Go to Menu → Tools → Advanced Options → ASR Settings and set:

      • VAD: min speech duration(ms) = 3000–4000 (must be ≥ 3000 for cloning)
      • VAD: max speech duration(s) = 6–10
    • Also enable Separate Vocal/BGM in More... to get a cleaner reference voice.
  3. Switch to a maintained cloning channel (recommended)
    Replace clone-voice(LocalAPI) with one of the built-in cloning channels, which are actively maintained and support the clone role:

    • OmniVoice-TTS (supports all built-in languages, best coverage) — recommended
    • Qwen3-TTS (zh/en/ja/ko/de/fr/ru/pt/es/it — your target ru is covered)
    • Confucius-TTS (incl. Russian)
    • F5-TTS (incl. Russian)
    • Higgs-audio-v3 (all built-in languages, needs >10 GB VRAM for GPU)
    • audio.cpp (new in v4.16, local, multi-model)
      Locally deployed alternatives that are far more stable than clone-voice: Index-TTS, GPT-SoVITS, VoxCPM-TTS, CosyVoice.
  4. If you must keep clone-voice
    Re-run with Clear Output checked, and if it still fails, send the clone-voice console output (last ~30 lines) — without the server-side traceback the exact cause cannot be determined.

请查阅相关文档:

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