AutoSummarize is a simple tool that helps you turn audio files (like lectures or interviews) into text. It uses AssemblyAI's transcription service to process your audio file and saves the text as a file on your computer. You can then use another AI tool (like ChatGPT or Claude) to summarize the text.
- Node.js: A free program you can download and install from nodejs.org.
- AssemblyAI API Key: This is included in the script, so you don’t need to worry about it unless you want to use your own.
- An Audio File: The file you want to transcribe (e.g.,
.mp3or.wav).
- Create a folder on your computer for this tool.
- Save the script file as
autosummarize.jsin that folder. - Place your audio file somewhere on your computer (e.g., in your Downloads folder).
- Open the Command Prompt (Windows) or Terminal (Mac/Linux).
- Navigate to the folder where you saved the script. For example:
cd C:\Users\YourName\audio-summarization
- Install the required software by typing:
npm install assemblyai fs
- Open the
autosummarize.jsfile in a text editor (like Notepad or VS Code). - Find this line:
const filePath = "C:\\Users\\YourName\\Downloads\\example.mp3"
- Replace it with the location of your audio file. For example:
Note: If you're on Windows, use double backslashes (
const filePath = "C:\\Users\\YourName\\Music\\lecture.mp3"
\\) in the file path.
- In the Command Prompt or Terminal, type:
node autosummarize.js
- The script will:
- Upload your audio file.
- Transcribe it into text (this may take a few minutes).
- Save the text as a file called
transcript.txtin the same folder.
- Open the
transcript.txtfile. - Copy the text.
- Use an AI tool like ChatGPT or Claude to summarize it. For example, you can paste the text into ChatGPT and ask:
Please summarize this transcript into main points. This is a lecture about Vietnam from grad school.
- File Not Found: Make sure the file path in the script is correct.
- No Internet: Ensure you’re connected to the internet.
- Audio File Issues: Check that the audio file isn’t corrupted.
- This tool only creates the transcript. You’ll need to use another AI tool for summarization.
- If you want to use your own AssemblyAI API key, replace the one in the script with your key.
Enjoy turning your audio into text with AutoSummarize!