#8291 Dubbing failed{'code': 1, 'msg':

85.232**1 Posted at: 2 hours ago

Dubbing failed{'code': 1, 'msg': "'bool' object has no attribute 'any'"}
self.model_name=''
self=[CloneVoice]: uuid='3fc40ef5bb', 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\': 1, \'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': 1, 'msg': "'bool' object has no attribute 'any'"}
self.model_name=''
self=[CloneVoice]: uuid='3fc40ef5bb', 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\': 1, \'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='3fc40ef5bb', proxy_str=None, cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/2_УРОКИ ПО FotoFusion/00_НЕЙРОСЕТЬ/000_Capture One Pro/000_Курс «Захвати одного эксперта»/videos/Практика редактирования из.mp4,
输出结果保存到文件夹: D:/2_УРОКИ ПО FotoFusion/00_НЕЙРОСЕТЬ/000_Capture One Pro/000_Курс «Захвати одного эксперта»/Lesson RU/Практика редактирования из-mp4,
临时文件夹: D:/pyVideoTrans/tmp/15036/3fc40ef5bb
已选 清理已存在
已启用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 2 hours ago

The {'code': 1, 'msg': "'bool' object has no attribute 'any'"} error is not generated by pyVideoTrans itself — it is returned by your local clone-voice service at http://127.0.0.1:9988. pyVideoTrans only forwards the message from that service. The 'bool' object has no attribute 'any' message typically comes from a NumPy operation inside the clone-voice server code that is incompatible with the installed NumPy/Python version. Note also that the clone-voice channel is officially no longer maintained by the developer.

Recommended actions (in order of preference):

  1. Switch to a maintained cloning channel (recommended). Built-in channels supporting the clone role: OmniVoice-TTS, Qwen3-TTS, F5-TTS, Confucius-TTS, ZipVoice, Higgs-audio-v3. Local-API alternatives: GPT-SoVITS, Index-TTS, VoxCPM-TTS, CosyVoice. These will give you the same original-voice cloning without the fragile local clone-voice dependency.
  2. If you must keep clone-voice, fix it on the server side. The failure occurs inside the clone-voice API process, not in pyVideoTrans. Check the console window of the clone-voice service for the full traceback, and try reinstalling/upgrading its dependencies (particularly numpy) inside that project's own virtual environment. Also verify that the API base URL and port (9988) match the service you actually started.
  3. Quick sanity check of the pipeline. Temporarily set the TTS channel to Edge-TTS and re-run with 清理已生成 enabled. If dubbing succeeds, the problem is confirmed to be confined to the clone-voice service.

Additional notes for reliable cloning results: keep 最短语音持续(ms) at ≥ 3000 in Menu → Tools → Advanced Options → ASR Settings, and enable 分离人声背景声 to improve reference-audio quality.

If the issue persists after switching channels, please provide the latest log from the software's logs/ folder (about the last 30 lines) together with the clone-voice console output.

请查阅相关文档:

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