Comfy Story Video
Generate illustrated children's story videos with AI images and TTS narration using ComfyUI running locally.
Latest: v0.1.0
Initial release of comfy-story-video.
- Generate illustrated children's story videos using ComfyUI and AI.
- Supports custom story themes, number of scenes, and narration.
- Outputs story text, AI-generated images, voice narration, and a final video.
- Easily modify characters, backgrounds, and voice settings.
- Requires ComfyUI, basic Python dependencies, and FFmpeg.
Comfy Story Video
Generate children's story videos with AI-generated illustrations and voice narration.
Quick Start
cd /Users/yiyi/.openclaw/workspace/comfy-story-video
python3 scripts/generate_story_video.py --theme "友谊" --scenes 5
Requirements
- ComfyUI running on
http://127.0.0.1:8188 - Python dependencies:
pip install websocket-client requests - FFmpeg for audio conversion
Usage
Generate a Story Video
# Default theme (友谊/friendship)
python3 scripts/generate_story_video.py
# Custom theme
python3 scripts/generate_story_video.py --theme "勇气"
# Custom number of scenes
python3 scripts/generate_story_video.py --theme "环保" --scenes 6
Output Files
Generated in output/ directory:
story_{theme}_{timestamp}.json- Story textscene_01.png~scene_NN.png- AI illustrationsscene_01.mp3~scene_NN.mp3- Voice narrationstory_{theme}_{timestamp}.mp4- Final video
Customization
Change ComfyUI Model
Edit assets/basic_workflow.json, replace ckpt_name in CheckpointLoaderSimple node.
Modify Characters/Settings
Edit scripts/generate_story_video.py:
characters- List of animal characterssettings- Story backgroundsthemes- Story themes
Change Voice
Modify the -v parameter in generate_tts() function:
say -v '?' | grep zh # List available Chinese voices
Workflow
- Generate story text (configurable characters, setting, theme)
- Convert each scene to ComfyUI prompt
- Send to ComfyUI for image generation
- Generate TTS narration for each scene
- Combine into video (WIP)
Troubleshooting
- ComfyUI not responding: Check if ComfyUI is running at
http://127.0.0.1:8188 - Model not found: Update
ckpt_namein workflow to match available models - Image generation fails: Check ComfyUI console for error messages
