forked from kan-bayashi/webMUSHRA
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprepare.sh
executable file
·27 lines (23 loc) · 1.2 KB
/
prepare.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
###################################
# Prepare configs for CHiME4 data #
###################################
# Since webMUSHRA needs stereo audio, we convert the monaural audio to stereo.
if [ ! -L configs/resources/wavs ]; then
ln -s "$(realpath ../wavs)" configs/resources/wavs
fi
./bin/convert_mono_to_stereo.sh configs/resources/wavs/ configs/resources/wavs_stereo/
# Generate config
./bin/generate_enh_config.py \
--sample_audio_path configs/resources/wavs_stereo/close_talk/F05_445C0214_STR_REAL.wav \
--seed 777 \
--language en \
--metrics MOS,S-MOS,N-MOS \
--random True \
--ref_root_wav_dir ./configs/resources/wavs_stereo/close_talk \
--test_root_wav_dir ./configs/resources/wavs_stereo/{wav,blstm_mvdr,fasnet,mc_conv_tasnet,beam_tasnet_sig,beam_tasnet_vad_mask,joint_mc_conv_tasnet_asr} \
--exclude-uid {F05_441C020E_CAF_REAL,F05_444C020F_BUS_REAL,F06_441C020C_PED_REAL,M06_441C0203_PED_REAL,M05_443C020O_BUS_REAL} \
--outpath ./configs/enh_quality_MOS_sample.yaml
echo "Run the following command to launch WebMUSHRA:"
echo -e " php -S 0.0.0.0:8888\n"
echo "Then you can lauch the evaluation by visiting localhost:8888/?config=enh_quality_MOS_sample.yaml"