PolyglotTales is a modern, AI-powered storytelling platform designed to help you learn new languages through immersive, interactive stories. Choose your language, set the difficulty, pick a theme and start the tale with your own words. The AI takes it from there.
- π Multilingual support: Spanish, French, German, Japanese
- π§ Difficulty levels: Beginner, Intermediate, Advanced
- π Story themes: Adventure, Romance, Sci-Fi, Mythology
- βοΈ User-generated starting line for stories
- π Text-to-speech (TTS) to hear your story
- π Vocabulary booster with extracted keywords
- π«οΈ Glassmorphic UI with theme toggle
- π‘ Powered by OpenAI (GPT-4 or DeepSeek) for storytelling
β¨ Choose β Type β Read β Listen β Learn
git clone https://github.com/Nuraj250/PolyglotTales.git
cd PolyglotTales
npm install
Create a .env.local
file:
OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxx
β You can also use DeepSeek or Gemini API by modifying
/api/generate.ts
npm run dev
Visit: http://localhost:3000
- Framework: Next.js 15 (Turbopack)
- Styling: Tailwind CSS 4 (Glassmorphism)
- Animations: Framer Motion
- Language Model: OpenAI GPT-4 / DeepSeek
- TTS: Native Web Speech API
- Dark/Light Theme: Tailwind
darkMode
via class toggle
src/
β
βββ components/ # Reusable UI (SelectorGroup, GlassButton)
βββ pages/ # Routes (index, story, api/generate)
βββ styles/ # Tailwind + global CSS
βββ utils/ # Vocabulary extractor
βββ context/ # (Optional) global state
Want to contribute a new language, theme, or TTS support? Open a PR or start a discussion β letβs grow this together!
MIT Β© 2025 [Nuraj]