An interactive AI-powered learning experience generator that creates easy adn simple, multimedia educational content on any topic.
- Dynamic Content Generation: Uses AI to create structured, easy-to-understand chapters about any topic
- Rich Multimedia Experience:
- π¨ AI-generated images for visual learning
- π§ Text-to-speech narration for auditory learning
- π± Responsive web interface with dark mode
- β¨ Smooth animations and transitions
Watch the complete build process on Patreon
Dive deep into the development process with:
- π― Step-by-step video walkthrough of the entire build
- π‘ Expert insights and best practices
Plus, get access to my exclusive 30-Chapter Cursor Mastery Course:
- π 20+ hours of hands-on content
- π οΈ Build full applications from scratch in each chapter
- β‘ Quick, independent chapters for rapid learning
- π From basics to advanced Cursor techniques
This is one of 400+ fascinating projects in my collection! Support me on Patreon to get:
- π― Access to 400+ AI projects (and growing daily!)
- Including advanced projects like 2 Agent Real-time voice template with turn taking
- π₯ Full source code & detailed explanations
- π 1000x Cursor Course
- π Live coding sessions & AMAs
- π¬ 1-on-1 consultations (higher tiers)
- π Exclusive discounts on AI tools & platforms (up to $180 value)
- Python 3.7+
- OpenAI API key (set as system environment variable)
- Clone the repository:
- Install required packages:
pip install -r requirements.txt
- Set up your OpenAI API key as a system environment variable:
# For Windows
set OPENAI_API_KEY=your-api-key-here
# For Unix/Linux/MacOS
export OPENAI_API_KEY=your-api-key-here
- Run the script:
python auto_teacher.py
- Enter any topic you want to learn about when prompted
- Wait while the AI generates your personalized learning experience:
- Creates structured chapters
- Generates relevant images
- Converts text to speech
- Builds an interactive HTML interface
- Open the generated HTML file in your browser (located in
topics/[your-topic]/index.html
)
auto_teacher/
βββ topics/ # Generated content directory
β βββ [topic-name]/ # Topic-specific directory
β βββ index.html # Interactive learning interface
β βββ static/ # Static assets directory
β βββ images/ # Generated images
β βββ audio/ # Generated audio files
βββ auto_teacher.py # Main script
-
AI Models Used:
- Text Generation: o1-mini
- Image Generation: DALL-E 3
- Text-to-Speech: TTS-1
-
Frontend Technologies:
- DaisyUI for UI components
- Tailwind CSS for styling
- Anime.js for animations
- Vanilla JavaScript for interactivity
-
Content Generation
- AI-generated chapters with titles and descriptions
- Each chapter includes custom image descriptions
-
Interactive UI
- Dark mode interface
- Play all chapters sequentially
- Individual chapter playback control
- Smooth scrolling and animations
- Responsive design for all devices
-
Error Handling
- Comprehensive error catching and reporting
- Informative colored console output
- Graceful failure handling