# Samajh AI (समझ AI) > Samajh AI is an AI-powered educational video localization and voice-preserving dubbing platform that transforms English lectures (YouTube, Udemy, and course media) into natural, studio-quality, lip-synchronized Hindi videos with bilingual subtitles. Samajh AI bridges the language barrier for millions of Indian students, developers, and lifelong learners. By combining local Faster-Whisper transcription, contextual Hindi translation via Sarvam AI, emotion- and voice-preserving neural dubbing via ElevenLabs, and pitch-preserving audio synchronization with FFmpeg, it turns complex English educational content into accessible Hindi learning experiences without losing technical clarity or the original speaker's authentic cadence. ## Core Capabilities - **Multi-Source Ingestion**: Automatically validates, previews, and ingests educational content from YouTube URLs and Udemy course lectures. - **Whisper Speech-to-Text**: Local Faster-Whisper engine generates word-level timestamps with Voice Activity Detection (VAD) filtering. - **Context-Aware Translation**: Powered by Sarvam AI (`sarvam-translate:v1`), translating technical and academic jargon into natural Hindi without loss of technical context. - **Voice Preservation Dubbing**: Clones the instructor's original voice, tone, and emotional delivery in Hindi using ElevenLabs (`eleven_multilingual_v2`), with fast generic voice fallback via Sarvam AI (`bulbul:v3`). - **Pitch-Preserving Audio Synchronization**: Time-stretches and pads translated Hindi audio segments to match the original speaker's pace and pauses, maintaining seamless lip-sync with the video track. - **Bilingual Subtitles**: Generates synchronized Hindi subtitles in both `.srt` and `.vtt` formats with precision timing. - **HD Video Muxing**: FFmpeg pipeline packs original video, synchronized Hindi audio, and optional soft subtitles into standard MP4 format. - **Disposable Email Protection**: Enterprise-grade email verification with an automated blocklist of 1,300+ temporary/disposable email domains, DNS MX checks, and single-use cryptographic tokens. - **Learner Dashboard**: Complete studio suite including live job progress, video player with dual-audio preview, dedicated downloads center, bookmarked favorites, and minute quota tracking. ## Architecture & Tech Stack - **Monorepo**: Turborepo + pnpm workspaces - **Frontend App (`apps/web`)**: Next.js 16 (App Router), React 19, TypeScript, Vanilla CSS design tokens with Dark/Light theme switching - **Backend API (`apps/api`)**: FastAPI (Python 3.11+), SQLAlchemy 2.0 async engine, Pydantic v2 schemas - **Database**: Neon Serverless Postgres with Managed Better Auth (`neon_auth` schema) - **Job Queue & Cache**: Redis 7 with ARQ asynchronous Python job worker cluster (`apps/worker`) - **AI & Processing Engines**: Faster-Whisper, Sarvam AI, ElevenLabs API, FFmpeg, yt-dlp ## Key URLs & Application Routes - [Homepage & Live Interactive Demo](https://samajh-theta.vercel.app/): Dual-video comparison player (English vs Hindi Dubbed), features overview, FAQ, and Peerlist launch badge. - [Studio Dashboard](https://samajh-theta.vercel.app/dashboard): Central workspace for authenticated learners showing real-time stats and active jobs. - [Video Converter](https://samajh-theta.vercel.app/dashboard/convert): Submit YouTube/Udemy video URLs, choose voice preservation settings, and trigger dubbing jobs. - [Video Library](https://samajh-theta.vercel.app/dashboard/videos): List of all converted lectures with playback, status, and duration metrics. - [Downloads Center](https://samajh-theta.vercel.app/dashboard/downloads): Download converted Hindi MP4 videos and synchronized Hindi SRT/VTT subtitle files. - [Saved Favorites](https://samajh-theta.vercel.app/dashboard/favorites): Bookmark and organize high-value educational videos for quick revision. - [Usage & Quotas](https://samajh-theta.vercel.app/dashboard/usage): Minute quota consumption, credit balances, and subscription tier status. - [Conversion History](https://samajh-theta.vercel.app/dashboard/history): Chronological audit log of all video processing jobs. - [Support & Help](https://samajh-theta.vercel.app/dashboard/help): Comprehensive FAQ, guide to supported video types, and support ticket creation. ## Backend REST API Endpoints - `POST /api/v1/conversions`: Trigger a new video translation and dubbing pipeline job. - `GET /api/v1/conversions`: List user's converted videos with filtering, pagination, and status. - `GET /api/v1/conversions/{id}`: Detailed conversion telemetry, progress percentage, video metadata, and stream URLs. - `DELETE /api/v1/conversions/{id}`: Delete a conversion and its associated media files. - `POST /api/v1/sources/validate`: Validate a YouTube or Udemy URL before starting conversion. - `GET /api/v1/usage`: Retrieve user's remaining minutes quota, plan details, and usage summary. - `GET /api/v1/favorites`: Retrieve user's saved/favorited videos. - `POST /api/v1/favorites/{id}`: Add video to favorites. - `DELETE /api/v1/favorites/{id}`: Remove video from favorites. - `GET /api/v1/downloads/{id}`: Generate signed download link for MP4 video or Hindi subtitles. - `POST /api/v1/feedback`: Submit user feedback or issue reports. - `POST /api/v1/support/tickets`: Create customer support ticket. - `GET /health`: System, database, and Redis health check status. ## External Links & Community - [Peerlist Project Launch](https://peerlist.io/surajprasad/project/samajh-ai---educational-videos-in-hindi): Upvote, review, and follow Samajh AI on Peerlist. - [Full LLM Context Guide](/llms-full.txt): Comprehensive deep-dive documentation for AI models including pipeline phases, schema definitions, and implementation details.