Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

Β 

History

40 Commits

Folders and files

Repository files navigation

codecov

Meeting Summarizer

Meeting Summarizer is a web application that allows users to upload meeting audio files or YouTube links and receive automatic transcriptions and narrative summaries using state-of-the-art AI models.

πŸš€ Features

  • Audio & YouTube Transcription: Convert meeting audio (MP3) or YouTube videos to text using Whisper (via Groq API)
  • AI Summarization: Generate concise, narrative summaries using Gemini (Google API)
  • Real-time Status: Track processing status in real time
  • Downloadable Results: Download summaries as text files
  • User-friendly Interface: Responsive and modern Vue.js frontend
  • Robust Error Handling: Comprehensive error and status reporting

πŸ› οΈ Tech Stack

Backend

  • FastAPI (Python)
  • Whisper API (Groq)
  • Gemini API (Google)
  • yt-dlp (YouTube audio download)
  • Uvicorn (ASGI server)
  • python-dotenv (env management)

Frontend

  • Vue.js 3
  • Axios
  • Vue Router
  • Vuex
  • CSS3

πŸ“‹ Prerequisites

  • Python 3.8+
  • Node.js 14+
  • npm or yarn
  • API keys for Groq (Whisper) and Google Gemini

πŸ”§ Installation

1. Clone the Repository

git clone <repository-url>
cd app

2. Backend Setup

cd backend
python -m venv venv
# Activate the virtual environment:
# On Windows:
venv\Scripts\activate
# On Linux/Mac:
source venv/bin/activate
pip install -r requirements.txt
cp env.example .env
# Edit .env and add your API keys

3. Frontend Setup

cd ../meeting-summarizer
npm install

πŸš€ Running the Application

1. Start the Backend Server

cd backend
# Development mode (auto-reload):
python -m uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
# Production mode:
uvicorn app.main:app --host 0.0.0.0 --port 8000

Backend runs at: http://localhost:8000

2. Start the Frontend Development Server

cd ../meeting-summarizer
npm run serve

Frontend runs at: http://localhost:5173

3. Build for Production

npm run build

πŸ”’ Environment Variables

Create a .env file in the backend/ directory with the following variables:

# API Configuration
WHISPER_API_URL=https://api.groq.com/openai/v1/audio/transcriptions
GEMINI_API_URL=https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent

# API Keys (Required)
WHISPER_API_KEY=your_whisper_api_key_here
GEMINI_API_KEY=your_gemini_api_key_here

# Application Configuration
TEMP_FOLDER=temp/
MAX_SUMMARY_LENGTH=200

# Gemini Rate Limit (optional)
GEMINI_RPM=15
GEMINI_TPM=1000000
GEMINI_RPD=200

# Server Configuration
PORT=8000
LOG_LEVEL=INFO

πŸ“ Project Structure

app/
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”œβ”€β”€ config.py           # Configuration
β”‚   β”‚   β”œβ”€β”€ main.py             # FastAPI entrypoint
β”‚   β”‚   β”œβ”€β”€ routes/
β”‚   β”‚   β”‚   └── summarize.py    # API endpoints
β”‚   β”‚   β”œβ”€β”€ services/
β”‚   β”‚   β”‚   β”œβ”€β”€ whisper.py      # Whisper API integration
β”‚   β”‚   β”‚   β”œβ”€β”€ gemini.py       # Gemini API integration
β”‚   β”‚   β”‚   └── llama.py        # (Optional) Llama API integration
β”‚   β”‚   └── utils/
β”‚   β”‚       └── logger.py       # Logging utilities
β”‚   β”œβ”€β”€ temp/                   # Temporary files
β”‚   β”œβ”€β”€ requirements.txt        # Python dependencies
β”‚   └── env.example             # Environment variable template
└── meeting-summarizer/
    β”œβ”€β”€ src/
    β”‚   β”œβ”€β”€ components/         # Vue components
    β”‚   β”œβ”€β”€ assets/             # Static assets
    β”‚   β”œβ”€β”€ App.vue             # Root component
    β”‚   └── main.js             # Vue entrypoint
    β”œβ”€β”€ package.json            # Node.js dependencies
    └── README.md               # Frontend docs

πŸ”Œ API Endpoints

POST /api/summarize/

Upload an MP3 file for processing.

  • Request: Multipart form data with an MP3 file
  • Response: { "task_id": "uuid", "status": "processing" }

POST /api/summarize/youtube/

Submit a YouTube link for processing.

  • Request: { "youtube_url": "<url>" }
  • Response: Summary result or error

GET /api/summarize/status/{task_id}

Check processing status.

  • Response: Task status (processing/completed/failed)

GET /api/summarize/download/{task_id}

Download the summary file.

  • Response: TXT file

DELETE /api/summarize/cleanup/{task_id}

Delete files and task data.

  • Response: Cleanup confirmation

GET /api/health

Health check endpoint.

πŸ§ͺ Testing

Backend

cd backend
# (Add tests with pytest as needed)

Frontend

cd meeting-summarizer
npm run lint

πŸ†˜ Troubleshooting

  • API Key Errors: Ensure .env is set up with valid API keys.
  • File Upload Errors: Only MP3 files are supported. Max size: 50MB.
  • YouTube Download Errors: Ensure the link is valid and the video is accessible.
  • CORS Issues: Make sure backend and frontend are running on the correct ports. Check CORS settings in main.py.
  • Other Issues: Check logs for detailed error messages.

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“ License

This project is licensed under the MIT License. See the LICENSE file for details.

🚒 Docker & GCP Deployment

Local Development with Docker Compose

docker-compose up --build

Build and Push Images for GCP

  1. Build Docker images:
    docker build -t gcr.io/<your-gcp-project-id>/aisum-backend:latest ./backend
    docker build -t gcr.io/<your-gcp-project-id>/aisum-frontend:latest ./meeting-summarizer
  2. Push to Google Container Registry:
    docker push gcr.io/<your-gcp-project-id>/aisum-backend:latest
    docker push gcr.io/<your-gcp-project-id>/aisum-frontend:latest
  3. Deploy using GCP Cloud Run, GKE, or Compute Engine as needed.
  • Make sure to set up your .env file for the backend and configure environment variables in your GCP deployment.
  • For persistent storage (e.g., /app/app/temp), use GCP volumes or buckets as appropriate.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages