This script generates a CSV file containing metadata for audio files within a specified folder and its subfolders.
- Confirm you have Node.js installed on your system.
- Install the required dependencies by running
npm install
in the terminal. - Run the script with the following command:
node index.js <folder_path>
The script formats your CSV as seen below:
Track Number | File Name | Duration | Format | File | Channel Count |
---|---|---|---|---|---|
1 | my_audio_file_1.wav | 02:32 | 24 bit/48 kHz | WAV | Stereo |
2 | my_audio_file_2.wav | 01:01 | 24 bit/48 kHz | OGG | Stereo |
3 | my_audio_file_3.wav | 02:03:03 | 24 bit/48 kHz | MP3 | Stereo |
4 | my_audio_file_4.wav | 04:23 | 24 bit/48 kHz | FLAC | Stereo |