From 8e5aaa656e8b57622fe344ca85f4bfef92eedc0a Mon Sep 17 00:00:00 2001 From: Peter Chapman Date: Thu, 9 Apr 2026 17:11:21 -0600 Subject: [PATCH] Fix audio tensor shape for ComfyUI compatibility --- alltalk.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/alltalk.py b/alltalk.py index 4217648..5e7b4bb 100644 --- a/alltalk.py +++ b/alltalk.py @@ -391,8 +391,10 @@ class AllTalkTTSNode: ) # Convert numpy array to PyTorch tensor (required by ComfyUI) + # ComfyUI's AudioSaveHelper expects shape (samples, channels) + # but our parsers return (channels, samples), so we need to transpose import torch - audio_tensor = torch.from_numpy(audio_data) + audio_tensor = torch.from_numpy(audio_data.T) audio_dict = { "waveform": audio_tensor,