Fix audio tensor shape for ComfyUI compatibility

This commit is contained in:
Peter Chapman
2026-04-09 17:11:21 -06:00
parent 704ab1ec81
commit 8e5aaa656e
+3 -1
View File
@@ -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,