Package Exports
- ai-meeting-summarizer
- ai-meeting-summarizer/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ai-meeting-summarizer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
AI Meeting Summarizer π§ ποΈ
A simple Node.js library to transcribe and summarize meeting recordings using OpenAI's Whisper for transcription and Cohere's API for summary generation.
β¨ Features
- β Converts audio files to transcripts using OpenAI Whisper
- β Generates concise meeting summaries with Cohere's Summarization API
- β
Supports
.mp3
,.wav
,.m4a
audio formats - β Supports video recordings (requires FFmpeg)
- β Lightweight, no UI, and easy to integrate into your projects
π¦ Installation
Install the package via npm:
npm install ai-meeting-summarizer
βοΈ Requirements
- Node.js: Version 14 or higher.
- Python: Required for Whisper.
- FFmpeg: Required if you are transcribing video recordings. Install FFmpeg:
- On Windows: Download FFmpeg and add it to your system's PATH.
- On macOS: Install via Homebrew:
brew install ffmpeg
- On Linux:
sudo apt install ffmpeg
- Cohere API Key: Required for summary generation.
- OpenAI Whisper: Install Whisper dependencies:
pip install whisper
π οΈ Setup
- Create a
.env
file in the root directory and add your API keys:COHERE_API_KEY=your_cohere_api_key
- Install the required dependencies:
npm install pip install whisper
π Usage Example
Hereβs how you can use the library to transcribe and summarize a meeting recording:
import { summarizeMeeting } from "ai-meeting-summarizer";
(async () => {
try {
const audioPath = "path/to/your/audio/file.mp3"; // Replace with your audio or video file path
const summary = await summarizeMeeting(audioPath);
console.log("Meeting Summary:", summary);
} catch (error) {
console.error("Error:", error.message);
}
})();
π Notes
- Audio Recordings: Whisper works seamlessly with audio files like
.mp3
,.wav
, and.m4a
. - Video Recordings: If you are providing video files (e.g.,
.mp4
,.mkv
), ensure FFmpeg is installed. Whisper uses FFmpeg to extract audio from video files. - Cohere Integration: The summarization is powered by Cohere's API. Ensure your
COHERE_API_KEY
is correctly set in the.env
file.
π License
This project is licensed under the MIT License.