An automated tool for transcribing lecture recordings from Google Drive using OpenAI Whisper.
Lecture Auto-Transcriber is designed to convert spoken lecture content from Google Drive into text, making educational materials more accessible and searchable. The tool processes audio/video lecture files and generates accurate transcriptions that can be used for study, reference, or accessibility purposes.
- Python 3.8 or higher
- FFmpeg
FFmpeg is required for processing audio files before transcription.
- Download the FFmpeg build from the official website or from gyan.dev (recommended for Windows)
- Extract the ZIP file to a location of your choice (e.g.,
C:\ffmpeg) - Add FFmpeg to your system PATH:
- Open "Edit the system environment variables" from the Control Panel
- Click "Environment Variables"
- Edit the "Path" variable under System variables
- Add the path to the FFmpeg bin directory (e.g.,
C:\ffmpeg\bin) - Click OK to save changes
brew install ffmpegsudo apt update
sudo apt install ffmpeg- Clone this repository:
git clone https://github.com/Vethya/lecture-auto-transcriber.git
cd lecture-auto-transcriber- Create and activate a virtual environment:
python -m venv env.\env\Scripts\activatesource env/bin/activate- Install dependencies:
pip install -r requirements.txt- Set up credentials:
- Create a
config.jsonfile with your settings the Google Cloud Console by:
- Go to the Google Cloud Console
- Create a new project
- Enable the Google Drive API
- Create OAuth credentials (Desktop application)
- Download the credentials JSON file and rename it to
credentials.json
Create a config.json file in the root directory with the following structure:
{
"subjects": {
"research methodology": {
"recording_folder_id": "YOUR_RECORDING_FOLDER_ID"
},
"mathematics": {
"recording_folder_id": "YOUR_RECORDING_FOLDER_ID"
},
"data science": {
"recording_folder_id": "YOUR_RECORDING_FOLDER_ID"
},
"cloud computing": {
"recording_folder_id": "YOUR_RECORDING_FOLDER_ID"
},
"project development": {
"recording_folder_id": "YOUR_RECORDING_FOLDER_ID"
}
},
"gemini_api_key": "YOUR_GEMINI_API_KEY",
"mongodb_uri": "mongodb://localhost:27017",
"drive_credentials": "credentials.json"
}python main.py