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

185.252**4 Posted at: 2 hours ago

Dubbing failed{'code': 6, 'msg': "'bool' object has no attribute 'any'"}
self.model_name=''
self=[CloneVoice]: uuid='8b61a6cfbc', proxy_str='http://127.0.0.1:10809', tts_type=39, len=3, 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='8b61a6cfbc', proxy_str='http://127.0.0.1:10809', tts_type=39, len=3, 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='8b61a6cfbc', proxy_str='http://127.0.0.1:10809', cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/videos/Практика редактирования изображений 2 Диапазон яркости.mp4,
输出结果保存到文件夹: D:/videos/RU/Практика редактирования изображений 2 Диапазон яркости-mp4,
临时文件夹: D:/pyVideoTrans/tmp/19276/8b61a6cfbc
已选 清理已存在
已启用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
代理地址: http://127.0.0.1:10809, precent=18, 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=18900


=
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 clone-voice channel (tts_type=39, CLONE_VOICE_TTS) is no longer maintained, and this 'bool' object has no attribute 'any' error is a returned error for this channel. The knowledge base does not record a specific repair method for this error message.

Recommended actions:

  1. Stop using the clone-voice channel and switch to another channel that supports voice cloning (clone role). Recommended local built-in channels:

    • OmniVoice-TTS (supports the most languages, recommended first)
    • Qwen3-TTS (supports Russian)
    • Index-TTS / VoxCPM-TTS (local API)
    • CosyVoice, Spark-TTS, ChatterBox, Higgs-audio-v3
  2. If you use the clone role, you must adjust the subtitle segments: open Menu -> Tools -> Advanced Options -> Speech Recognition Parameters, set Max speech duration (s) to 6–10 and Min speech duration (ms) to 3000–4000, to ensure that the reference audio cut from the original video is 3–10s. Otherwise, the cloning will fail or the audio will be distorted.
  3. In addition, check the following configuration issues in your current task:

    • The spoken language is set to en, but the video files are Russian. It is recommended to set the spoken language to ru to avoid transcription errors.
    • Separate vocal/BGM is not selected. It is recommended to select it to significantly improve the cloning quality.
  4. Before retrying, select Clear Output to clear the files generated in the previous run.

If you still need to troubleshoot the clone-voice service itself, please provide the latest log file in the logs/ folder under the software installation directory (copy about 30 lines at the end of the file).

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