Video demonstration: https://yurigushiken.com/2023/04/11/voice-to-notion-python-app/
- OpenAI API key - acquire at https://openai.com/api/
- Google Drive API key - acquire at https://developers.google.com/workspace/guides/create-project
- Notion API integration token - acquire by creating an integration at https://www.notion.so/my-integrations
- Notion parent page ID - ID of the parent page in Notion to add new pages under
- Local folder path - folder path on your computer to monitor for new audio files
This tool is an automated workflow that converts voice recordings to text using OpenAI's API and then uploads the text to Notion. It is implemented in Python and consists of two main scripts: voicetotext.py and txttoNotion.py. Together these two scripts make up the voice-to-notion workflow.
Voice-to-Notion continuously monitors a specified folder for new voice recordings. When it detects a new recording, it transcribes the audio to text, generates a summary, and creates a new page in a specified Notion database. The new page includes the transcript, the summary, and a shareable link to the original file in Google Drive.
- Record an audio message
- Save it to Google Drive monitored folder
- voicetotext.py converts it to text
- txttoNotion.py uploads it to Notion
To set up Voice-to-Notion:
- Acquire API keys and credentials as listed in Requirements section
- Set up target folders in Google Drive to monitor and upload audio files
- Configure voicetotext.py script with OpenAI key, source folder path
- Configure txttoNotion.py script with Notion credentials, parent page ID, target folder path
- Run the scripts to start monitoring for new recordings
To use:
- Save new audio recordings to the monitored Google Drive folder
- The scripts will automatically process and upload them to Notion
- Continuous monitoring of a folder
- Transcription with OpenAI
- Summary generation
- Upload to Notion