Tale-Toons: AI-Based Children Cartoon Generation System

Computer Science

Description

Tale-Toons is a web application that transforms children's story prompts into fully animated cartoon videos using generative AI. A child enters a prompt, selects a tone and age group, and the system generates a structured story, illustrates each scene using FLUX.1-dev, adds narration via edge-tts, and produces a final MP4 cartoon video.

Objectives

The objective of Tale-Toons is to enable children to generate personalised animated cartoon stories through a simple and intuitive interface. The system allows a child to enter a story idea, select a tone such as Adventure or Moral and Educational, and choose an age group. Gemini API then generates a structured multi-scene narrative, FLUX.1-dev illustrates each scene using a Character Bible to maintain visual consistency across all characters, and LTX-2.3 running on Modal's A100 GPU cloud renders each scene into a smooth video clip interpolated to 60 frames per second. All clips are concatenated into a final downloadable MP4. Parents are given a secure PIN-protected dashboard to manage child profiles, monitor activity, and review all generated content.

Socio-economic benefit

Tale-Toons addresses the gap between passive screen consumption and active creative engagement in children. By giving children the ability to author and watch their own animated stories, the platform encourages imagination, vocabulary development, narrative thinking, and a love for reading. For parents, it provides a safe, monitored environment where all content is child-appropriate and fully visible through the dashboard. For schools and early-learning institutions, Tale-Toons can supplement literacy programmes by letting students generate animated educational stories as classroom activities. The platform is accessible via any modern browser, requiring no downloads or technical knowledge, making it equally usable in urban and semi-urban households across Pakistan and beyond.

Methodologies

Tale-Toons follows a three-tier architecture. The frontend is built with React 18 and TypeScript served via Vite on port 3000. The backend is split into two services: a Node.js Express server on port 5000 handling authentication, routing, and the SQLite database, and a Python Flask AI service on port 5001 orchestrating all generative AI calls. When a child submits a story prompt, the Flask service calls Google Gemini API to generate a structured story with scene descriptions, narration lines, character roles, and visual prompts. A Character Bible is built from the character descriptions with a fixed seed per story to ensure consistent character appearance across all scenes. Scene images are generated in parallel using FLUX.1-dev running on Modal's A100 GPU containers, with the full Character Bible and fixed seed passed to every call. These images are dispatched to LTX-2.3 on Modal for image-to-video generation. Simultaneously, narration audio is generated in parallel using edge-tts with character-mapped voices — Jenny Neural for narrator, Andrew Neural for the boy hero, Ana Neural for girl characters, and Brian Neural for elder characters. FFmpeg merges each video clip with its corresponding narration audio, mixing LTX ambient sound at 30% and narration at full volume, then interpolates to 60 FPS and concatenates all scenes into the final MP4. OTP-based authentication is handled via Nodemailer with Gmail SMTP.

Outcome

Tale-Toons successfully delivers a fully automated end-to-end pipeline that converts a child's text prompt into a complete animated cartoon video with narration in a single flow. The system produces visually consistent characters across all scenes through the Character Bible and fixed seed mechanism in FLUX.1-dev, smooth 60 FPS video output through FFmpeg interpolation, character-mapped narration voices through edge-tts, and a child-safe experience monitored through the parent dashboard. The platform demonstrates that generative AI can be practically applied to creative children's education at low cost using entirely open and cloud-based tools. The project establishes a foundation for future enhancements including higher resolution scene generation, additional character voice profiles, and multi-language narration support.

Gallery

More from Computer Science

Ustad Go: An AI-Powered Mobile and Web Ecosystem for Verified Local Service Provision in P…

Computer Science

Ustad Go is a dual-platform solution bridging the gap between skilled local service providers and households.…

Supervisor: Dr. Wasif Nisar

Sales Distribution Hub

Computer Science

The Sales Distribution Hub is a web-based management system designed for Masood & Company to automate and stre…

Supervisor: Dr. Wasif Nisar.

AI Based Road Damage Detection System

Computer Science

AI Based Road Damage Detection System is a smart application that uses YOLOv8 and computer vision techniques t…

Supervisor: Mehwish Mukhtar

EvaluTech: AI-Powered Hiring & Job Platform for Employers and Applicants

Computer Science

EvaluTech is an intelligent recruitment management platform that streamlines the complete hiring lifecycle fro…

Supervisor: Dr. Wasif Nisar