Script Radio2Podcast 0.06
New version of the Radio2Podcast Script
I am pleased to inform you that the script is working and has been expanded with new features! Radio2Podcast has been enhanced with two modules. The first module, trim, is used for cutting out advertisements. It works well if you have recorded samples. For this reason, I have also removed the previous pause function, which was a placeholder for proper implementation.
The second module allows you to generate an index.html page that lists all recordings, which is useful if you are hosting the page and want to share podcasts with friends.
The config.json file has also undergone a slight change, so it will require an update if you were using the previous version of the script.
Download
You can download Radio2Podcast 0.06 here. In this post, you will find information only on how to use the new modules. The previous post regarding the script will help you understand the basic operation. Soon, I will launch a separate website dedicated to the script with a complete guide and a simple chapter breakdown.
Trim module
Recording samples and folder names
From previously recorded broadcasts, we cut out jingles, intros, outros, and blocks of advertisements. The more high-quality sounds we record, the better, as radio stations sometimes use different sounds for the beginning of the broadcasts.
The cut sounds should be placed in the appropriate directory structure:
/modules/trim/sounds/BBC Radio 1/Morning Show
This means that you need to create a unique folder for each radio station and broadcast where we will store the sounds of the intro, advertisements, and ending. If the script does not find the broadcast folder, it will look for audio files in the radio station’s folder (if the station always uses the same jingles).
File names
File names should follow the pattern below, and as you can see, you can include more than one sample.
/modules/trim/sounds/BBC Radio 1/Morning Show/intro1.flac
/modules/trim/sounds/BBC Radio 1/Morning Show/intro2.flac
/modules/trim/sounds/BBC Radio 1/Morning Show/ad_start1.flac
/modules/trim/sounds/BBC Radio 1/Morning Show/ad_start2.flac
/modules/trim/sounds/BBC Radio 1/Morning Show/ad_end1.flac
/modules/trim/sounds/BBC Radio 1/Morning Show/outro1.flac
It is important that the samples are in flac format.
Running trim module
Simply run the script with the -t parameter, and then the script will start looking for intros, outros, and blocks of advertisements to cut after recording the broadcast.
python3 r2p.py "BBC Radio 1" "Morning Show" 25 -s local sftp -t
Index module
Structure and running
Like the previous module, the appropriate module is located in the /modules/ folder. There is a style.css file there, which can be modified as needed. The module does not require any special preparations; just run it with the -i parameter.
python3 r2p.py "BBC Radio 1" "Morning Show" 25 -s local sftp -i
The script will then generate an index.html in the local folder and on the sftp server. It looks like this: