#5628 name 'ChatterboxTTS' is not definedTraceback (most recent call last): File "F:\pyvideotrans-4.03\pyvideotrans-4.03\vide

113.175* Posted at: 1 day ago

name 'ChatterboxTTS' is not defined
Traceback (most recent call last):
File "F:\pyvideotrans-4.03\pyvideotrans-4.03\videotrans\task\only_one.py", line 86, in run

trk.dubbing()

File "F:\pyvideotrans-4.03\pyvideotrans-4.03\videotrans\task\trans_create.py", line 667, in dubbing

self._tts()

File "F:\pyvideotrans-4.03\pyvideotrans-4.03\videotrans\task\trans_create.py", line 989, in _tts

run_tts(

File "F:\pyvideotrans-4.03\pyvideotrans-4.03\videotrans\tts\__init__.py", line 185, in run

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

File "F:\pyvideotrans-4.03\pyvideotrans-4.03\videotrans\tts\_base.py", line 93, in run

self._exec()

File "F:\pyvideotrans-4.03\pyvideotrans-4.03\videotrans\tts\_chatterbox.py", line 34, in _exec

model = ChatterboxTTS.from_local(f'{ROOT_DIR}/models/chatterbox',

NameError: name 'ChatterboxTTS' is not defined

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: C:/Users/minz/Downloads/111.mp4,
输出结果保存到文件夹: C:/Users/minz/Downloads/_video_out/111-mp4,
临时文件夹: F:/pyvideotrans-4.03/pyvideotrans-4.03/tmp/24636/7840d796b5
已选 清理已存在
未选 启用CUDA加速
未选 降噪
ASR Channel:faster-whisper(LocalBuilt-in), model_name: distil-large-v3.5, 发音语言: English, 断句方式:默认断句
Trans Channel:Google (Free),原始语言:English,目标语言:Vietnamese, 已选 Send SRT
Dubb Channel:ChatterBox(LocalBuilt-in), 角色:sub.wav, 配音语言:Vietnamese, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: Embed Hard Subs
代理地址:


=
system:Windows-10-10.0.19043-SP0
version:v4.03
frozen:False
language:en
root_dir:F:/pyvideotrans-4.03/pyvideotrans-4.03
Python: 3.10.19 (main, Feb 12 2026, 00:37:08) [MSC v.1944 64 bit (AMD64)]

1 Replies

This error occurs because the ChatterBox TTS channel's dependency (chatterbox-tts) is not installed. It's an optional extra that must be explicitly installed when using a source deployment.

Solution

Run the following command in your pyVideoTrans root directory to install the ChatterBox extra:

uv sync --extra chatterbox

Important Notes

  • This only applies to source code deployments (you are running sp.py).
  • After installation, restart the software completely.

Reference Documentation

Post Your Reply
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: ko-fi.com/jianchang512

Related resource