An experiment in meeting transcription and diarization with just an LLM.
npm install offmute

Intelligent meeting transcription and analysis using Google's Gemini models
Features โข Quick Start โข Installation โข Usage โข Advanced โข How It Works
- ๐ฏ Transcription & Diarization: Convert audio/video content to text while identifying different speakers
- ๐ญ Smart Speaker Identification: Attempts to identify speakers by name and role when possible
- ๐ Meeting Reports: Generates structured reports with key points, action items, and participant profiles
- ๐ฌ Video Analysis: Extracts and analyzes visual information from video meetings, understand when demos are being displayed
- โก Multiple Processing Tiers: From budget-friendly to premium processing options
- ๐ Robust Processing: Handles long meetings with automatic chunking and proper cleanup
- ๐ Flexible Output: Markdown-formatted transcripts and reports with optional intermediate outputs
- ๐ Real-time Progress: View transcription and report generation progress in real-time
- ๐ฏ Custom Instructions: Add your own context or instructions to guide the AI processing
- ๐งน Clean Filesystem: Temporary files are managed cleanly without cluttering your directories
``bashSet your Gemini API key
export GEMINI_API_KEY=your_key_here
๐ฆ Installation
$3
`bash
npx offmute
`$3
`bash
npm install offmute
`Get Help
`
npx offmute --help
`bunx or bun works faster if you have it!๐ป Usage
$3
`bash
npx offmute [options]
`Options:
-
-m, --model : Model selection (pro, flash, flash-lite) [default: "pro"]
- -t, --tier : [DEPRECATED] Processing tier (first, business, economy, budget, experimental) - use --model instead
- -s, --save-intermediates: Save intermediate processing files
- -id, --intermediates-dir : Custom directory for intermediate output
- -sc, --screenshot-count : Number of screenshots to extract for video [default: 4]
- -ac, --audio-chunk-minutes : Length of audio chunks in minutes [default: 10]
- -r, --report: Generate a structured meeting report
- -rd, --reports-dir : Custom directory for report output
- -i, --instructions : Custom context or instructions to include in AI prompts$3
#### New Simple Model Options (Recommended)
- Pro (
pro): Uses Gemini 2.5 Pro for all operations - highest quality
- Flash (flash): Uses Gemini 2.5 Flash for all operations - balanced performance
- Flash Lite (flash-lite): Uses Gemini 2.5 Flash Lite for all operations - fastest and most economical#### Legacy Processing Tiers (Deprecated but still supported)
- First Tier (
first): Uses Gemini 2.0 Pro models for all operations
- Business Tier (business): Gemini 2.0 Pro for description and report, Gemini 2.0 Flash for transcription
- Economy Tier (economy): Gemini 2.0 Flash models for all operations
- Budget Tier (budget): Gemini 2.0 Flash for description, Gemini 2.0 Flash Lite for transcription and report
- Experimental Tier (experimental): Uses the cutting-edge Gemini 2.5 Pro Preview model for all operations
- Experimental Budget Tier (experimentalBudget): Uses the cutting-edge Gemini 2.5 Flash Preview model for all operations$3
`typescript
import {
generateDescription,
generateTranscription,
generateReport,
} from "offmute";// Generate description and transcription
const description = await generateDescription(inputFile, {
screenshotModel: "gemini-2.5-pro",
audioModel: "gemini-2.5-pro",
mergeModel: "gemini-2.5-pro",
showProgress: true,
userInstructions: "Focus on technical content and action items",
});
const transcription = await generateTranscription(inputFile, description, {
transcriptionModel: "gemini-2.5-pro",
showProgress: true,
userInstructions: "Add emotions and tone information for each speaker",
});
// Generate a structured report
const report = await generateReport(
description.finalDescription,
transcription.chunkTranscriptions.join("\n\n"),
{
model: "gemini-2.5-pro",
reportName: "meeting_summary",
showProgress: true,
userInstructions: "Highlight all action items with bullet points",
}
);
`๐ง Advanced Usage
$3
By default, offmute uses a system temporary directory to store intermediate files and cleans them up when processing completes. If you want to save these files:
`bash
Save intermediates in a hidden .offmute_[filename] directory
npx offmute meeting.mp4 --save-intermediatesSave intermediates in a custom directory
npx offmute meeting.mp4 --save-intermediates --intermediates-dir ./processing_files
`When saved, intermediate files are organized in a clean structure:
`
.offmute_meeting/
โโโ screenshots/ # Video screenshots
โโโ audio/ # Processed audio chunks
โโโ transcription/ # Per-chunk transcriptions
โโโ report/ # Report generation data
`$3
You can provide custom instructions to the AI models to focus on specific aspects:
`bash
Use Flash model for faster processing
npx offmute meeting.mp4 --model flashUse Flash Lite for the most economical option
npx offmute long_conference.mp4 --model flash-liteFocus on technical details with Pro model (default)
npx offmute technical_meeting.mp4 -i "Focus on technical terminology and highlight all action items"Improve speaker emotion detection with Flash model
npx offmute interview.mp4 --model flash -i "Pay special attention to emotional tone and hesitations"
`$3
Offmute now creates output files early in the process and updates them incrementally, allowing you to:
1. See transcription progress in real-time
2. Monitor report generation section by section
3. Check partial results even for long-running processes
$3
`bash
Use Pro model for highest quality (default)
npx offmute important_meeting.mp4Use Flash model for balanced performance
npx offmute team_standup.mp4 --model flashUse Flash Lite for quick and economical processing
npx offmute daily_brief.mp4 --model flash-liteCombine with custom instructions for best results
npx offmute strategic_call.mp4 --model pro -i "Focus on financial projections and strategic initiatives"
`The Gemini 2.5 models support expanded token output capabilities, allowing for more detailed and comprehensive results, especially for longer meetings or when generating complex reports.
$3
Adjust processing for different content types:
`bash
Longer chunks for presentations
offmute presentation.mp4 -ac 20More screenshots for visual-heavy content
offmute workshop.mp4 -sc 8
`โ๏ธ How It Works
offmute uses a multi-stage pipeline:
1. Content Analysis
- Extracts screenshots from videos at key moments
- Chunks audio into processable segments
- Generates initial descriptions of visual and audio content
2. Transcription & Diarization
- Processes audio chunks with context awareness
- Identifies and labels speakers
- Maintains conversation flow across chunks
- Shows real-time progress in the output file
3. Report Generation (Spreadfill)
- Uses a unique "Spreadfill" technique:
1. Generates report structure with section headings
2. Fills each section independently using full context
3. Ensures coherent narrative while maintaining detailed coverage
- Updates report file in real-time as sections are completed
$3
Offmute now includes accurate file metadata in outputs:
- File creation and modification dates
- Processing timestamp
- File size and path information
- Custom instructions (when provided)
This provides reliable context without AI guessing incorrect meeting dates/times.
$3
The Spreadfill approach helps maintain consistency while allowing detailed analysis:
`typescript
// 1. Generate structure
const structure = await generateHeadings(description, transcript);// 2. Fill sections independently
const sections = await Promise.all(
structure.sections.map((section) => generateSection(section, fullContext))
);
// 3. Combine into coherent report
const report = combineResults(sections);
`๐ ๏ธ Requirements
- Node.js 14 or later
- ffmpeg installed on your system
- Google Gemini API key
Contributing
You can start in
TODOs.md to help with things I'm thinking about, or you can steel yourself and check out PROBLEMS.md`.Created by Hrishi Olickel โข Support offmute by starring our GitHub repository