A Python script that allows you to be able to record audio and make useful notes of it so that it can be stored in your Google Drive!
- Record audio from selected microphone(s).
- Creates effective and strong notes through Google's Gemini API of recorded audio
- Automatically stores both recording audio and notes into your Google Drive
- Configurable through environment variables for reusability.
- Python 3.8+ with microphone access
- Installation of system-level dependencies like
portaudio
andffmpeg
- Acquiring API keys from Google Gemini and client secret from Google Drive API
- Make sure to set the redirect url in the client secret to http://localhost:8080/
- Environment variables are properly set
This project requires the following system dependencies:
-
PortAudio (for
pyaudio
):- Linux:
sudo apt-get install portaudio19-dev
- MacOS:
brew install portaudio
- Windows: Use
pipwin
to installpyaudio
:pip install pipwin pipwin install pyaudio
- Linux:
-
FFmpeg (for
pydub
):- Linux:
sudo apt-get install ffmpeg
- MacOS:
brew install ffmpeg
- Windows: Download and configure FFmpeg:
- FFmpeg Download
- Add FFmpeg to your system PATH.
- Linux:
-
Clone the repository:
git clone https://github.com/ishaankor/notes-taker.git cd notes-taker
-
Install dependencies:
pip install -r requirements.txt
-
Configure
.env
:GEMINI_API_URL=your-gemini-api-key
-
Run the script:
python notes-taker.py