Will report below error
File "/llm/ComfyUI/custom_nodes/ComfyUI_IndexTTS/indexttsnode.py", line 85, in _cache_audio_tensor
raise Exception(f"Error caching audio tensor: {e}")
Exception: Error caching audio tensor: TorchCodec is required for save_with_torchcodec. Please install torchcodec to use this function.
If manually install TorchCode with pip install TorchCodec will report
IndexTTS2Run
Error caching audio tensor: Could not load libtorchcodec. Likely causes:
1. FFmpeg is not properly installed in your environment. We support
versions 4, 5, 6 and 7.
2. The PyTorch version (2.9.0+xpu) is not compatible with
this version of TorchCodec. Refer to the version compatibility
table:
https://github.com/pytorch/torchcodec?tab=readme-ov-file#installing-torchcodec.
3. Another runtime dependency; see exceptions below.
The following exceptions were raised as we tried to load libtorchcodec:
[start of libtorchcodec loading traceback]
FFmpeg version 8: Could not load this library: /usr/local/lib/python3.12/dist-packages/torchcodec/libtorchcodec_core8.so
FFmpeg version 7: Could not load this library: /usr/local/lib/python3.12/dist-packages/torchcodec/libtorchcodec_core7.so
FFmpeg version 6: Could not load this library: /usr/local/lib/python3.12/dist-packages/torchcodec/libtorchcodec_core6.so
FFmpeg version 5: Could not load this library: /usr/local/lib/python3.12/dist-packages/torchcodec/libtorchcodec_core5.so
FFmpeg version 4: Could not load this library: /usr/local/lib/python3.12/dist-packages/torchcodec/libtorchcodec_core4.so
[end of libtorchcodec loading traceback].
Will report below error
If manually install TorchCode with
pip install TorchCodecwill report