Commit Graph

10 Commits

Author SHA1 Message Date
Ethanfel 9f2683cd54 fix: add torchcodec to requirements for torchaudio backend
Newer torchaudio versions default to the TorchCodec backend for loading
audio files. Without it installed, omnivoice fails with ImportError when
loading reference audio.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-09 23:31:40 +02:00
Ethanfel ae2255d9e4 fix: add missing omnivoice runtime deps for fresh installs
pydub, tensorboardx, webdataset are omnivoice dependencies that won't
be present on a clean ComfyUI install since we use --no-deps.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-05 20:33:19 +02:00
Ethanfel d5a0ebeb9a revert: restore working requirements.txt
Pinning transformers==5.3.0 risks conflicting with existing ComfyUI venv.
Back to permissive >=4.40.0 which worked in practice.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-05 20:29:04 +02:00
Ethanfel 0d43e5374f fix: sync requirements.txt with omnivoice's actual --no-deps dependencies
Pins transformers==5.3.0 (omnivoice requires exact version), restores
pydub (omnivoice dep), adds tensorboardx and webdataset.
Drops gradio (demo-only, not needed for inference).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-05 20:28:35 +02:00
Ethanfel 2b4b221e88 chore: remove unused pydub from requirements
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-05 20:27:34 +02:00
Ethanfel dbb3207df1 Replace install.py with standard requirements.txt
install.py was running arbitrary pip installs as part of node loading,
which is dangerous in a shared venv. Standard approach: requirements.txt
lists the safe deps (transformers, accelerate, soundfile, etc.);
omnivoice itself must be installed once manually with --no-deps to avoid
overwriting ComfyUI's torch. README documents this clearly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-05 17:44:52 +02:00
Ethanfel 5dfaa0b300 Replace torchaudio.save with soundfile.write; add EPUB loader node
- nodes/generator.py: swap torchaudio.save for soundfile.write to avoid
  torchcodec/FFmpeg dependency crash in environments without FFmpeg shared libs
- nodes/epub_loader.py: new OmniVoiceEpubLoader node for loading EPUB chapters
- tests/test_epub_loader.py: 8 tests for the EPUB loader
- install.py: add beautifulsoup4 to runtime deps
- __init__.py, nodes/__init__.py: register OmniVoiceEpubLoader

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-05 17:24:18 +02:00
Ethanfel f647a24988 fix: add install.py to prevent omnivoice from overwriting ComfyUI's torch 2026-04-05 14:53:33 +02:00
Ethanfel 0760e60373 chore: remove torch/torchaudio from requirements (omnivoice declares them) 2026-04-05 10:39:44 +02:00
Ethanfel 0ed43a83ca feat: scaffold ComfyUI-Omnivoice node package 2026-04-05 08:43:17 +02:00