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:
- Speech-to-Text: Converts spoken words to written text
- Speaker Diarization/Identification: Figures out who is speaking when
- 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:
- In your Hugging Face tab, click your profile picture (top right)
- Go to Settings
- Click Access Tokens on the left
- Click New token
- Name it “Meeting-Summarizer”
- Select “Read” permission
- Click Create token
- Copy the token immediately – you can’t see it again!
Accept Model Licenses:
- Visit https://huggingface.co/pyannote/speaker-diarization
- Scroll down and click “Agree and access repository”
- Visit https://huggingface.co/pyannote/segmentation
- 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.gitWhat 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_summarizerWhat 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.pyWhat 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.pyWhat 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:
- 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
- Enter Your Token: Paste your Hugging Face token in the “Hugging Face Token” field
- 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
- Process: Click “Process and Summarize”
- Wait: Processing takes 5-10 minutes depending on:
- Length of your audio
- Model size chosen
- Current server load
- 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:
- Audio Conversion: Your audio file was converted to a standard format
- Speaker Detection: AI analyzed the audio waves to identify different voices
- Speech Recognition: Whisper converted spoken words to text
- Text Alignment: The system matched transcribed text with identified speakers
- 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
- AI Pipeline: You’ve built a complex AI system using multiple models working together
- Practical Application: This solves real business problems (meeting documentation)
- Code Reusability: You can modify this code for different audio processing tasks
- Model Integration: You’ve learned how to combine different AI capabilities
- 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!
