This project includes a script for processing transcription files. The script reads all .txt files from an input directory, sorts them by chunk number, renames them by removing anything after "transcription" and before ".txt", and writes the processed data to output .srt and .txt files.
- Read all .txt files from an input directory
- Sort files by chunk number
- Rename files by removing anything after "transcription" and before ".txt"
- Write processed data to output .srt and .txt files
- Clone the repository to your local machine.
- Navigate to the project directory.
- Run
npm install
to install dependencies. - Place your .txt files in the
input
directory. - Run
npm run dev
to execute the script. - The processed files will be written to the
output
directory.
This project is licensed under the MIT License.