Spaces:
Runtime error
Runtime error
input_wav_path='/home/harveen/en/iitm_data/english/wav/' | |
output_wav_path='/home/harveen/en/iitm_data/english/wav_22k/' | |
output_sample_rate=22050 | |
####################### | |
dir=$PWD | |
parentdir="$(dirname "$dir")" | |
parentdir="$(dirname "$parentdir")" | |
mkdir -p $output_wav_path | |
python $parentdir/utils/data/resample.py -i $input_wav_path -o $output_wav_path -s $output_sample_rate | |
python $parentdir/utils/data/duration.py $output_wav_path | |