Some useful scripts for audio
Convert mp3 format audio to wav format:
python conversion/convert_mp3_to_wav.pyConvert wav format audio to mp3 format:
python conversion/convert_wav_to_mp3.pyConvert sampling rate using sox:
python convert_sample_rate_with_sox.pyConvert sampling rate of a folders hierarchy reading files list from metadata file using librosa:
python convert_sample_rate_from_csv_with_librosa.pyCreating several file segments from one audio file.
python segmentation/segment_audio.pyYou can change the segments, for example, adding 0.3 seconds at the end of each segment.
python segmentation/change_segments.pyNormalize audios by mean dBfs.
python normalization/normalize_audios_by_dbfs.pyNormalize audios by max volume using pydub.
python normalization/normalize_audios_by_max_volume.pyDownload audios from youtube:
python others/download_audio_from_youtube.py --input_file links.txt --output_dir videosDownload videos from youtube:
python others/download_video_from_youtube.py --input_file links.txt --output_dir videos