ComfyUI Extension: comfyui_audio_translator
Run ComfyUI workflows without the setup
No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.
ComfyUI node for audio translation with speaker diarization, transcription, and optional dubbed audio synthesis using DramaBox.
README
ComfyUI Audio Translator
ComfyUI custom node for:
- Speaker diarization with
pyannote - Transcription with
Whisper - Line-by-line translation with a local LLM (Qwen or compatible model in
models/LLM) - Optional dubbed audio synthesis with DramaBox, preserving speaker identity and timeline gaps
Node
AudioTranslatorNode- Category:
audio
Inputs
audio(AUDIO): source audiohf_token(STRING): Hugging Face token for pyannote modelswhisper_model(COMBO):tiny | base | small | medium | large | turbomerge_consecutive_speaker(BOOLEAN): merge neighboring same-speaker segmentstranslation_language(COMBO):none, English, French, Spanish, ...llm_model(COMBO): model folder found underComfyUI/models/LLM
Outputs
dialogue_text(STRING): timestamped speaker dialogue in target languagedubbed_audio(AUDIO): regenerated translated speech using DramaBox
How Dubbing Works
- Pyannote diarizes speakers.
- Whisper transcribes segments.
- Each segment text is translated.
- For each speaker, a reference voice clip is extracted from the original audio.
- DramaBox generates each translated line with prompt pattern:
The person says with a <language> accent: "<translated text>"
- Silence is inserted between generated lines when original timeline has gaps.
Dependencies
Install in ComfyUI embedded Python environment:
python -m pip install -r requirements.txt
requirements.txt:
pyannote.audioopenai-whispertransformersnumpyimageio-ffmpeg
Also required for dubbing:
ComfyUI-DramaBoxcustom node available at:ComfyUI/custom_nodes/ComfyUI-DramaBox
Installation
- Clone into
ComfyUI/custom_nodes/Comfyui_audio_translator - Install dependencies
- Restart ComfyUI
Performance Notes
- The node explicitly offloads translation/ASR/diarization models before DramaBox synthesis to reduce VRAM pressure.
- Dubbing is line-by-line; runtime depends on number of segments.
merge_consecutive_speaker=trueusually speeds up dubbing and improves flow.
Security
- Do not share workflow JSON with live
hf_tokenvalues. - If a token was exposed, rotate/revoke it immediately in Hugging Face settings.
Known Constraints
- Overlapping speech is not mixed as simultaneous voices; segments are emitted sequentially.
- Output prosody depends on reference quality and DramaBox generation behavior.
Run ComfyUI workflows without the setup
No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.