BioRTC's 2025 AI Workshop

Complete Resource Guide

Activity 1: Meeting Audio Summarizer

Duration: 60 minutes
What This Application Does

Imagine you’re in a long meeting and wish you had an AI assistant taking notes. This application does exactly that:

Input: An audio recording of a meeting (MP3, WAV, etc.)

Process:

  1. Speech-to-Text: Converts spoken words to written text
  2. Speaker Diarization/Identification: Figures out who is speaking when
  3. Intelligent Summarization: Creates a summary with key points and action items

Output:

  • Complete transcript with speaker labels and timestamps
  • Intelligent summary with key discussion points
  • Action items and decisions made
The AI Models Working Behind the Scenes

1. Whisper (OpenAI)

  • Converts speech to text with high accuracy
  • Works with multiple languages and accents
  • Handles background noise reasonably well

2. Pyannote (Speaker Diarization)

  • Analyzes audio to identify different speakers
  • Creates segments: “Speaker A spoke from 0:30 to 1:15”
  • Works even when people interrupt each other

3. Qwen (Large Language Model)

  • Reads the transcript created by Whisper
  • Understands context and meaning
  • Generates intelligent summaries with key points
Real-World Applications
  • Business: Automatic meeting minutes, client call summaries
  • Healthcare: Doctor-patient consultation notes
  • Legal: Deposition transcripts and case summaries
  • Education: Lecture transcripts and key point extraction
  • Journalism: Interview transcription and story development
  • Government: Public hearing documentation
Example

Watch this Video 

Step-by-Step Implementation
Step 1: Prepare Your Hugging Face Access

Before we start coding, you need to set up access to the AI models:

Create Your Access Token:

  1. In your Hugging Face tab, click your profile picture (top right)
  2. Go to Settings
  3. Click Access Tokens on the left
  4. Click New token
  5. Name it “Meeting-Summarizer”
  6. Select “Read” permission
  7. Click Create token
  8. Copy the token immediately – you can’t see it again!

Accept Model Licenses:

  1. Visit https://huggingface.co/pyannote/speaker-diarization
  2. Scroll down and click “Agree and access repository”
  3. Visit https://huggingface.co/pyannote/segmentation
  4. Scroll down and click “Agree and access repository”

These models require license acceptance because they’re research models with specific usage terms.

Step 2: Download the Application Code

In your Jupyter notebook, create a new cell and run:

!git clone https://github.com/ictBioRtc/meeting_summarizer.git

What this does: Downloads all the code files we need from GitHub to your cloud computer.

Step 3: Navigate to the Project

Create another cell and run:

%cd meeting_summarizer

What this does: Changes your current directory to the downloaded folder (like opening a folder on your computer).

Step 4: Install Required Software

Create a new cell and run:

!python setup.py

What this does:

  • Installs Whisper (speech-to-text)
  • Installs Pyannote (speaker identification)
  • Installs Gradio (creates a web interface)
  • Installs other supporting libraries

This will take a few minutes. You’ll see lots of text scrolling – this is normal!

Step 5: Launch the Application

Create a final cell and run:

!python app.py

What happens:

  • The application starts running
  • You’ll see some initialization messages
  • After 30-60 seconds, you’ll see a message like: “Running on public URL: https://1234abcd.gradio.live”
  • Click on that URL to open your application
Step 6: Using Your Meeting Summarizer

In the web interface that opens:

  1. Upload Audio: Click “Upload Meeting Audio” and select an audio file
    • Use the provided sample files in the repository, or
    • Upload your own meeting recording
  2. Enter Your Token: Paste your Hugging Face token in the “Hugging Face Token” field
  3. Choose Model: Select your summarization model:
    • Qwen 7B (Recommended): Best quality, takes longer
    • Qwen 3B (Faster): Good balance of speed and quality
    • Qwen 1.5B (Fastest): Quick results, simpler summaries
  4. Process: Click “Process and Summarize”
  5. Wait: Processing takes 5-10 minutes depending on:
    • Length of your audio
    • Model size chosen
    • Current server load
  6. View Results: Check both tabs:
    • Transcript Tab: Full conversation with speaker labels
    • Summary Tab: Key points, action items, participant count
Understanding What Happened

Behind the Scenes Process:

  1. Audio Conversion: Your audio file was converted to a standard format
  2. Speaker Detection: AI analyzed the audio waves to identify different voices
  3. Speech Recognition: Whisper converted spoken words to text
  4. Text Alignment: The system matched transcribed text with identified speakers
  5. Summarization: Qwen analyzed the complete transcript to extract key information

Why This Matters:

  • You just automated hours of manual work
  • The AI can process hours of audio in minutes
  • Multiple AI models worked together seamlessly
  • You now have both raw data (transcript) and processed insights (summary)
Troubleshooting Common Issues

“Token not working”

  • Double-check you copied the token correctly
  • Ensure you accepted both model licenses
  • Try creating a new token

“Processing stuck”

  • Check your internet connection
  • The models might be downloading (first-time use takes longer)
  • Try with a shorter audio file first

“Out of memory”

  • Try the smaller Qwen 1.5B model
  • Use shorter audio files (under 10 minutes for testing)

“Audio format not supported”

  • Convert your audio to MP3 using online converters
  • Ensure your file isn’t corrupted
Key Takeaways
  1. AI Pipeline: You’ve built a complex AI system using multiple models working together
  2. Practical Application: This solves real business problems (meeting documentation)
  3. Code Reusability: You can modify this code for different audio processing tasks
  4. Model Integration: You’ve learned how to combine different AI capabilities
  5. Web Interface: Gradio makes your AI accessible to non-technical users

Next: We’ll explore how AI can “see” and analyze images with our Name Tag Image Analyzer!