The purpose of this tool is to extract releveant dialogues from a text file based on a podcast, youtuve video or recorded stream in order to get fragments suitable for 60 seconds video clips.
- Node.js (mention the minimum version if applicable)
- An OpenAI API key
Install the necessary dependencies:
npm installCopy the .env.example file to a new file named .env:
cp .env.example .envEdit the .env file and add your OpenAI API key:
OPENAI_API_KEY=your_api_key_here
-
Create an Input File:
- Create a file named
input.txtin the project root directory. - Add the text you want to process to this file.
- Create a file named
-
Run the Script:
- Execute the script using npm:
npm run start- View the Results:
- The processed dialogues will be stored in the results folder, with each run generating a new folder named with a timestamp.
MIT License