How aryan-r-patel/audiofy works
Project type and purpose
• Audiofy is a full-stack web application built with Flask (Python) on the backend and HTML/CSS/Bootstrap templates on the frontend.
• Its primary purpose is to accept a PDF upload (or pasted text), extract the text via PyPDF2, generate an AI‐based summary using the Gemini API, convert the text (or summary) to speech via gTTS, and serve the resulting MP3 back to the user.
File structure
• Top-level files:
• app.py – main Flask application and HTTP route definitions
• database.py – SQLite connection setup and ORM or helper methods
• requirements.txt – Python dependencies (Flask, gTTS, PyPDF2, Gemini client)
• .gitignore
• Directories:
• static/ – contains images and (potentially) CSS/JS assets
• templates/ – Flask Jinja2 templates: index.html, upload.html, result.html, error.html, layout.html
• test/ – sample PDF(s) for automated/manual testing
• Environment configuration: a .env file holds GEMINI_API_KEY and PROMPT variables.
README for additional insights
• Tech stack confirms Flask backend, Bootstrap frontend, SQLite database.
• Workflow details: file upload → text extraction → AI summary → TTS conversion → MP3 delivery.
• Future scope hints at additional file-type support, styling improvements, and more robust PDF parsing.